Thread API
This page provides api schemas and descriptions for Threads API methods.
API Schemas
Create a Thread
Bearer key
The identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Thread was created.
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
The object type.
Python + OpenAI SDK Example:
Retrieve information about a specific Thread by its ID
Bearer key
The identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Thread was created.
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
The object type.
Python + OpenAI SDK Example:
Modify a specific Thread by its ID
Bearer key
The identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Thread was created.
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
The object type.
Python + OpenAI SDK Example:
Delete a specific Thread by its ID
Bearer key
Python + OpenAI SDK Example:
Last updated
Was this helpful?