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

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 download.

Query Parameters

expires_in
integer
default:600

Number of seconds until the download URL expires. Defaults to 600 seconds (10 minutes).

Response

Successful response with download URL.

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

download_url
string<uri>

Pre-signed URL for downloading the file. Expires after the specified expires_in time.

expires_in
integer

Number of seconds until the download URL expires