Skip to content
Navigation

List community channels

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

Lists the channels of the agency's community that the caller can see: every public channel and the private ones they belong to, 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. Channels here carry no memberCount. Any member of the agency the request acts for may call it: the x-nicer-company header names it, or the caller's only agency. 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
  • channels
    array of
    object
    required
    • channelId
      string
      required

      The channel's id.

    • companyName
      string
      required

      The agency the channel belongs to.

    • name
      string
      required

      The channel's name.

    • description
      required

      What the channel is for; null when it says nothing.

      Any of the following:

      • string
      • null
    • private
      boolean
      required

      Whether the channel is invite-only. A public channel is open to everyone in the agency.

    • writePolicy
      all-members
      or
      creator-only
      required

      Who may post: all-members, or creator-only for its creator and the writers granted posting.

    • createdBy
      string
      required

      The userId of the person who created the channel.

    • createdAt
      string
      required

      When the channel was created, as ISO 8601 text.

    • memberCount
      optional
      integer

      How many people are in the channel. Only getting and creating a channel answer it.

      maximum: 9007199254740991 · minimum: -9007199254740991
  • 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