Submit WhatsApp Direct Send Sample
POST/api/v1/whatsapp/subaccounts/:subAccountId/channels/:channelId/directSend/sample
This endpoint is used to submit a sample of a WhatsApp Direct Send message to Meta for review and classification.
Direct Send auto-creates WhatsApp templates on the fly and matches incoming messages against them. Submitting sample messages will ensure that the messages you send through Direct Send are accurately classified and transformed into templates that are useful for your use cases.
The response indicates whether the sample was processed successfully and the category Meta assigned to it. Possible categories are UTILITY, MARKETING, and AUTHENTICATION.
Samples can be of two types:
text— a plain text body.interactive— an interactive message with a call-to-action URL (cta_url) or reply buttons (button).
Request
Responses
- 200
- 400
- 401
- 403
- 500
Sample submitted successfully
Bad request error response
Request was not authenticated response
Request was not authenticated response
Internal server error