Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"messages": [
{
"role": "string",
"content": "string",
"file_ids": "string",
"metadata": "string"
}
],
"metadata": {}
}
Request Code Samples
curl --location --request POST '/v1/threads' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"role": "string",
"content": "string",
"file_ids": "string",
"metadata": "string"
}
],
"metadata": {}
}'
Responses
application/json {
"id": "thread_abc123",
"object": "thread",
"created_at": 1699012949,
"metadata": {}
}
Modified at 2025-07-23 10:01:53