Build an app#apps
Apps, bots and tokens
What an app is, who makes and manages one, its tokens and secret, its permissions, and where its bot may act.
An app is how your code takes part in a workspace. It speaks through its own bot, holds a set of permissions, and proves who it is with a token.
What an app is
An app lives in one workspace. It has a name, a description, a color, settings, permissions and a bot user: the member profile everything it does shows up under (@deploybot).
A bot is not a person of the workspace. It is never a seat, and channels count their people without it: conversations.members answers members and apps apart.
Installing the app in another workspace makes a copy there, with its own bot and token (Other workspaces).
Who makes and manages it
Any member can make an app; guests can’t. In the sidebar, open Agents and integrations → Apps & bots, then Create app, or From a manifest to paste one JSON document (Manifests).
The person who made it, and the workspace’s owners and admins, manage it: its settings, tokens and secret, and removing it.
Tokens and secret
| What it does | Where you get it | |
|---|---|---|
Bot token, slk-bot-… | Acts as the bot, with the app’s permissions, where the bot is a member. Only one works at a time. | Shown once, when the app is made. On the app’s page, Token and secret → New token makes another; the old one stops at once, and Socket Mode connections made with it close. |
Configuration token, slk-cfg-… | Acts as you, to make and change the apps you manage with apps.manifest.*. Works for 12 hours. | Apps & bots → Configuration tokens → New token. It comes with a refresh token (slk-cfr-…) that tooling.tokens.rotate trades, once and within 30 days, for a new pair. |
| Signing secret | Signs everything Slaiky sends the app over HTTP, so your server can check it came from Slaiky (Events over HTTP). | Token and secret → Show secret. New secret replaces it; the old one stops verifying at once. |
New token, Show secret, New secret and a new configuration token ask for your password or a two-factor code first, if you haven’t entered one in the last 10 minutes.
Permissions
An app holds permissions (scopes): 36 of them, each in plain words on Scopes. An app made with Create app starts with what a bot needs to read and answer where it is: post (chat:write), read its conversations (channels:history and the others), hear mentions (app_mentions:read), react, share files and canvases, run workflows and add slash commands. One made from a manifest holds what its manifest names.
Change them on the app’s page under Permissions, or in the manifest’s oauth_config.scopes.bot. A call without the permission it needs is refused, and the answer names the one that would do:
{
"ok": false,
"error": { "code": "missing_scope", "message": "This app needs the pins:write permission for that", "needed": "pins:write" }
}Events follow the same rule: Slaiky sends one only when the app holds its scope. Changing permissions closes the app’s Socket Mode connections, so it reconnects with the new ones (when the socket closes).
Where the bot can act
In the conversations it is a member of. A public channel it can also read and react in without joining, and join on its own. To the bot, a private channel or a DM it isn’t in doesn’t exist: calls about it answer not_found.
- A channel: someone adds it (
/invite @deploybot). For a public channel the app can do it alone: withchannels:join(new apps have it) it joins on its first post or withconversations.join; without it,chat:write.publiclets it post there. - A direct message: it starts one with
conversations.open(im:write), or answers the DMs people send it. - Reading needs the history permission of the conversation’s kind:
channels:history(public channels),groups:history(private channels),im:history(DMs),mpim:history(group DMs).
A bot edits and deletes only its own messages, and renames or archives only the channels it made.
Agents have apps too
Each agent in Agents and integrations → Agents speaks through an app made with it. That app follows the agent’s rules:
- It holds every permission, has no manifest, and can’t be installed in other workspaces.
- A workspace’s agent is managed by its owners and admins. A personal agent belongs to the person who made it.
- A personal agent is never wired outward: no bot token, request URLs, Socket Mode, slash commands, incoming webhooks or other workspaces. It talks to its owner only.
The apps you make in Apps & bots are the ones you connect to your code.
Where to next
- Make one and run it: Your first bot.
- Call the Web API with its token: Calling the Web API.
- Let an AI client act as the bot: Connect your AI.
Updated . Every method, scope, event and limit here is generated from the server’s own code.