Skip to main content
POST
/
projects
/
{project_reference}
/
uploads
/
url
Generate Upload URL
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/uploads/url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_path": "<string>",
  "size": 1,
  "content_type": "<string>"
}
'
{
  "file_upload_url": "<string>",
  "file_path": "<string>",
  "upload_id": "<string>",
  "required_headers": {
    "Content-Type": "image/png",
    "x-goog-content-length-range": "0,1048576"
  }
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

Body

application/json
file_path
string
required

Path where the file will be stored

size
number
required

File size in bytes (required for quota tracking)

Required range: x > 0
content_type
string

MIME type of the file

Response

Signed upload URL created

file_upload_url
string
required
file_path
string
required
upload_id
string
required
required_headers
object
required

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

Example:
{
"Content-Type": "image/png",
"x-goog-content-length-range": "0,1048576"
}