Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

Body

application/json
file_path
string
required

Path where the file will be stored

size
integer
required

File size in bytes (required for quota tracking)

Required range: -9007199254740991 < x <= 9007199254740991
content_type
string

MIME type of the file

Response

Signed upload URL created

file_upload_url
string
required

Temporary cloud-storage URL for the upload PUT request.

file_path
string
required

Project-relative path assigned to the upload.

upload_id
string
required

UUID of the pending upload record.

required_headers
object
required

Headers that must be included in the PUT request to the upload URL

Example: