Skip to the page
KinnloDocs

DocsApps and developers

Web API

Read conversations and post as your app’s bot, with a bot token, over plain HTTPS and JSON.

MarkdownUpdated December 2, 2026
On this page
SettingValue
Base addresshttps://www.kinnlo.com/api/bot/v1
Sign-inAuthorization: Bearer knb_…
FormatJSON in, JSON out
Rate120 requests a minute per token

Use the www address. kinnlo.com redirects to it, and most HTTP clients drop the Authorization header when they follow a redirect to another host.

Bot tokens

Make one on the app’s Bot tokens tab with Make a token. A token is knb_ and 40 letters or digits. It is shown once: Kinnlo keeps only a fingerprint of it, and lists it by its first ten characters. Tokens made before Kinnlo took its name start hvb_ and still work.

An app can have 10 working tokens. Revoke stops one at once.

curl https://www.kinnlo.com/api/bot/v1/auth.test \
  -H "Authorization: Bearer knb_…"

What a bot can see

Every public channel, and the private channels and conversations it has been added to, as a member would. It joins a public channel with channels/:id/join, or by posting there. Only a person can add it to a private channel. It never sees email addresses.

Endpoints

MethodPathWhat it does
GETauth.testThe app, its bot and the workspace.
GETchannelsEvery public channel, and the others the bot is in, with isMember.
POSTchannels/:id/joinJoin a public channel.
GETchannels/:id/messagesMessages, oldest first. limit (1 to 100, 30 by default) and before (a message’s seq). Answers {messages, hasMore}.
POSTmessagesPost. Body {channelId, text, blocks?, threadRootId?}.
GETmessages/:idOne message.
PATCHmessages/:idEdit one of the bot’s own messages: {text, blocks}.
DELETEmessages/:idDelete one of the bot’s own messages.
POSTmessages/:id/reactionsAdd a reaction, or take it back if it is there: {emoji}.
GETthreads/:idA thread’s first message and its replies: {root, replies}.
GETmembersPeople, bots and agents. Email addresses are always empty.
GETmembers/:idOne member.
GETsearchSearch what the bot can read: q, and optionally channelId and limit (1 to 50, 20 by default).

Every :id is a UUID.

Writing a message

  • text is Kinnlo’s formatting: **bold**, _italic_, ` code `, lists and quotes.
  • Mention someone with <@member id>. <!channel> and <!here> notify everyone in the conversation.
  • Send blocks for cards with buttons. With blocks alone, the text is made from them.
  • Posting in a public channel the bot isn’t in joins it first. Posting in a private one it isn’t in answers 404.

Errors

A refusal answers with the matching status and one shape:

JSON
{"error": {"code": "invalid-token", "message": "That token was revoked or never existed."}}
StatuscodeWhen
400invalidA missing or wrong field, or a body that isn’t a JSON object.
401invalid-tokenNo token, a revoked one, or one whose app was deleted.
403forbiddenThe bot is turned off, the channel is archived, or the message isn’t the bot’s own.
404not-foundNo such address, or something the bot can’t see.
405methodThe address is right but the method isn’t.
413too-largeA body over 256 KB.
429rate-limitedMore than 120 requests in a minute. Wait for the next minute.
Something here wrong or missing?Tell us · Get help