All Products
Search
Document Center

Chat App Message Service:CheckDirectSendMessageSample

Last Updated:Jun 10, 2026

Memvalidasi konten pesan langsung untuk WhatsApp.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

Type

string

Yes

Jenis konten pesan langsung. Nilai valid:

  • interactive

  • text.

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:

  • UTILITY: A template related to a specific, agreed-upon transaction.

  • MARKETING: A template for promotional or marketing purposes.

example

Success

boolean

Whether the validation was successful. Valid values:

  • true: The validation succeeded.

  • false: The validation failed.

true

Code

string

The status code of the request.

  • OK indicates that the request was successful.

  • For other error codes, see Error codes.

OK

Success

boolean

Whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

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.