Skip to content
Navigation

Get a private file's download link

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

Returns a presigned link, valid for an hour, to download one private file: an itinerary file to a traveler on the trip, its advisor, an admin of its agency or Nicer staff; the caller's own assistant attachment, uploaded ID document or raw avatar; and to Nicer staff any assistant attachment, ID document, avatar, private asset or itinerary import output. Errors: 403 ERROR_UNAUTHORIZED for a file the caller may not download.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    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

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