cURL
curl --request POST \ --url https://api.veryfront.com/uploads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "file_path": "<string>", "size": 1, "content_type": "<string>", "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "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 for upload. If project_id is provided, creates a project-scoped upload. Otherwise creates a user-owned upload.
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Path where the file will be stored
File size in bytes
x > 0
MIME type of the file
Project ID (omit for user-owned upload)
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"}