POST
/
v1
/
files
/
download
/
presigned-url
curl "https://v2.app-dev.zquence.com/v1/files/download/presigned-url" \
  -X POST \
  -H "x-api-key: $ZQUENCE_PUBLIC_KEY" \
  -H "x-api-secret: $ZQUENCE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"kyc/tenant-id/user-id/document.pdf"}'
Requires API-key scope files.download.

Body

FieldTypeRequired
keystringYes
expiresInSecondsnumberNo; between 60 and 3600
curl "https://v2.app-dev.zquence.com/v1/files/download/presigned-url" \
  -X POST \
  -H "x-api-key: $ZQUENCE_PUBLIC_KEY" \
  -H "x-api-secret: $ZQUENCE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"kyc/tenant-id/user-id/document.pdf"}'
Returns 400 when key is empty or the expiration is invalid, and 403 when the file does not belong to the API key’s tenant.