DevelopersAPI ReferenceDocuments
Upload A Document
Uploads a sealed (already encrypted) document as multipart/form-data, up to 20 MB. Documents are encrypted on the traveller's own devices before upload; the server only ever holds the sealed file and never its contents. Requires Travelyfe Pro.
AuthorizationBearer <token>
A Travelyfe access token.
In: header
Path Parameters
id*string
The itinerary id (UUID).
Format
uuidRequest Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/itinerary/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents" \ -F file="string" \ -F mimeType="string"{ "id": "string", "name": "string", "kind": "string", "mimeType": "string", "size": 0, "url": "http://example.com"}