Webhooks & REST API

Channels & Integrations

Webhooks & REST API

Conviro provides webhooks for real-time event notifications and a REST API for programmatic access to all platform features.

Webhooks

What Are Webhooks?

Webhooks send an HTTP POST request to your server whenever a specific event occurs in Conviro. This allows you to react in real time without polling.

Available Events

EventFires When
message.newA new message is sent (by visitor or bot)
session.startedA new conversation session begins
session.closedA conversation is closed
session.handoffA conversation is handed off to a human agent
lead.capturedA new lead is captured
contact.createdA new contact is created
ticket.createdA support ticket is opened
csat.submittedA CSAT rating is submitted

Setup

  1. Navigate to Dashboard -> Settings -> Webhooks.
  2. Click Add Webhook.
  3. Enter your endpoint URL (must be HTTPS).
  4. Select the events you want to receive.
  5. Click Save.

Security: HMAC-SHA256 Signing

Every webhook payload is signed with HMAC-SHA256 using your webhook secret. Verify the signature on your server to ensure authenticity:

X-Conviro-Signature: sha256=<hex_digest>

Compare this header against the HMAC-SHA256 digest of the raw request body using your webhook secret.

Retry Policy

If your endpoint returns a non-2xx status code, Conviro retries up to 3 times with exponential backoff (1 min, 5 min, 30 min).


REST API

Authentication

  1. Generate an API key at Dashboard -> Settings -> API Keys -> Create Key.
  2. Include it in the Authorization header:
Authorization: Bearer sk_your_api_key_here

Key Endpoints

MethodEndpointDescription
GET/api/chatbotsList all chatbots
GET/api/chatbots/:idGet chatbot details
GET/api/sessionsList sessions (with filters)
GET/api/sessions/:id/messagesGet messages for a session
POST/api/sessions/:id/messagesSend a message to a session
GET/api/contactsList contacts
POST/api/contactsCreate a contact
GET/api/leadsList leads
POST/api/leadsCreate a lead
GET/api/analytics/overviewGet analytics summary

Rate Limits

  • Free plan: 60 requests/minute
  • Starter: 120 requests/minute
  • Pro: 300 requests/minute
  • Growth+: 600 requests/minute

Rate limit headers are included in every response:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 298
X-RateLimit-Reset: 1672531200

Full Documentation

Visit /developers for the complete API reference with request/response examples.

webhookapiresthmacintegrationendpointsdeveloper

Was this article helpful?