curl --request GET \
--url https://api.openai.com/v1/assistants/{assistant_id} \
--header 'Authorization: Bearer <token>'
{
"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": "auto"
}
Retrieves an assistant.
curl --request GET \
--url https://api.openai.com/v1/assistants/{assistant_id} \
--header 'Authorization: Bearer <token>'
{
"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": "auto"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the assistant to retrieve.
OK
Represents an assistant
that can call the model and use tools.
Was this page helpful?