LAST UPDATED · NOVEMBER 2, 2026
Connect your own system
A service token is a credential for a system you run — n8n, a Zapier or Make HTTP step, a small script — so it can read and write your workspace under its own name. It is not a person's login, and it cannot do anything you did not list.
1.0What a service token is
The token is one string that starts with kip_svc_. This page never shows a real one. Where a sample needs the secret, it says kip_svc_….
You create it by asking the AI you already connected to Kipuly. That request always waits for approval on a signed link. A "yes" typed in the chat does not count. The secret is shown once, on the approval page, and Kipuly keeps only a hash of it. Copy it into the place you already keep API keys. If you lose it, it is gone: revoke that token and create another.
The console has no button that creates a token. The secret can only appear on the approval page, so the console will not mint one. Revoking, later on this page, does live in the console.
2.0Create one
Say something this specific. Name the system, and name every verb and table.
Create a service identity called Job inbox.
It may create and read records in jobs, and nothing else.
Your AI calls kipuly_execute_action with the action manage_service_identities:
{
"action": "manage_service_identities",
"params": {
"op": "create",
"display_name": "Job inbox",
"scope": ["create:jobs", "read:jobs"]
}
}
jobs in that example has to be a table that already exists in your workspace. Use your own table names. The approval email (and a phone notification, if you set one up) carries the signed link. Open it, read the name and the exact scope, and approve there. The page then shows the secret once.
A service token cannot create another service token. Machines do not grant authority to machines.
3.0Scopes
A scope is a list of verb:table pairs. The verb is one of create, update, delete, or read. The table is the exact name of a table you already have: lowercase letters, digits, and underscores, such as jobs or store_orders. At most 20 pairs. There is no wildcard. *, all, a verb with no table, and a table with no verb are all refused.
Each pair is that verb on that table only. create:jobs together with read:customers does not allow creating a customer. What you leave off is refused.
Create and read, without delete, is a normal scope for an inbox that files work and looks it up again:
["create:jobs", "read:jobs"]
The list is fixed when the token is approved. It is never edited in place. To change what a token can do, revoke it and create a new one. To swap the secret without a gap, ask for an additional credential on the same identity and pass only that identity's id — the new credential keeps the scope already approved, still needs the signed approval, and shows a new secret once. Both work until you revoke the old one.
4.0Call Kipuly
One HTTP POST, to the same address a person's AI uses:
POST https://kipuly.com/mcp
The body is JSON-RPC, method tools/call. Send these headers. Accept lists both types even though the answer is a single JSON object:
Content-Type: application/jsonAccept: application/json, text/event-streamAuthorization: Bearer kip_svc_…
Only POST is accepted. There is no session to open first.
A token may call only these tools. Each one is checked against the matching verb on the table you named. kipuly_whoami names no table; it tells you which identity the secret belongs to.
| Tool | Needs |
|---|---|
kipuly_create_record | create on that table |
kipuly_update_record | update |
kipuly_delete_record | delete |
kipuly_restore_record | delete (restore travels with delete) |
kipuly_query_records | read |
kipuly_get_record | read |
kipuly_describe_table | read |
kipuly_whoami | no table |
Everything else is refused. That includes searching across tables, bulk import, sending email, changing the schema, writing the handbook, and minting another token.
4.1An n8n workflow you can paste
In n8n, use Import from clipboard. The first HTTP Request node creates one record. The code node reads the answer. The second HTTP Request node queries that record back. Replace jobs and the fields with a table you actually have, and replace kip_svc_… from your secret store. Prefer an n8n credential over saving the real token inside a workflow you share. The same POST, headers, and bodies work from a Zapier or Make HTTP step, or from curl.
{
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://kipuly.com/mcp",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "Content-Type", "value": "application/json" },
{ "name": "Accept", "value": "application/json, text/event-stream" },
{ "name": "Authorization", "value": "Bearer kip_svc_…" }
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"tools/call\",\n \"params\": {\n \"name\": \"kipuly_create_record\",\n \"arguments\": {\n \"table\": \"jobs\",\n \"data\": { \"title\": \"Kitchen repaint\", \"status\": \"booked\" }\n }\n }\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [240, 300],
"id": "11111111-1111-4111-8111-111111111111",
"name": "Create a record"
},
{
"parameters": {
"jsCode": "const rpc = $input.item.json;\nif (rpc.error) {\n throw new Error(String(rpc.error.code || 'rpc') + ': ' + String(rpc.error.message || ''));\n}\nconst result = rpc.result || {};\nconst isError = result.isError === true;\nconst part = result.content && result.content[0];\nconst text = part && part.text;\nconst body = text ? JSON.parse(text) : {};\nif (isError || body.error) {\n const err = body.error || {};\n const wait = err.retry_after_seconds;\n throw new Error(String(err.code || 'error') + (wait == null ? '' : ' retry_after_seconds=' + wait) + ': ' + String(err.message || ''));\n}\nif (body.status === 'pending_approval') {\n throw new Error('protected table: the write is waiting for approval');\n}\nreturn { json: { id: body.record && body.record.id, body: body } };"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [520, 300],
"id": "22222222-2222-4222-8222-222222222222",
"name": "Read the tool result"
},
{
"parameters": {
"method": "POST",
"url": "https://kipuly.com/mcp",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "Content-Type", "value": "application/json" },
{ "name": "Accept", "value": "application/json, text/event-stream" },
{ "name": "Authorization", "value": "Bearer kip_svc_…" }
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ jsonrpc: '2.0', id: 2, method: 'tools/call', params: { name: 'kipuly_query_records', arguments: { table: 'jobs', filters: [{ field: 'id', op: 'eq', value: $json.id }] } } }) }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [800, 300],
"id": "33333333-3333-4333-8333-333333333333",
"name": "Query that record"
}
],
"connections": {
"Create a record": { "main": [[{ "node": "Read the tool result", "type": "main", "index": 0 }]] },
"Read the tool result": { "main": [[{ "node": "Query that record", "type": "main", "index": 0 }]] }
}
}
The query node's answer has the same shape. Parse result.content[0].text again. The records are in records, each with id and data.
4.2How to read the answer
A tool call that Kipuly understood comes back as HTTP 200, including when the tool refuses. The useful part is a JSON string:
result.content[0].text // a JSON string — parse it
result.isError // true when the tool refused
Parse result.content[0].text. If result.isError is true, the parsed object has error.code, error.message, and error.remediation. On an ordinary table, a successful create includes record.id, receipt_id, audit_event_id, and policy_decision.
service_scope_refused— this token's scope does not include that verb on that table. The message names the scope it does have. HTTP 200,isError: true.rate_limited— this workspace used its per-minute allowance on this server.error.retry_after_secondsis how many seconds to wait. Nothing was written. HTTP 200,isError: true.401— the token is missing, wrong, or already revoked. The body is{"error":"invalid_token","message":"…"}or{"error":"missing_token","message":"…"}. There is noresult. A revoked token fails on the very next request. Kipuly checks the database every time, so there is nothing to wait out.
5.0Protected tables and history
If an owner has protected a table, a create, update, delete, or restore on it does not land immediately. The call comes back with status: "pending_approval" and policy_decision: "require_approval". Someone who can approve decides it on the signed link. The link is in that notification, not in the tool result. Reads on a protected table are not held up.
Every change is written into that record's history, under the service identity. principal_type is service. client is svc: plus the credential's public id, so two live tokens on one identity stay distinct. The token cannot open that history itself. Ask your connected AI, or look at the record in the console.
6.0Revoke it
Open Connections in the console and use Revoke on the service identity, or on one credential if you are retiring the old half of a swap. Revoke still needs the signed approval. It is the same action as asking your AI to revoke it. After that approval, the next call with the token is a 401.
A token does not expire on its own. It works until you revoke it.
7.0Limits
These are abuse brakes, counted for the whole workspace, not a meter on the token. A tight loop is what they stop.
| Limit | Solo | Team | Pro |
|---|---|---|---|
| Service identities | 5 | 25 | 100 |
| Tool calls per minute, per server | 300 | 300 | 300 |
| Tool calls per UTC day | 5,000 | 20,000 | 75,000 |
| Webhook subscriptions | 5 | 25 | 100 |
| Webhook deliveries per UTC day | 1,000 | 10,000 | 50,000 |
- A scope list holds at most 20
verb:tablepairs. - The identity cap is checked when a new identity is created, not on each call. An extra credential on an identity you already have does not use another slot.
- The per-minute brake is 300 tool calls in the current minute, counted in memory on each server. Past that, the tool result is
rate_limitedandretry_after_secondscounts down to the end of that minute. A burst spread across servers can add up to more than 300. - The daily cap resets at midnight UTC. Past it, the tool result is
billing_limit_reached. Nothing ran.
8.0Webhooks out
Kipuly can POST to an https URL you control when something happens. Ask your connected AI to subscribe that URL. It needs the same kind of signed approval. The signing secret, whsec_…, is shown once on the approval page. A new subscription stays off until your URL answers a verification.
The verification is a signed POST whose JSON includes "type": "endpoint.verification" and a nonce. Reply with a 2xx whose body contains that nonce, for example {"nonce":"…"}. After that, events flow.
You subscribe to one or more of these events. Record and schema events name one table. Approval events cover the whole workspace and are subscribed with no table:
record.created,record.updated,record.deleted,record.restored,record.revertedapproval.requested,approval.approved,approval.rejected,approval.expiredschema.changed
For record.updated you can name the fields that should fire it. The POST is signed with Standard Webhooks. The headers are:
webhook-idwebhook-timestampwebhook-signature— one or morev1,signatures, separated by spaces. For 24 hours after you rotate the secret, the current key and the previous key both sign.content-type: application/jsonuser-agent: Kipuly-Webhooks/1
The body carries ids and, on an update, the names of fields that changed. It does not carry field values. actor.kind is human, ai, or service. The fields are id, type, api_version (2026-09-20), created_at, workspace_id, seq, actor, and data (table, record_id, version, changed_fields, batch_id). A delete or restore also has data.deleted_at. An approval event has data.action, data.action_request_id, and data.approval_id.
Fetch the record yourself with kipuly_get_record, using a token whose scope includes read: that table. A delivery can arrive more than once. webhook-id is the same on a repeat, so ignore the second copy.