Upload a trip file through the API

Use this when your network blocks direct S3 uploads (e.g. LNA / CASB): the file streams through the API server, so only the API host needs to be reachable. The API rejects anything over 25 MB, but the deployed API runs behind AWS Lambda, whose request payload limit puts the practical ceiling far lower: above 3.5 MB use POST /trips/file/upload-chunked/init → /chunk → /complete, which uploads in 4 MB parts. Returns { id }. To attach the file to a trip field, send that id as the field value — e.g. "a1_pt_service_agreement": "<id>" in the values of POST /trips, or via POST /trips/{id}/data for an existing trip (for a FILES field, a comma-separated list of ids). The file can be uploaded before the trip exists; creating the trip with the id links it. Pass tripId to upload straight to a trip you can access.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The file, and optionally the trip it belongs to.

file
required
number
Responses

400

No file provided, or tripId is not a positive integer

403

The caller may not upload files to this trip

404

Unknown trip id

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json