Enumerate all active channels of the application

GET /channels

Enumerate all active channels of the application

Query parameters

  • limit integer

    Default value is 100.

  • prefix string

    Optionally limits the query to only those channels whose name starts with the given prefix

  • by string

    optionally specifies whether to return just channel names (by=id) or ChannelDetails (by=value)

    Values are value or id.

Responses

  • OK

    Hide headers attribute Show headers attribute
    One of:
  • Error

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object
GET /channels
curl \
 -X GET https://rest.ably.io/channels
Response examples (2XX)
# Headers
link: string

# Payload
[
  {
    "channelId": "string",
    "region": "string",
    "isGlobalMaster": true,
    "status": {
      "isActive": true,
      "occupancy": {
        "publishers": 42,
        "subscribers": 42,
        "presenceSubscribers": 42,
        "presenceConnections": 42,
        "presenceMembers": 42
      }
    }
  }
]
# Headers
link: string

# Payload
[
  "string"
]
Response examples (2XX)
# Headers
link: string

# Payload
[
  {
    "channelId": "string",
    "region": "string",
    "isGlobalMaster": true,
    "status": {
      "isActive": true,
      "occupancy": {
        "publishers": 42,
        "subscribers": 42,
        "presenceSubscribers": 42,
        "presenceConnections": 42,
        "presenceMembers": 42
      }
    }
  }
]
# Headers
link: string

# Payload
[
  "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"
}
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"
}