Skip to main content
GET
/
assistants
cURL
curl "https://api.portkey.ai/v1/assistants?order=desc&limit=20" \
          -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"
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "object": "assistant",
      "created_at": 123,
      "name": "<string>",
      "description": "<string>",
      "model": "<string>",
      "instructions": "<string>",
      "tools": [],
      "tool_resources": {
        "code_interpreter": {
          "file_ids": []
        },
        "file_search": {
          "vector_store_ids": [
            "<string>"
          ]
        }
      },
      "metadata": {},
      "temperature": 1,
      "top_p": 1,
      "response_format": "none"
    }
  ],
  "first_id": "asst_abc123",
  "last_id": "asst_abc456",
  "has_more": false
}

Authorizations

x-portkey-api-key
string
header
required
x-portkey-virtual-key
string
header
required

Query Parameters

limit
integer
default:20
order
enum<string>
default:desc
Available options:
asc,
desc
after
string
before
string

Response

200 - application/json
object
string
required
Example:
data
Assistant · object[]
required
first_id
string
required
Example:
last_id
string
required
Example:
has_more
boolean
required
Example: