What the API Provides
The Tuco AI API lets your own systems work directly with the same data you see in the Tuco dashboard. You can:- Create and update leads.
- View and organize leads and lines.
- Send messages through your approved sending identities.
- Receive notifications when important events occur.
Access & Authentication
API access is controlled from within your Tuco workspace. You decide:- Which workspaces may use the API.
- Which environments may use production data.
Authorization with Tuco API Keys
Tuco uses a workspace‑level API key for server‑side access. From your perspective:- Each key clearly belongs to a specific workspace.
- You can enable or disable keys without affecting the rest of the product.
- Requests made with a valid key are treated as coming from your workspace.
/api-reference/api-keys.
Request & Response Shape
All endpoints follow a simple pattern:- A request either succeeds and confirms what was accepted.
- Or it fails and clearly indicates why.
- Standard HTTP status codes to understand whether a call worked.
- Human‑readable messages that explain what went wrong when something is rejected.
Correlation IDs (request tracing)
Every request that hits a Tuco send endpoint can be tagged with a correlation ID. Pass it either as a header or as a field on the JSON body — whichever is easier from your client. If you don’t pass one, Tuco generates a server-side ID prefixedapp_… and threads it through the rest of the pipeline.
| Where | Name | Example |
|---|---|---|
| Header (preferred) | x-correlation-id | x-correlation-id: my-svc_2026-05-29_a73f9c |
| JSON body field | correlationId | { "correlationId": "my-svc_2026-05-29_a73f9c", … } |
message.api.request,
message.api.create_message_returned, cap.reservation.entered/granted/denied,
message.send.summary. Grepping a single ID lets you reconstruct the whole
request → gate → send → webhook chain.
A few endpoints accept additional trace headers when integrating with a
specific source system, so the same ID can stitch across multiple services:
x-execution-id— GHL workflow execution ID (forwarded by tuco-ghl).x-ghl-workflow-id— GHL workflow definition ID.
Reliability & Limits
The API is designed so that normal usage from typical business systems works without special tuning. If you reach a documented limit, you see clear error responses and nothing is changed unexpectedly. The system automatically handles internal protections to keep your account and recipients safe. For specific status codes and common outcomes, see/api-reference/errors.