Validates the content of a WhatsApp direct-send template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:CheckDirectSendMessageSample |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
Yes |
The direct-send content type. Valid values:
Valid values:
|
interactive |
| Interactive |
object |
No |
The message body of the interactive type. |
|
|
any |
No |
The interactive content. |
{"type": "cta_url", "header": { "type": "text","text": "Order Update"}, "body": { "text": "Your order is ready."}, "action": { "name": "cta_url", "parameters": { "display_text": "View Order","url": "https://example.com" } } } |
|
| Text |
object |
No |
The message body of the text content. |
{"text": "This is a direct send message"} |
| CustSpaceId |
string |
Yes |
The space ID of the ISV sub-customer or the instance ID of the direct customer. |
cams-xx** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| RequestId |
string |
The request ID, which is used to locate logs and troubleshoot issues. |
example |
| Message |
string |
The response message. |
example |
| Data |
object |
The returned data. |
|
| Category |
string |
The WhatsApp template category. Valid values:
|
example |
| Success |
boolean |
Indicates whether the operation is successful. Valid values:
|
true |
| Code |
string |
The request status code.
|
OK |
| Success |
boolean |
Indicates whether the operation is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"RequestId": "example",
"Message": "example",
"Data": {
"Category": "example",
"Success": true
},
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.