Skip to main content
GET
/
files
/
{file_id}
Retrieve file
curl --request GET \
  --url https://api.anyapi.ai/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "file",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "purpose": "<string>",
  "status": "uploaded",
  "status_details": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Path Parameters

file_id
string
required

The ID of the file to use for this request

Response

Successful response

id
string
required

The file identifier

object
enum<string>
required

The object type, which is always 'file'

Available options:
file
bytes
integer
required

The size of the file, in bytes

created_at
integer
required

The Unix timestamp (in seconds) for when the file was created

filename
string
required

The name of the file

purpose
string
required

The intended purpose of the file

status
enum<string>

The current status of the file

Available options:
uploaded,
processed,
error
status_details
string

Additional details about the status of the file

I