Kaleyra Consent API Reference Testing Procedure

Kaleyra Reference APIs enable you to test the APIs in real time.

To test the API, perform the following steps:

  1. In the URL section (right pane), click the arrow next to Base URL and the list of base URLs appears.
  1. Select the base URL based on your region.
  2. In the SID field (left pane), enter the SID from your kaleyra.io account. For more information, see View API Key and SID.
  3. In the channel field, enter the channel name. Currently, only SMS is supported by the Kaleyra platform.
  4. In the sender_identifier field, enter the inbound sender ID. In case of SMS, it’s the short code for customers. The number to which end-users can send Opt-In/Opt-Out or is this the long/short code about which they want to Opt-In/Opt-Out?
  5. In the contact_identifier field, enter the contact identifier of the end-user or end-user's mobile number.
  6. In the source field, enter the source of the consent request or source of opt-in or opt-out. For example, API.
  7. In the consent_status field, enter the status of consent. For example, OPT_IN or OPT_OUT.
  8. In the api-key field, enter the API key from your kaleyra.io account. For more information, see View API Key and SID.
  1. On the Credentials section (top-right pane), in the api-key field, enter the API key from your kaleyra.io account. For more information, see View API Key and SID.
  2. In the Content-Type field, you can either enter the content type or you can select the default content-type. To select the default content type, click the field and then select the Use example value.
  1. Click Try It! (right pane). The response appears based on your API request and entered details.



© 2025 Kaleyra Inc. All rights reserved.
Trademarks, logos and service marks displayed on this site are registered and unregistered trademarks of Kaleyra Inc.