Queries 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 ISV sub-customer or the instance ID. View the 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 | 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 page-scoped ID of the customer. | Example |
NotificationMessagesReoptin | string | The re-subscription 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 status code of the request.
| OK |
NextPage | string | The identifier for the next page. Pass this value to query the next page. | 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.