Skip to content
Navigation

List community direct messages

GET
https://api.nicer.travel/community/dm

Lists the direct-message conversations the caller is in at the agency the request acts for, 30 a page unless limit says otherwise (100 at most); send the answer's nextCursor back as cursor for the next page, until it is absent. A conversation with fewer than two people is left out. Any member of the agency may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • cursor
    optional
    string
  • limit
    optional
    string

Returns

200

OK

JSON
  • dms
    array of
    object
    required
    • dmId
      string
      required

      The conversation's id, the same whenever the same people talk.

    • companyName
      string
      required

      The agency the conversation belongs to.

    • participants
      array of
      string
      required

      The userIds of everyone in the conversation, the caller among them.

    • createdAt
      string
      required

      When the conversation was created, as ISO 8601 text.

  • nextCursor
    optional
    string

    Send it back as cursor for the next page; absent on the last page.

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