Skip to content
Navigation

Get an assistant document's download link

POST
https://api.nicer.travel/agent/documents/download

Returns a download link, valid for five minutes, for a document the caller made with the assistant (POST /agent/documents), by its key. Any signed-in person may call it, for their own documents only. Errors: 403 ERROR_UNAUTHORIZED for a key of another person's document.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • key
    string
    required
    maxLength: 512 · minLength: 1 · pattern: ^agentAttachment\/[^/]+\/[^/]+\/[^/]+$

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