Introduction
The WhataBot REST API lets you programmatically manage conversation sessions, flows, workspaces, sectors, and OAuth clients. All v1 endpoints are accessible through standard HTTP requests that return JSON responses.Base URL
All v1 API requests are made to:Response Format
All responses are returned as JSON. Successful responses use standard HTTP status codes (200, 201, 202, 204). Error responses follow this format:
Pagination
List endpoints support pagination via query parameters:| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 0 | Page number (0-based) |
size | integer | 20 | Items per page |
sort | string | - | Sort in field,direction format (e.g., createdAt,desc) |
Authentication
All v1 endpoints use API Key authentication via theX-Api-Key header:
See the Authentication page for instructions on how to create your API key.
Quick Reference
Authentication
API keys and iframe authentication.
Webhooks
Receive session notifications via callback.
Sessions
Create and manage conversation sessions.
Flows
Create and list conversation flows.
Workspaces
Manage workspaces.
Sectors
Manage sectors for transfers.