v1

latestOpenAPI 3.0.02026-07-2411724301.7 KB
3. List Records

The Kaleyra platform allows you to extract end-users' mobile numbers based on specific filters provided in the request and retrieve their corresponding consent data.

get/v1/{sid}/consent/list

Path parameters

sidstring required

Account SID (Security Identifier). For more information, see View API Key and SID.

Query parameters

channelstring required
Example:sms

Channel name for which you want to update the consent. Example - sms.

status-1 | 0 | 1 | 2
Example:1

The statuses that will be returned in the response. Example,<br> -1 - Number Not Found in database <br> 0 - Opt-out <br> 1 - OPT_IN <br> 2 - Deactivated.

from_datestring date

The start date from which you want to list the consent record in (YYYY-MM-DD) format.

to_datestring date

The end date up to which you want to list the consent record in (YYYY-MM-DD) format.

consent_categorystring
Example:marketing

Message category, like marketing or promotional, for which consent is given or revoked.

sort_order'asc' | 'desc'
Example:desc

Sort order in ascending order or descending order.

pageinteger
Example:1

Page number for pagination.

limitinteger
Example:50

Number of records per page.

sort_bystring
Example:updated_at

Field to sort by. Example, created_at.

sender_identifierstring

Sender ID used to send the message.

contact_identifierstring

specific contact to fetch for or the end-user's mobile number.

Headers

api-keystring required

API key generated from the Kaleyra platform account. For more information, see View API Key and SID.

Response

OK

object required