List channel subscriptions
Get a list of push notification subscriptions to channels.
Query parameters
-
channel
string Filter to restrict to subscriptions associated with that channel.
-
deviceId
string Optional filter to restrict to devices associated with that deviceId. Cannot be used with clientId.
-
clientId
string Optional filter to restrict to devices associated with that clientId. Cannot be used with deviceId.
-
limit
integer The maximum number of records to return.
Maximum value is
1000
. Default value is100
.
GET
/push/channelSubscriptions
curl \
-X GET https://rest.ably.io/push/channelSubscriptions
Response examples (2XX)
{
"id": "string",
"clientId": "string",
"formFactor": "phone",
"metadata": {},
"platform": "ios",
"deviceSecret": "string",
"push.recipient": {
"transportType": "apns",
"deviceToken": "string",
"registrationToken": "string"
},
"push.state": "Active"
}
Response examples (2XX)
{
"id": "string",
"clientId": "string",
"formFactor": "phone",
"metadata": {},
"platform": "ios",
"deviceSecret": "string",
"push.recipient": {
"transportType": "apns",
"deviceToken": "string",
"registrationToken": "string"
},
"push.state": "Active"
}
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"
}