Retrieve Thread

Supported Providers
  • OpenAI

Retrieves a thread.

get
Authorizations
Path parameters
thread_idstringRequired

The ID of the thread to retrieve.

Responses
200

OK

application/json
get
curl https://api.portkey.ai/v1/threads/thread_abc123 \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
  -H "OpenAI-Beta: assistants=v2"
200

OK

{
  "id": "text",
  "object": "thread",
  "created_at": 1,
  "tool_resources": {
    "code_interpreter": {
      "file_ids": [
        "text"
      ]
    },
    "file_search": {
      "vector_store_ids": [
        "text"
      ]
    }
  },
  "metadata": {}
}

Last updated

Was this helpful?