Retrieve Assistant

Supported Providers
  • OpenAI

Retrieves an assistant.

get
Authorizations
Path parameters
assistant_idstringRequired

The ID of the assistant to retrieve.

Responses
200
OK
application/json
get
curl https://api.portkey.ai/v1/assistants/asst_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": "assistant",
  "created_at": 1,
  "name": "text",
  "description": "text",
  "model": "text",
  "instructions": "text",
  "tools": [
    {
      "type": "code_interpreter"
    }
  ],
  "tool_resources": {
    "code_interpreter": {
      "file_ids": [
        "text"
      ]
    },
    "file_search": {
      "vector_store_ids": [
        "text"
      ]
    }
  },
  "metadata": {},
  "temperature": 1,
  "top_p": 1,
  "response_format": "none"
}

Last updated

Was this helpful?