Skip to main content
POST
/
api
/
v1
/
files
Initialize file upload
curl --request POST \
  --url https://api.example.com/api/v1/files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bucket_id": "<string>",
  "content_type": "<string>",
  "filename": "<string>",
  "retention_period": 123,
  "size_bytes": 123
}
'
{
  "expires_at": "<string>",
  "file_uuid": "<string>",
  "status": "pending",
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Upload initialization request

bucket_id
string
content_type
string
filename
string
retention_period
integer
size_bytes
integer

Response

OK

expires_at
string
file_uuid
string
status
enum<string>
Available options:
pending,
uploading,
available,
tombstoned,
deleted
upload_url
string