Build an app#manifests
Manifests and configuration tokens
Describe an app in one JSON file, then make, check, change and remove it from that file, in Slaiky or from a script.
A manifest is one JSON document that says what an app is: its name, its bot, the permissions it holds, the events it hears, its commands and shortcuts, and where Slaiky sends things. Keep it next to the code it describes. Every field is on Manifest.
{
"_metadata": { "major_version": 1 },
"display_information": { "name": "Deploy bot", "description": "Posts deploys", "background_color": "#2c2d30" },
"features": {
"bot_user": { "display_name": "deploybot", "always_online": true },
"app_home": { "home_tab_enabled": true, "messages_tab_enabled": true, "messages_tab_read_only_enabled": false },
"slash_commands": [{ "command": "/deploy", "description": "Deploy a branch", "usage_hint": "[branch]" }],
"shortcuts": [{ "name": "Create ticket", "type": "message", "callback_id": "create_ticket", "description": "From this message" }]
},
"oauth_config": { "scopes": { "bot": ["chat:write", "channels:history", "app_mentions:read", "commands"] } },
"settings": {
"event_subscriptions": { "bot_events": ["app_mention", "message.channels"] },
"interactivity": { "is_enabled": true },
"socket_mode_enabled": true
}
}| Part | What it says |
|---|---|
display_information | The name, descriptions and color people see. |
features.bot_user | The bot. Its @handle comes from display_name when the app is made. |
features.app_home | The Home and Messages tabs of the app’s DM. |
features.slash_commands, features.shortcuts | What people type or pick to reach the app. |
oauth_config.scopes.bot | The permissions the app holds: exactly these. |
oauth_config. | Where installs from other workspaces come back to (Add to Slaiky). |
settings | Where events and clicks go: a request_url, or socket_mode_enabled. |
In Slaiky
To make an app from a manifest, open Agents and integrations in the sidebar, then Apps & bots → From a manifest. Paste the JSON and press Create app. If its events URL doesn't answer the challenge, no app is made. Slaiky then shows the bot token once, as for any new app.
To change an app, open its page, then Manifest. It holds the app as it is now. Edit it and press Save manifest, or Download it to keep in your repository. Problems show under the editor, each with where it is. Agents have no manifest: only apps do.
The rules it is checked against
Slaiky checks each field first (its type and length, on Manifest), then how the fields fit together:
- Events need somewhere to go:
settings., orevent_subscriptions. request_url socket_mode_enabled. - Each event needs its permission:
app_mentionneedsapp_mentions:read,message.channelsneedschannels:history(Events lists them all).member_joined_channel,member_left_channeland thechannel_*events needchannels:read. - Interactivity turned on (
settings.) needs ainteractivity. is_enabled request_url, or Socket Mode. - Shortcuts need interactivity turned on.
- Slash commands need the
commandspermission. - Each command is listed once, and is not already another app’s or one of Slaiky’s own.
- An events
request_urlmust answer the challenge before it is saved (Events over HTTP). - Sent as text, the manifest is at most 64000 bytes.
When a check fails after the app was made (its URL didn’t answer, a command was taken), nothing is left behind: its @handle is free again.
When it says no
The answer is invalid_manifest, with one message per problem in fields:
{
"manifest": {
"display_information": { "name": "Deploy bot" },
"features": { "slash_commands": [{ "command": "/deploy" }] },
"oauth_config": { "scopes": { "bot": ["chat:write"] } },
"settings": { "event_subscriptions": { "bot_events": ["app_mention"] }, "socket_mode_enabled": true }
}
}{
"ok": false,
"error": {
"code": "invalid_manifest",
"message": "The manifest has problems",
"fields": {
"/settings/event_subscriptions/bot_events/0": "This event needs the app_mentions:read permission",
"/features/slash_commands": "Slash commands need the commands permission"
}
}
}Each key of fields is a JSON pointer into your manifest; / is the document itself (not JSON, or too big). The status is 422, or 409 when a command name is taken. The messages are in the language your request asks for (Errors and rate limits).
Configuration tokens
A bot token acts as the bot. A configuration token (slk-cfg-…) acts as you: it calls apps.manifest.* and manages the apps you manage (the ones you made, or any of them if you are an owner or admin) in the workspace where you made it. It is for scripts and CI.
Make one in Apps & bots → Configuration tokens → New token. If you haven’t signed in or confirmed your password in the last 10 minutes, Slaiky asks for it (or your 2FA code) first. Then it shows two values once: the Configuration token and its Refresh token (slk-cfr-…).
A configuration token works for 12 hours. Then trade its refresh token for a new pair with tooling.tokens.rotate, with no Authorization header. A refresh token works for 30 days from when the pair was made, even after its token expired: the list then says expired, can be refreshed. Each refresh token works once, and the old configuration token stops at once, so keep the new pair. Revoke stops a token right away.
curl -s https://app.slaiky.xyz/api/methods/tooling.tokens.rotate \
-H 'content-type: application/json' \
-d "{\"refreshToken\": \"$SLAIKY_CONFIG_REFRESH_TOKEN\"}"{ "ok": true, "token": "slk-cfg-…", "refreshToken": "slk-cfr-…", "expiresAt": "2026-11-11T00:00:00.000Z" }A token that is wrong, expired or already used answers 401 with invalid_auth.
From a script
The five apps.manifest.* methods take the configuration token in Authorization and a JSON body. manifest is the document as an object, or the same JSON as a string. They are listed with the Web API methods. Making, changing and removing apps is limited to 30 per 1 hour for each member, from a script and on app pages alike. This is the whole life of an app, from your manifest.json:
export SLAIKY_CONFIG_TOKEN=slk-cfg-…1. Check it
curl -s https://app.slaiky.xyz/api/methods/apps.manifest.validate \
-H "authorization: Bearer $SLAIKY_CONFIG_TOKEN" \
-H 'content-type: application/json' \
-d "{\"manifest\": $(cat manifest.json)}"{ "ok": true }2. Make the app
curl -s https://app.slaiky.xyz/api/methods/apps.manifest.create \
-H "authorization: Bearer $SLAIKY_CONFIG_TOKEN" \
-H 'content-type: application/json' \
-d "{\"manifest\": $(cat manifest.json)}"{
"ok": true,
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"app": { "id": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01", "name": "Deploy bot" },
"credentials": { "botToken": "slk-bot-…", "signingSecret": "…", "clientId": null, "clientSecret": null }
}The bot token comes only in this answer: store it now. The signing secret too, though Show secret on the app’s page shows it again. clientId and clientSecret stay empty until you let other workspaces install the app.
export SLAIKY_APP_ID=7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e013. Change it
Start from the app as it is now. apps.manifest.export answers { "ok": true, "manifest": … }, the same document the Manifest page shows; here jq keeps the manifest part:
curl -s https://app.slaiky.xyz/api/methods/apps.manifest.export \
-H "authorization: Bearer $SLAIKY_CONFIG_TOKEN" \
-H 'content-type: application/json' \
-d "{\"appId\": \"$SLAIKY_APP_ID\"}" | jq .manifest > manifest.jsonEdit it, then send it back whole:
curl -s https://app.slaiky.xyz/api/methods/apps.manifest.update \
-H "authorization: Bearer $SLAIKY_CONFIG_TOKEN" \
-H 'content-type: application/json' \
-d "{\"appId\": \"$SLAIKY_APP_ID\", \"manifest\": $(cat manifest.json)}"{ "ok": true, "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01", "permissionsUpdated": true }permissionsUpdated says whether the permissions changed. When they change, or Socket Mode is turned on or off, the bot’s open sockets close with 1012: connect again (Socket Mode). Installs in other workspaces follow at once.
4. Remove it
curl -s https://app.slaiky.xyz/api/methods/apps.manifest.delete \
-H "authorization: Bearer $SLAIKY_CONFIG_TOKEN" \
-H 'content-type: application/json' \
-d "{\"appId\": \"$SLAIKY_APP_ID\"}"{ "ok": true }Its bot leaves every conversation, its token, commands and webhooks stop, and its installs in other workspaces go with it.
Updated . Every method, scope, event and limit here is generated from the server’s own code.