Skip to main content
The Sahut REST API lets you integrate Sahut programmatically into your systems. Use the API to sync contacts from your CRM, send proactive messages, retrieve conversation history, or build a chatbot that responds automatically to customer messages. All API requests are made over HTTPS. The API returns JSON for all responses.

Base URL

All endpoints in this reference are relative to this base URL.

Request format

Send requests as JSON with the Content-Type: application/json header. For GET requests, pass parameters as query string parameters.

Response format

All responses return a JSON object. Successful responses include a data field containing the result. Error responses include an error object. Success response:
Error response:

Error codes

Rate limits

The API enforces rate limits per API key: When you exceed the rate limit, the API returns 429 Too Many Requests with a Retry-After header indicating how many seconds to wait.

Pagination

List endpoints return paginated results. Use the page and per_page query parameters to navigate:
Responses include pagination metadata:

Timestamps

All timestamps in the API are in ISO 8601 format (UTC): 2024-03-15T08:30:00Z.