List assistants (v1)
GET
https://api.openai.com/v1/assistantsReturns a list of assistants.
Request
Query Params
order
string
required
Example:
desc
limit
string
required
Example:
20
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer $OPENAI_API_KEY
OpenAI-Beta
string
required
Example:
assistants=v1
Body Params text/plain
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object
string
required
data
array [object {13}]
required
id
string
required
object
string
required
created_at
integer
required
name
string | null
required
description
null
required
model
string
required
instructions
string | null
required
tools
array[string]
required
file_ids
array[string]
required
metadata
object
required
top_p
integer
required
temperature
integer
required
response_format
string
required
first_id
string
required
last_id
string
required
has_more
boolean
required
Example
{
"object": "list",
"data": [
{
"id": "asst_abc123",
"object": "assistant",
"created_at": 1698982736,
"name": "Coding Tutor",
"description": null,
"model": "gpt-4-turbo",
"instructions": "You are a helpful assistant designed to make me better at coding!",
"tools": [],
"file_ids": [],
"metadata": {},
"top_p": 1,
"temperature": 1,
"response_format": "auto"
},
{
"id": "asst_abc456",
"object": "assistant",
"created_at": 1698982718,
"name": "My Assistant",
"description": null,
"model": "gpt-4-turbo",
"instructions": "You are a helpful assistant designed to make me better at coding!",
"tools": [],
"file_ids": [],
"metadata": {},
"top_p": 1,
"temperature": 1,
"response_format": "auto"
},
{
"id": "asst_abc789",
"object": "assistant",
"created_at": 1698982643,
"name": null,
"description": null,
"model": "gpt-4-turbo",
"instructions": null,
"tools": [],
"file_ids": [],
"metadata": {},
"top_p": 1,
"temperature": 1,
"response_format": "auto"
}
],
"first_id": "asst_abc123",
"last_id": "asst_abc789",
"has_more": false
}
Last modified: 2 months ago