Skip to main content
POST
/
v1
/
templates
/
files
/
upload-link
Get file upload link
curl --request POST \
  --url https://api.hopx.dev/v1/templates/files/upload-link \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "content_length": 2,
  "files_hash": "<string>"
}'
{
  "expires_at": "<string>",
  "files_hash": "<string>",
  "present": true,
  "request_id": "<string>",
  "upload_url": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key for authentication (format: sk_live_...)

Body

application/json

File upload request

content_length
integer
required
Required range: x >= 1
files_hash
string
required

Response

Presigned upload URL

expires_at
string
files_hash
string

Return hash for COPY step

present
boolean
request_id
string
upload_url
string