Skip to main content
GET
/
v1
/
files
/
{file_id}
Get File Metadata by ID
curl --request GET \
  --url https://api.olostep.com/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "filename": "<string>",
  "bytes": 123,
  "purpose": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required

Unique identifier for the file to retrieve.

Response

Successful response with file metadata.

id
string

File ID

object
string

The kind of object. "file" for this endpoint.

created
integer

Created epoch timestamp

filename
string

The filename of the uploaded file

bytes
integer

File size in bytes

purpose
string

The purpose of the file

status
string

File status (e.g., 'pending', 'completed')