Skip to content

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/json

Create a token ​

  1. Log in to the Genudo Console.
  2. Open Settings → Developer → API Tokens.
  3. Click Create Token, pick a memorable name, one or more scopes, and an expiry.
  4. Copy the token — it is shown once and cannot be retrieved again.

Expiry options ​

ChoiceBehavior
Fixed number of daysToken stops working after that many days from creation
Never expiresToken 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.

ScopeGrants
opportunities:readRetrieve opportunities
opportunities:writeUpdate opportunities
conversations:readList a conversation's messages
conversations:writeUpdate conversation state (notes, status, tags)
conversations:testSend test messages to your AI agents in test conversations
messages:sendSend messages into a conversation and list a channel's WhatsApp templates
knowledge:readList knowledge tables, columns and points
knowledge:writeUpsert and delete knowledge table points
pipelines:readList pipelines, retrieve a pipeline with its channels, and list a channel's WhatsApp templates
whatsapp-qr:readList chats, messages, groups and group participants of your WhatsApp QR Code channels, and download their media
whatsapp-qr:sendSend text, images, files, voice notes and videos from your WhatsApp QR Code channels
mcp:useConnect 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 429 request does nothing (no message is sent), so it's always safe to retry it.

Response headers ​

Each successful response tells you where you stand:

HeaderMeaning
X-RateLimit-LimitThe limit: 30
X-RateLimit-RemainingRequests left in the current window

When you hit the limit, the response is 429 with:

HeaderMeaning
Retry-AfterSeconds to wait before retrying
X-RateLimit-ResetUnix 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 ​

CodeMeaning
401 UnauthorizedMissing, invalid, expired, or revoked token
403 ForbiddenToken is valid but missing the scope this endpoint requires
422 Validation ErrorRequest body failed validation — see the validation object in the response
429 Too Many RequestsRate 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.