Skip to content
Navigation

Get a community channel

GET
https://api.nicer.travel/community/channels/{channelId}

Returns one channel of the agency's community with its memberCount, the userIds of its members, and its writers: its creator (isCreator) and anyone granted posting on a creator-only channel. A public channel answers to anyone in the agency, a private one only to its members. Errors: 404 ERROR_ITEM_NOT_FOUND for a channel there is not; 400 ERROR_UNAUTHORIZED for a channel of another agency or a private channel the caller is not in; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • channelId
    string
    required

Returns

200

OK

JSON
  • channel
    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
  • members
    array of
    object
    required

    Everyone in the channel.

    • userId
      string
      required

      The member's userId.

  • writers
    array of
    object
    required

    Who may post when only some may: the creator, and anyone granted posting on a creator-only channel.

    • userId
      string
      required

      The writer's userId.

    • isCreator
      boolean
      required

      Whether the writer is the channel's creator, who always may post.

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