GET
/
openai
/
v1
/
files
/
{file_id}
Retrieve file
curl --request GET \
  --url https://api.novita.ai/openai/v1/files/{file_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "id": "<string>",
  "object": "<string>",
  "bytes": 123,
  "filename": "<string>",
  "created_at": 123,
  "expires_at": 123,
  "purpose": "<string>",
  "metadata": {
    "total_requests": 123
  }
}
Retrieves information about a specific file using its file ID.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Path Parameters

file_id
string
required
The unique identifier of the file to retrieve information for.

Response

id
string
required
The unique identifier of the file.
object
string
required
The object type, which is always file.
bytes
integer
required
The size of the file in bytes.
filename
string
required
The name of the file.
created_at
integer
required
The Unix timestamp (in seconds) when the file was created.
expires_at
integer
The Unix timestamp (in seconds) when the file will expire. Only present for output files.
purpose
string
required
The purpose of the file.Available purposes:
  • batch - Input file for batch processing
  • batch_output - Output file from batch processing
metadata
object
required
Additional metadata about the file.