Lists custom audiences and subscription tokens.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:ListMessengerSubscriptionToken |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CustSpaceId |
string |
Yes |
The Space ID of the Independent Software Vendor (ISV) sub-customer. This is the channel ID. Find the channel ID on the Channel Management page. |
cams-** |
| PageId |
string |
Yes |
The Page ID for Messenger. |
239*** |
| TokenType |
string |
Yes |
The token type. Valid values:
|
customAudience |
| CustomAudienceId |
string |
No |
The custom audience ID. |
233** |
| PageKey |
string |
No |
The pagination key. |
2ie** |
| Limit |
integer |
No |
The number of entries to return. Valid values: 1 to 1000. |
67 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| Message |
string |
The error message. |
OK |
| RequestId |
string |
The request ID. |
ei** |
| Data |
array<object> |
The returned data object. |
|
|
object |
The returned data. |
||
| PageId |
string |
The Page ID for Messenger. |
239*** |
| TopicTitle |
string |
The message's title |
Example |
| CustomAudienceId |
string |
The custom audience ID. |
Example |
| RecipientId |
string |
The customer's Page-scoped ID (PSID) |
Example |
| TokenExpiryTimestamp |
integer |
The expiration time of the security token. |
172546854885 |
| CreationTimestamp |
integer |
The time when the security token was created. |
172546854885 |
| NotificationMessagesToken |
string |
The customer's page-scoped token. |
Example |
| NotificationMessagesReoptin |
string |
The re-opt-in status. |
Example |
| NextEligibleTime |
integer |
The time when the application can send the next marketing message to the recipient. |
172546854885 |
| NotificationMessagesTimezone |
string |
The customer's time zone. |
Example |
| UserTokenStatus |
string |
The status of the security token. |
Example |
| Code |
string |
The request status code.
|
OK |
| NextPage |
string |
The token for the next page. Pass this token in your next request to retrieve the next page of results. |
3399*** |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "OK",
"RequestId": "ei**",
"Data": [
{
"PageId": "239***",
"TopicTitle": "Example",
"CustomAudienceId": "Example",
"RecipientId": "Example",
"TokenExpiryTimestamp": 172546854885,
"CreationTimestamp": 172546854885,
"NotificationMessagesToken": "Example",
"NotificationMessagesReoptin": "Example",
"NextEligibleTime": 172546854885,
"NotificationMessagesTimezone": "Example",
"UserTokenStatus": "Example"
}
],
"Code": "OK",
"NextPage": "3399***",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.