Build on Welkai
Welkai has a REST API, signed webhooks and an MCP server for AI apps. With them your own system can send and read messages on every channel a business has connected, keep contacts in step with your CRM, start flows and hear about every new message as it happens.
- API reference: every operation, its arguments and answers.
- Webhooks: the events, both signature checks in four languages, retries and delivery rules.
- Connect a CRM: the whole integration step by step, with requests you can copy.
- AI apps (MCP): connect Claude, ChatGPT and other AI apps.
Your address
Every business has its own address, https://<name>.welkai.net, or its own domain once that is active. Call the API there. A key works only at its own business's address; at another one it answers 401 wrong_address.
The machine-readable API description is served by every business address, without a key:
https://<your address>/openapi.yamlhttps://<your address>/openapi.json
It is OpenAPI 3.1: generate a client from it, or read it on the API reference page.
API keys
Someone with the API permission makes a key in the dashboard: API and webhooks, the API keys tab, New API key. They pick:
- What it can do: one or more scopes (below). Read, Send and Contacts are ticked for you.
- Which numbers and channels: all the person may use, or some of them.
- Stops working: after 30 days, 90 days, 1 year (the default) or never.
The key is shown once. Send it on every call:
curl https://your-business.welkai.net/auth/me \
-H "Authorization: Bearer <your key>"
A key acts as the person who made it, never as the business's Owner, and never does more than that person may. It stops when that person leaves the team or loses the API permission. After its end date it answers 401 token.expired.
Scopes
| Scope | What it allows |
|---|---|
read | See chats, contacts, reports and settings. |
send | Reply in chats, schedule messages and send templates. |
contacts | Add, edit, tag, import, export and delete contacts. |
flows | Build flows, auto-replies and AI knowledge. |
campaigns | Broadcasts, email campaigns, festival wishes and templates. |
appointments | Book and change appointments and services. |
numbers | Connect numbers and change their settings, including webhooks. |
settings | Business settings, inbox settings and storage exports. |
all | Everything the person can do, except money, team and sign-in settings. |
Each operation in the reference names the scope it needs (x-welkai-scope). A key without it gets 403 token.not_allowed with the scope to tick.
Some things are never done with a key, whatever its scopes: billing and money, the team and roles, sign-in and security settings, keys themselves, connected apps, the business's address and domains, outside credentials and wiping data. They answer 403 token.not_allowed; a person does them in the dashboard.
Which plans
| Plan | Webhooks and delivery log | Embedded flow editor | Basic API | Full API and MCP |
|---|---|---|---|---|
| Trial | yes | no | no | no |
| Solo, Plus, Team | yes | yes | no | no |
| Growth | yes | yes | yes | no |
| Business, Enterprise | yes | yes | yes | yes |
The basic API is sending, contacts (list, read, add, edit, fields and tags), the lookup by your CRM's id, starting a flow, the email templates to send, the business's numbers and GET /auth/me. Everything else, and MCP, needs the full API. Each operation names its feature in x-welkai-plan. Without it the answer is 403 feature_not_in_plan with an upgrade_url. Keys are kept on a downgrade and work again after an upgrade.
Numbers and channels
A business may have several numbers and channels: WhatsApp numbers linked by QR, official WhatsApp Business API numbers, Facebook Pages, Instagram accounts, Telegram bots, Telegram accounts and mailboxes. GET /devices lists the ones your key may use, each with its channel. Send X-Device-Id on every call about one of them; with only one it may be left out. A number your key may not use answers 404 DEVICE_NOT_FOUND, as if it did not exist.
Limits and errors
- 600 calls a minute per key. Past it: 429
token.rate_limitedwithRetry-Afterin seconds. Sends also follow each number's own safety limits. - Refusals before a call reaches its route (key, plan, sign-in) are
{"error": <code>, "message": <plain words>}. Refusals from the route are{"code": <code>, "message": <plain words>, "params": ...}. Showmessageto people, act on the code. - 401
unauthorized,token.expired,wrong_address; 402restrictedorsuspended(the business's account); 403token.not_allowed,feature_not_in_plan,permission_required; 404 not found; 409 conflicts; 429 limits; 503try_again.
AI apps
AI apps such as Claude and ChatGPT connect to https://<your address>/mcp. The person signs in from the app and picks what it may do, the same scopes and numbers as a key. See AI apps (MCP).
Help
Write to support@welkai.com with your business's address, the request (without the key) and the answer you got.