post
https://api.dev.orbit.do/v5/storage/upload
Create a pre-signed upload URL for a new file.
Flow:
- Call this endpoint with
fileName,contentType, anduploadInfo({ "documentType": "proof", "tourId": "..." }). The response contains a pre-signedurl(valid for 15 minutes) and the file's permanent storagekey. - Upload the file with an HTTP PUT to
url, sending the raw file bytes as the body withContent-Typeset to the samecontentTypefrom step 1. Any S3-compatible upload method or plain HTTP client works; in Postman, choose the "binary" body type. - Attach the file to an entity using the returned
key— for example as a proof document on a tour stop.
fileName must not contain directory separators (/). The key is namespaced per tenant and tour: {tenant}/{tourId}/proofs/{fileName}.
Warning: uploading to a key that already exists silently overwrites the existing file. Include a random component in the file name (e.g. a UUID) to avoid collisions.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400bad request
401unauthorized
