Webhook
Last updated
Was this helpful?
You may find more specialised integration guidance in the developer documentation: Developer Documentation - Webhook Integration Guide
A webhook is an event-driven HTTP callback mechanism. When a specific event occurs within the YCloud system, it proactively pushes the event data via an HTTPS request to a pre-configured URL (the webhook address), thereby eliminating the need for frequent interface polling.
Log in to the YCloud dashboard, navigate to Developer > Webhooks, and click Add Endpoints to create a webhook endpoint.

YCloud offers various event options for WhatsApp, SMS, Contact, Email, and more.
You may find all relevant payloads for the events here: Webhook Payload

Always verify the signature to ensure the request originates from YCloud and has not been tampered with.

Extract the timestamp (t) and signature (s) from the request header (The timestamp is a Unix timestamp in seconds) .
Construct the signed payload: signed_payload: {timestamp}.{request_body}.
Compute the signature using the HMAC-SHA256 algorithm:
Compare the computed signature with the received signature.
Return a 2xx status code (e.g. 200, 201, 204)
Any non-2xx response will trigger a retry.
Fast response (recommended within 6 seconds)
Fast responses increase your webhook priority.
Slow responses (>10 seconds) may be deprioritised.
Asynchronous processing (recommended)
Immediately return 200 OK.
Process events in background jobs/queues.
Should your service return a non-2xx status code or fail to respond, YCloud will automatically retry:
Retry schedule: 10 seconds → 30 seconds → 5 minutes → 30 minutes → 1 hour → 2 hours → 2 hours.
Maximum retry count: 7 times.
After 7 failures: The event will no longer be retried.
To safeguard system resources, frequently failing URLs will be temporarily suspended:
Trigger conditions: 200 failures per minute or cumulative failure time exceeding 10 minutes per minute
Suspension duration: 3 minutes
During suspension: No webhook requests will be sent
After suspension: Automatic restoration
Last updated
Was this helpful?
Was this helpful?
YCloud-Signature: t={timestamp},s={signature}HMAC-SHA256(signed_payload, secret)