API & Webhook Examples

In this section, we provide some examples of the YCloud API and webhooks to help you understand the different endpoints and particular use cases.

Listed below are the API endpoints for which we provide examples.

API EndpointDescription
Create a WhatsApp template: POST https://api.ycloud.com/v2/whatsapp/templatesWhatsApp Template Creation Examples
Send a WhatsApp message directly: POST https://api.ycloud.com/v2/whatsapp/messages/sendDirectly
Enqueue a WhatsApp message: POST https://api.ycloud.com/v2/whatsapp/messages
WhatsApp Messaging Examples
Test webhooks: POST YOUR-WEBHOOK-ENDPOINT-URLWebhook Payload Examples