v3

latestSwagger 2.02026-07-1342207288.7 KB

Creates a new thread. Threads contain messages and can be run by agents.

post/threads

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

metadataobject nullable

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

Response

Information about the newly created thread.

idstring required

The identifier, which can be referenced in API endpoints.

object'thread' required

The object type, which is always 'thread'.

created_atinteger required

The Unix timestamp, in seconds, representing when this object was created.

metadataobject nullable required

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.