Skip to content
Navigation

List notes

GET
https://api.nicer.travel/crm/notes

Lists the notes about one traveler (travelerId) or one trip (travelersTripId), newest first, 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. A trip's notes are its staff's: its advisor of record and the agency's admins. Errors: 400 ERROR_INVALID_QUERY for neither or both of travelerId and travelersTripId, a limit out of range or a nextToken of another list; 404 ERROR_ITEM_NOT_FOUND for a traveler or trip the caller may not see.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • limit
    optional
    integer

    How many notes a page holds, 1 to 100; 50 when left out.

    maximum: 100 · minimum: 1
  • nextToken
    optional
    string

    The nextToken of the page before, to read the next one; left out for the first page.

    minLength: 1
  • travelerId
    optional
    string

    The traveler (TRV…) whose notes to list. Required unless travelersTripId is sent; never both.

    maxLength: 64 · minLength: 1
  • travelersTripId
    optional
    string

    The trip (TT…) whose notes to list. Required unless travelerId is sent; never both.

    minLength: 1

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • companyName
      string
      required

      The agency the note belongs to.

    • content
      string
      required

      The text, in the format of the editor that wrote it.

    • createdAt
      string
      required

      When the note was written.

      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
    • createdBy
      string
      required

      The user id of who wrote the note.

    • isPinned
      boolean
      required

      Whether the note is pinned: pinned notes lead the traveler's overview.

    • kind
      CALL
      or
      EMAIL
      or
      MEETING
      or
      MESSAGE
      or
      NOTE
      required

      What the note records.

    • lastModifiedBy
      string
      required

      The user id of who changed the note last.

    • noteId
      string
      required

      The note's id: what updateNote and deleteNote take.

    • travelerId
      required

      The traveler the note is about; null for a note about a trip. A note is about one traveler or one trip.

      Any of the following:

      • TravelerId
      • null
    • travelersTripId
      required

      The trip (TT…) the note is about; null for a note about a traveler.

      Any of the following:

      • string
      • null
    • updatedAt
      string
      required

      When the note last changed.

      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • nextToken
    required

    Send it back as nextToken to read the next page; null on the last page.

    Any of the following:

    • string
    • null

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