v1
guests
{id}
documents
upload-url
bearer
In: header
header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
curl -X POST "https://example.com/v1/guests/string/documents/upload-url" \ -H "Content-Type: application/json" \ -d '{ "docType": "passport", "fileName": "passport.pdf", "contentType": "application/pdf", "fileSize": 1048576 }'
Type of document
"passport" | "national_id" | "driver_license" | "work_permit" | "visa" | "other"
Original file name (used to derive the S3 key extension)
MIME type of the file to be uploaded
File size in bytes. Required for direct uploads. Maximum 10 MB.
int64
ISO 3166-1 alpha-2 country code
Document expiry date (ISO 8601)