Retrieve assistant (v1)
GET
https://api.openai.com/v1/assistants/asst_abc123
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/assistants/asst_abc123' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"id": "asst_abc123",
"object": "assistant",
"created_at": 1699009709,
"name": "HR Helper",
"description": null,
"model": "gpt-4-turbo",
"instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies.",
"tools": [
{
"type": "retrieval"
}
],
"file_ids": [
"file-abc123"
],
"metadata": {}
}
Request
Header Params
Content-Type
stringΒ
required
Example:
application/json
Authorization
stringΒ
required
Example:
Bearer $OPENAI_API_KEY
OpenAI-Beta
stringΒ
required
Example:
assistants=v1
Responses
Modified atΒ 2024-12-12 08:05:02