Connecting an automation platform
Build on the Automation Connector: OAuth, triggers with REST hooks and polling, actions, and the rules.
Not in the App Directory yet: the Automation Connector is listed once its first platform is connected. Until then an admin can’t add it, and the requests on this page have no client to sign in with.
The Automation Connector is how an automation platform (the tools that link other apps together) reaches Kemble Work and Kemble Circle. It is one app with an OAuth client. A platform builds on it once, each customer’s admin adds it, and each person connects their own account.
To build on it, tell us your platform’s callback address, and we’ll add it to the client: support@kemble.io
Signing in
OAuth 2 with PKCE (S256). Send people to https://kemble.io/app/oauth/authorize with client_id, redirect_uri (an exact match of a registered address), scope, state, response_type=code, code_challenge and code_challenge_method=S256. Exchange the code at POST https://kemble.io/api/oauth/token with grant_type=authorization_code, code, client_id, client_secret, redirect_uri and code_verifier, form-encoded or JSON. Refresh with grant_type=refresh_token; tokens change on every use. Check a connection with GET /api/oauth/me.
Scopes
identity.basic, chat.write, automation.channels:read, automation.messages:read, automation.reactions:read, automation.reactions:write, automation.members:read, automation.channels:write.
Triggers
Subscribe with POST /api/apps/automation/subscriptions and the JSON below. It returns id, trigger, channelId and secret. The secret signs what we send and is shown once. DELETE /api/apps/automation/subscriptions/{id} ends it, with any scope of the token.
{
"trigger": "message",
"channelId": "<optional, a channel to watch>",
"targetUrl": "https://hooks.example.com/kemble"
}Triggers are message, reaction, mention and member. GET /api/apps/automation/poll/{trigger}?channelId=&limit=25 returns the same items, newest first, as a JSON array, for samples and for platforms that poll. The new-message trigger is people’s text messages only.
{
"id": "<stable: deduplicate on it>",
"trigger": "message",
"occurredAt": "2026-11-10T09:00:00.000Z",
"workspace": { "id": "<id>" },
"channel": { "id": "<id>", "name": "<name>" },
"message": { "id": "<id>", "text": "<words>", "author": { "id": "<id>", "name": "<name>" }, "url": "<address>" },
"reaction": null,
"member": null
}Requests we send carry x-kemble-signature (HMAC-SHA256, hex, of <x-kemble-timestamp>.<body> with the subscription’s secret), x-kemble-timestamp, x-kemble-event, x-kemble-subscription and x-kemble-attempt. Answer 2xx to accept, or 410 to end the subscription. Anything else is tried again a few times, and a redirect is not followed.
Actions
- POST /api/apps/messages with channelId and text (needs chat.write).
- PATCH /api/apps/messages/{id} with text, for a message that connection posted. Another connection gets 404.
- POST /api/apps/automation/reactions with messageId and emoji.
- POST /api/apps/automation/channels with name, an optional spaceId and isPrivate.
- GET /api/apps/automation/channels and GET /api/apps/automation/spaces, for choosers: JSON arrays with id and name.
- PUT /api/apps/home answers 404 to these tokens.
The rules
A token acts as the person who connected it: only what they can read and do, in channels the installation reaches, and an admin may narrow them. Never a direct conversation or a private thread, and never an email address. Nothing from before a person’s history begins in a channel is sent, and a message under a legal restriction is never pushed.
Guests, and in Kemble Circle accounts under 18, can’t connect it: consent is refused with automation.members_only or automation.teen, and a token kept from before stops working. New-member news is only for people who manage members, and it is refused with automation.channels_narrowed when the installation is narrowed to some channels or spaces. An admin adds or removes the app and can see and end every connection, and removing it stops everything at once.
Limits
These are the app’s ceilings, per workspace, never a person’s: 1,200 reads and 240 writes a minute (HTTP 429 with Retry-After), 600 deliveries a minute (polling catches up past that; a push over it is dropped), 100 subscriptions per connection and 2,000 per workspace. A subscription stops after twenty failed events in a row.