Get metadata of a channel

GET /channels/{channel_id}

Get metadata of a channel

Responses

  • OK

    Hide headers attribute Show headers attribute
    Hide response attributes Show response attributes object
    • channelId string Required

      The required name of the channel including any qualifier, if any.

    • region string

      In events relating to the activity of a channel in a specific region, this optionally identifies the region.

    • In events relating to the activity of a channel in a specific region, this optionally identifies whether or not that region is responsible for global coordination of the channel.

    • status object

      A ChannelStatus instance.

      Hide status attributes Show status attributes object
      • isActive boolean Required

        A required boolean value indicating whether the channel that is the subject of the event is active. For events indicating regional activity of a channel this indicates activity in that region, not global activity.

      • An Occupancy instance indicating the occupancy of a channel. For events indicating regional activity of a channel this indicates activity in that region, not global activity.

        Hide occupancy attributes Show occupancy attributes object
        • publishers integer

          The number of connections attached to the channel that are authorised to publish.

        • The number of connections attached that are authorised to subscribe to messages.

        • The number of connections that are authorised to subscribe to presence messages.

        • The number of connections that are authorised to enter members into the presence channel.

        • The number of members currently entered into the presence channel.

  • Error

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object
GET /channels/{channel_id}
curl \
 -X GET https://rest.ably.io/channels/{channel_id}
Response examples (200)
# Headers
x-ably-serverid: string

# Payload
{
  "channelId": "string",
  "region": "string",
  "isGlobalMaster": true,
  "status": {
    "isActive": true,
    "occupancy": {
      "publishers": 42,
      "subscribers": 42,
      "presenceSubscribers": 42,
      "presenceConnections": 42,
      "presenceMembers": 42
    }
  }
}
Response examples (200)
# Headers
x-ably-serverid: string

# Payload
{
  "channelId": "string",
  "region": "string",
  "isGlobalMaster": true,
  "status": {
    "isActive": true,
    "occupancy": {
      "publishers": 42,
      "subscribers": 42,
      "presenceSubscribers": 42,
      "presenceConnections": 42,
      "presenceMembers": 42
    }
  }
}
Response examples (default)
# Headers
x-ably-errorcode: 42
x-ably-errormessage: string
x-ably-serverid: string

# Payload
{
  "message": "string",
  "code": 42,
  "statusCode": 42,
  "href": "string",
  "serverId": "string"
}
Response examples (default)
# Headers
x-ably-errorcode: 42
x-ably-errormessage: string
x-ably-serverid: string

# Payload
{
  "message": "string",
  "code": 42,
  "statusCode": 42,
  "href": "string",
  "serverId": "string"
}