v1
latestOpenAPI 3.0.02026-07-2411724301.7 KB2. Consent Validate
The Kaleyra platform enables you to retrieve consent status for the channel based on mobile numbers and specific filters included in the request in real-time.
The statuses that can be returned in the response are as follows:
| Returned Status | Description |
|---|---|
| -1 | Number Not Found in the database. |
| 0 | Opt-out. |
| 1 | Opt-in. |
| 2 | Deactivated. |
post/v1/{sid}/consent/validate
Path parameters
sidstring required
Account SID (Security Identifier). For more information, see View API Key and SID.
Headers
api-keystring required
API key generated from Kaleyra platform account. For more information, see View API Key and SID.
Request body
Response
OK
object required