cURL
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" } }
Creates a signed URL that allows direct upload to cloud storage. Client must declare the file size upfront for quota tracking.
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Project ID or slug
Path where the file will be stored
File size in bytes (required for quota tracking)
x > 0
MIME type of the file
Signed upload URL created
Headers that must be included in the PUT request to the upload URL
Show child attributes
{ "Content-Type": "image/png", "x-goog-content-length-range": "0,1048576"}