Retrieve assistant file (v1)
GET
https://api.openai.com/v1/assistants/asst_abc123/files/file-abc123
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/assistants/asst_abc123/files/file-abc123' \
--header 'Authorization: Bearer $OPENAI_API_KEY"' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"id": "file-abc123",
"object": "assistant.file",
"created_at": 1699055364,
"assistant_id": "asst_abc123"
}
Request
Header Params
Authorization
stringΒ
required
Example:
Bearer $OPENAI_API_KEY"
Content-Type
stringΒ
required
Example:
application/json
OpenAI-Beta
stringΒ
required
Example:
assistants=v1
Responses
Modified atΒ 2024-12-12 08:06:29