Get message history for a channel
Get message history for a channel
Path parameters
-
channel_id
string Required The Channel's ID.
GET
/channels/{channel_id}/messages
curl \
-X GET https://rest.ably.io/channels/{channel_id}/messages
Response examples (201)
# Headers
link: string
x-ably-serverid: string
# Payload
[
{
"name": "string",
"data": "string",
"id": "string",
"timestamp": 42,
"encoding": "string",
"clientId": "string",
"connectionId": "string",
"extras": {
"push": {
"data": "string",
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
},
"apns": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
},
"fcm": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
},
"web": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
}
}
}
}
]
Response examples (201)
# Headers
link: string
x-ably-serverid: string
# Payload
[
{
"name": "string",
"data": "string",
"id": "string",
"timestamp": 42,
"encoding": "string",
"clientId": "string",
"connectionId": "string",
"extras": {
"push": {
"data": "string",
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
},
"apns": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
},
"fcm": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
},
"web": {
"notification": {
"title": "string",
"body": "string",
"icon": "string",
"sound": "string",
"collapseKey": "string"
}
}
}
}
}
]