Developers
Kweko API
Read and change leads, contacts, conversations and tasks from your own systems, get webhooks when things happen, and build apps that live inside Kweko.
Quick start
You need a Kweko workspace and the owner or admin role in it.
- In Kweko, open Settings → Developers and create an API key. Give it a name, pick the scopes it needs (for this guide:
leads:write, which includesleads:read, andcontacts:write) and an expiry. Kweko shows the key once: copy it now. It starts withkwk_live_. - Keep the key on your server. It is a password to the workspace's data: never put it in a browser, a mobile app or a URL.
- Make your first request.
whoamianswers with the key's name, scopes and workspace:
curl https://your-workspace.kweko.uz/api/v1/api-keys/whoami \
-H "Authorization: Bearer $KWEKO_API_KEY"{
"object": "api_key",
"id": "key_01j8z6q3m7e2x9c4v5b6n7p8r0",
"name": "Website form",
"scopes": ["contacts:write", "leads:write"],
"workspace": { "id": "ws_01j8z5w2k4h6j8m0n2p4r6t8v0", "slug": "acme" }
}- Create a lead. Without
pipeline_idorstage_idit lands in the first stage of the workspace's first pipeline, acontactobject creates the contact with it, andamountis in the currency's smallest unit (tiyin for UZS):
curl https://your-workspace.kweko.uz/api/v1/leads \
-H "Authorization: Bearer $KWEKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Website order #1042", "amount": 150000000, "source": "website",
"contact": {"name": "Dilnoza Karimova", "phone": "+998 90 123 45 67"}}'The answer is 201 Created with the full lead. See Leads for every field.
- List leads, newest first. Follow
next_cursorto get the next page:
curl "https://your-workspace.kweko.uz/api/v1/leads?limit=50" \
-H "Authorization: Bearer $KWEKO_API_KEY"What to read next
- Authentication and Scopes: which scope each endpoint needs.
- Requests and responses: ids, times, money and how errors look.
- Webhooks: get notified instead of polling.
- Rate limits: how fast you may call the API on each plan.
Base URL and versions
Every workspace has the API on its own address: https://your-workspace.kweko.uz/api/v1, where your-workspace is the workspace's address in Kweko (the part before .kweko.uz you sign in at). Settings → Developers shows the exact URL. Paths in these docs start at the version: GET /v1/leads means GET https://your-workspace.kweko.uz/api/v1/leads.
A key or token works only on its own workspace's address. If a workspace changes its address, the former one keeps answering API calls for 180 days; move to the new one within that time. The old shared host api.kweko.uz is retired and answers api_host_moved with the right address.
The version is part of the path; v1 is the only version. Changes that could break an integration will come as a new version, announced in the changelog. New fields, new endpoints and new event types can appear in v1 at any time, so ignore fields you do not know.
The API speaks JSON over HTTPS only. There is no official client library yet; any HTTP client works.