Kapso API Reference
This document details the Kapso External API endpoints for integrating your systems with Kapso WhatsApp AI agents.
Base URL: https://app.kapso.io/api/v1
Authentication
All requests to the Kapso API require authentication using an API Key specific to your project.
Each API key is associated with a single project and provides access to all resources within that project. You can generate API keys in the Kapso web interface under your Project Settings.
Response Format
All API responses are returned as JSON with a consistent structure:
Success Responses (2XX)
Successful responses include the requested resource(s) serialized according to the corresponding Blueprint.
Error Responses
A short error code identifying the error type
A human-readable description of the error with additional details
Common HTTP status codes you may encounter:
400 Bad Request
401 Unauthorized
404 Not Found
422 Unprocessable Entity
429 Too Many Requests
500 Internal Server Error
Rate Limiting
The API implements rate limiting to ensure fair usage. Current limits:
- 100 requests per minute per API key or IP address
When a rate limit is exceeded, the API will return a 429 Too Many Requests
response with the following headers:
Maximum number of requests allowed per minute (100)
Number of remaining requests in the current window
Number of seconds to wait before retrying (60)
Available Endpoints
Agents
Endpoints for managing WhatsApp AI agents
Agent Executions
Control and monitor agent executions
Projects
Access project information
WhatsApp Conversations
Manage WhatsApp conversation data
WhatsApp Messages
Access individual WhatsApp messages
Webhooks
Configure webhooks for real-time events
Check out our Sample Code for examples of how to integrate with the Kapso API.