Skip to content
Navigation

Get a shared itinerary file's download link

POST
https://api.nicer.travel/assets/public/create-get-url

Returns a presigned link, valid for five minutes, to download a file attached to an itinerary the caller may see: anyone with the shared itinerary while it is visible, its participants and advisor when it is hidden. The file must be listed on the itinerary; intake files and other keys stay private. Anyone may call it, with or without a token. Errors: 403 ERROR_UNAUTHORIZED for a file the caller may not download.

Authorization

  • bearerAuth
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Request body JSON required

  • assetType
    string
    ·
    one of 8 values
    required
    Allowed values: agentAttachment, tripItineraryAsset, tripItineraryAttachment, tripItineraryItineraryDocumentAI, userDocument, rawAvatar, privateAsset, ai-itinerary-output
  • key
    string
    required
    maxLength: 1024 · minLength: 1
  • tripItineraryId
    optional
    string
    maxLength: 200 · minLength: 1
  • recaptchaToken
    optional
    string

Returns

200

OK

JSON
  • url
    string
    required

    The presigned link: anyone holding it can download the file until it expires, so open it right away and never store it.

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close