GET
/
threads
/
{thread_id}
curl --request GET \
  --url https://api.openai.com/v1/threads/{thread_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "thread",
  "created_at": 123,
  "tool_resources": {
    "code_interpreter": {
      "file_ids": []
    },
    "file_search": {
      "vector_store_ids": [
        "<string>"
      ]
    }
  },
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread_id
string
required

The ID of the thread to retrieve.

Response

200 - application/json

OK

Represents a thread that contains messages.