Webhooks
Configure Webhook
Endpoint: POST /sessions/:id/webhook
Request Body
{
"url": "https://your-server.com/webhook"
}cURL Example
curl -X POST https://codeskytz-api-lajj0.sevalla.app/sessions/:id/webhook \
-H "Content-Type: application/json" \
-d '{"url":"https://your-server.com/webhook"}'Webhook Payload
When a message is received, your webhook URL will receive:
{
"sessionId": ":id",
"from": "+1234567890",
"message": "Hello!",
"timestamp": "2025-01-08T12:00:00Z"
}