Memvalidasi konten pesan langsung untuk WhatsApp.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
Yes |
Jenis konten pesan langsung. Nilai valid:
|
interactive |
| Interactive |
object |
No |
Isi pesan interaktif. |
|
|
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 |
Isi pesan teks. |
{"text": "This is a direct send message"} |
| CustSpaceId |
string |
Yes |
SpaceId sub-pelanggan ISV atau ID instans pelanggan langsung. |
cams-xx** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| RequestId |
string |
The request ID. Use this ID to trace logs and troubleshoot issues. |
example |
| Message |
string |
The response message. |
example |
| Data |
object |
The response data. |
|
| Category |
string |
The category of the WhatsApp template. Valid values:
|
example |
| Success |
boolean |
Whether the validation was successful. Valid values:
|
true |
| Code |
string |
The status code of the request.
|
OK |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"AccessDeniedDetail": "None",
"RequestId": "example",
"Message": "example",
"Data": {
"Category": "example",
"Success": true
},
"Code": "OK",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.