Appearance
Authentication
The Genudo API uses OAuth 2.0 Bearer tokens (Passport personal access tokens). Every request must include:
http
Authorization: Bearer <your-token>
Accept: application/jsonCreate a token
- Log in to the Genudo Console.
- Open Settings → Developer → API Tokens.
- Click Create Token, pick a memorable name, one or more scopes, and an expiry.
- Copy the token — it is shown once and cannot be retrieved again.
Expiry options
| Choice | Behavior |
|---|---|
| Fixed number of days | Token stops working after that many days from creation |
| Never expires | Token remains valid until you revoke it |
Whatever you pick can also be changed by creating a new token and revoking the old one — tokens themselves are immutable after creation.
Scopes
Each token carries one or more scopes that define exactly what it can access. Requests to a scope-protected endpoint fail with 403 if the token is missing that scope. A token can only call endpoints that are listed in this reference — every other endpoint returns 403.
| Scope | Grants |
|---|---|
opportunities:read | Retrieve opportunities |
opportunities:write | Update opportunities |
conversations:read | List a conversation's messages |
conversations:write | Update conversation state (notes, status, tags) |
conversations:test | Send test messages to your AI agents in test conversations |
messages:send | Send messages into a conversation and list a channel's WhatsApp templates |
knowledge:read | List knowledge tables, columns and points |
knowledge:write | Upsert and delete knowledge table points |
pipelines:read | List pipelines, retrieve a pipeline with its channels, and list a channel's WhatsApp templates |
whatsapp-qr:read | List chats, messages, groups and group participants of your WhatsApp QR Code channels, and download their media |
whatsapp-qr:send | Send text, images, files, voice notes and videos from your WhatsApp QR Code channels |
mcp:use | Connect to the MCP server (Streamable HTTP + JSON-RPC tool calls) |
Rate limits
Each account can make 30 requests per minute with its API tokens, across every endpoint in this reference, including sends.
How it works:
- One limit per account. Creating more tokens doesn't raise it. Requests from all of your account's tokens share the same 30.
- Fixed one-minute window. The count resets 60 seconds after the window's first request.
- Rejected requests aren't processed. A
429request does nothing (no message is sent), so it's always safe to retry it.
Response headers
Each successful response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | The limit: 30 |
X-RateLimit-Remaining | Requests left in the current window |
When you hit the limit, the response is 429 with:
| Header | Meaning |
|---|---|
Retry-After | Seconds to wait before retrying |
X-RateLimit-Reset | Unix timestamp when the window resets |
json
{
"status": false,
"code": 429,
"validation": [],
"message": "Too many requests. Retry after 42 seconds.",
"data": {}
}Handling 429
Wait for Retry-After seconds, then retry the same request:
js
async function call(url, options) {
const res = await fetch(url, options)
if (res.status === 429) {
const wait = Number(res.headers.get('Retry-After') ?? 60)
await new Promise((resolve) => setTimeout(resolve, wait * 1000))
return call(url, options)
}
return res
}To send many messages, spread them out (for example, one every 2 seconds) instead of sending in bursts. Bursts hit the limit, and WhatsApp may ban numbers that send in bulk.
Errors
| Code | Meaning |
|---|---|
401 Unauthorized | Missing, invalid, expired, or revoked token |
403 Forbidden | Token is valid but missing the scope this endpoint requires |
422 Validation Error | Request body failed validation — see the validation object in the response |
429 Too Many Requests | Rate limit exceeded — retry after the Retry-After header |
All error responses follow the same envelope:
json
{
"status": false,
"code": 403,
"message": "Missing required scope: opportunities:write",
"validation": null,
"data": null
}Revoke a token
Any token can be revoked from the dashboard immediately. A revoked token starts failing with 401 on the next request.