2. Consent Validate
POST /v1/{sid}/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. |
Request
- Base URLapi.in.kaleyra.io (relative, and the document’s source URL is not known)
- URLapi.in.kaleyra.io/v1/{sid}/consent/validate
- AuthAPI key in header api-key
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
Changes
No recorded changes to this operation across all 1 revision of this API.