Kaleyra Reference APIs enable you to test the APIs in real time.
To test the API, perform the following steps:
- In the URL section (right pane), click the arrow next to Base URL and the list of base URLs appears.
- Select the base URL based on your region.
- In the SID field (left pane), enter the SID from your kaleyra.io account. For more information, see View API Key and SID.
- In the waba_id field, enter the WhatsApp Business ID. For more information, see Add a New WABA ID page.
- In the id field, enter the resumable media details by progressive Id which is given to end user at the time of resumable media creation.
- In the file field, upload the file stored in your local directory.
- In the type field, enter the type of the media file to be uploaded. The supported file types are:
- application/pdf
- image/jpeg
- image/jpg
- image/png
- video/mp4
- In the api-key field, enter the API key from your kaleyra.io account. For more information, see View API Key and SID.
- In the Content-Type field, you can either enter the content type, or you can select the default content-type.
- Click Try It! (right pane). The response appears based on your API request and entered details.
