Skip to main content
POST
/
thread
创建对话线程
curl --request POST \
  --url https://api.kira.art/thread \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "role": "user",
    "parts": [
      {}
    ]
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "thumbImageUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Supabase JWT Token

Body

application/json
message
object
required

Response

200 - application/json

创建成功

id
string<uuid>
title
string
resourceId
string<uuid>
thumbImageUrl
string | null