/v1/files/{file_id}Retrieve a file
The file's metadata. Batch results are files with purpose: batch_output.
Authentication: Bearer API key in the Authorization header
Path parameters
file_idstringrequiredThe file id.
Responses
200The file.
Response
idstringobjectstringbytesintegercreated_atintegerfilenamestringpurposeenum
401The key is missing, malformed, expired or revoked.
Response
errorobjecterror
messagestringWhat went wrong and how to fix it.
typestringFor example
invalid_request_error,authentication_error,permission_error,rate_limit_error,insufficient_quota,api_error.codestringThe stable error code.
paramstring | nullThe request field at fault, when there is one.
refusal_reasonenumPresent only on
code: refusal.
404No such resource for this key.
Response
errorobjecterror
messagestringWhat went wrong and how to fix it.
typestringFor example
invalid_request_error,authentication_error,permission_error,rate_limit_error,insufficient_quota,api_error.codestringThe stable error code.
paramstring | nullThe request field at fault, when there is one.
refusal_reasonenumPresent only on
code: refusal.
Request
curl https://api.experientiallabs.ai/v1/files/file_3f9a1c0e7b2d4a6f8e1c2b3d \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"id": "file_7b1d9e3a5c2f4086b4a1e9c7",
"object": "file",
"bytes": 1893,
"created_at": 1795136400,
"filename": "batch_9c2e4b7a1f0d3e6c5b8a2d4f_output.jsonl",
"purpose": "batch_output"
}https://api.experientiallabs.ai/v1/files/file_3f9a1c0e7b2d4a6f8e1c2b3d