# Web API methods

> All 61 methods, what each one does and what it needs.

Source: https://slaiky.xyz/docs/reference/methods

`POST https://app.slaiky.xyz/api/methods/<method>` with `Authorization: Bearer slk-bot-…` and a JSON body. Every answer is `{ "ok": true, … }` or `{ "ok": false, "error": { "code", "message" } }` ([guide](/docs/web-api)). The same catalog is the server’s OpenAPI: `https://app.slaiky.xyz/api/openapi.json`.

## Tokens

| Method | What it does | Needs |
| --- | --- | --- |
| [`auth.test`](/docs/reference/methods/auth.test) | The bot user behind the token (checks that the token works), its app and the permissions it holds. | the bot token |

## Socket Mode

| Method | What it does | Needs |
| --- | --- | --- |
| [`apps.connections.open`](/docs/reference/methods/apps.connections.open) | A one-time WebSocket URL for Socket Mode (valid a few seconds). | the bot token |

## Messages

| Method | What it does | Needs |
| --- | --- | --- |
| [`chat.postMessage`](/docs/reference/methods/chat.postMessage) | Post a message (or a thread reply) as the bot, where it is a member. | `chat:write` |
| [`chat.update`](/docs/reference/methods/chat.update) | Edit a message the bot posted. | `chat:write` |
| [`chat.delete`](/docs/reference/methods/chat.delete) | Delete a message the bot posted (it disappears for everyone). | `chat:write` |
| [`chat.postEphemeral`](/docs/reference/methods/chat.postEphemeral) | Show a message to one person only (not stored in history). | `chat:write` |
| [`chat.getPermalink`](/docs/reference/methods/chat.getPermalink) | The link to a message, for people of the workspace. | the conversation's `:history` |

## Reactions

| Method | What it does | Needs |
| --- | --- | --- |
| [`reactions.add`](/docs/reference/methods/reactions.add) | React to a message. | `reactions:write` |
| [`reactions.remove`](/docs/reference/methods/reactions.remove) | Remove the bot’s reaction. | `reactions:write` |
| [`reactions.get`](/docs/reference/methods/reactions.get) | The reactions on a message. | `reactions:read` |

## Pins

| Method | What it does | Needs |
| --- | --- | --- |
| [`pins.add`](/docs/reference/methods/pins.add) | Pin a message in its conversation. | `pins:write` |
| [`pins.remove`](/docs/reference/methods/pins.remove) | Unpin a message. | `pins:write` |
| [`pins.list`](/docs/reference/methods/pins.list) | The pinned messages of a conversation. | `pins:read` |

## tabs

| Method | What it does | Needs |
| --- | --- | --- |
| [`tabs.list`](/docs/reference/methods/tabs.list) | A conversation’s tabs (the row under its header): Messages first, then its canvas, files, pins, workflows and what people added (canvases, boards, lists, saved views, workflows, links, folders). | `tabs:read` |
| [`tabs.add`](/docs/reference/methods/tabs.add) | Add a tab to a conversation the bot is in: an item by id (canvas, board, list, view, workflow; file inside a folder), a link or a folder. | `tabs:write` |
| [`tabs.edit`](/docs/reference/methods/tabs.edit) | Rename, hide or show, move (after/before a tab, into or out of a folder) a tab, or change a link’s address. | `tabs:write` |
| [`tabs.remove`](/docs/reference/methods/tabs.remove) | Remove a tab (a folder takes what’s in it along). | `tabs:write` |

## calls

| Method | What it does | Needs |
| --- | --- | --- |
| [`calls.list`](/docs/reference/methods/calls.list) | Recent calls of a conversation the bot is in, newest first: when each started and ended, and who was in it for how long. | `calls:read` |
| [`calls.info`](/docs/reference/methods/calls.info) | One call in a conversation the bot is in: when it started and ended, and who was in it for how long. | `calls:read` |

## Conversations

| Method | What it does | Needs |
| --- | --- | --- |
| [`conversations.list`](/docs/reference/methods/conversations.list) | Conversations the bot is in, and the public channels it could join (with channels:read). | the bot token |
| [`conversations.info`](/docs/reference/methods/conversations.info) | One conversation: name, topic, purpose, kind, people count. | the conversation's `:read` |
| [`conversations.members`](/docs/reference/methods/conversations.members) | Who is in a conversation: people, and the apps apart. | the conversation's `:read` |
| [`conversations.history`](/docs/reference/methods/conversations.history) | Messages of a conversation, newest page first (thread replies excluded unless also sent to the channel). | the conversation's `:history` |
| [`conversations.replies`](/docs/reference/methods/conversations.replies) | A thread: the root message and its replies. | the conversation's `:history` |
| [`conversations.join`](/docs/reference/methods/conversations.join) | Join a public channel. | `channels:join` |
| [`conversations.leave`](/docs/reference/methods/conversations.leave) | Leave a channel (channels:join for a public one, groups:write for a private one). | `channels:join` or `groups:write` |
| [`conversations.open`](/docs/reference/methods/conversations.open) | Open (or find) a DM or a group DM with up to 8 members. | `im:write` or `mpim:write` |
| [`conversations.create`](/docs/reference/methods/conversations.create) | Make a channel (public with channels:manage, private with groups:write); the bot is in it. | `channels:manage` or `groups:write` |
| [`conversations.invite`](/docs/reference/methods/conversations.invite) | Add people to a channel the bot is in. | the conversation's `channels:manage` / `groups:write` |
| [`conversations.setTopic`](/docs/reference/methods/conversations.setTopic) | Set a channel’s topic. | the conversation's `channels:manage` / `groups:write` |
| [`conversations.setPurpose`](/docs/reference/methods/conversations.setPurpose) | Set a channel’s purpose. | the conversation's `channels:manage` / `groups:write` |
| [`conversations.rename`](/docs/reference/methods/conversations.rename) | Rename a channel the bot made. | the conversation's `channels:manage` / `groups:write` |
| [`conversations.archive`](/docs/reference/methods/conversations.archive) | Archive a channel the bot made. | the conversation's `channels:manage` / `groups:write` |
| [`conversations.unarchive`](/docs/reference/methods/conversations.unarchive) | Bring back a channel the bot archived. | the conversation's `channels:manage` / `groups:write` |

## Files

| Method | What it does | Needs |
| --- | --- | --- |
| [`files.getUploadURL`](/docs/reference/methods/files.getUploadURL) | Where to send a file’s bytes: POST them (raw body) to `uploadUrl` within a few minutes, then call files.completeUpload. | `files:write` |
| [`files.completeUpload`](/docs/reference/methods/files.completeUpload) | Finish uploads and share the files in a conversation, with an optional message. | `files:write` |
| [`files.info`](/docs/reference/methods/files.info) | One file the bot can see. | `files:read` |
| [`files.list`](/docs/reference/methods/files.list) | Files shared in a conversation the bot is in (newest first), or the bot’s own uploads. | `files:read` |

## People

| Method | What it does | Needs |
| --- | --- | --- |
| [`users.list`](/docs/reference/methods/users.list) | Every member of the workspace (people and bots). | `users:read` |
| [`users.info`](/docs/reference/methods/users.info) | One member, by id or @handle. | `users:read` |
| [`users.lookupByEmail`](/docs/reference/methods/users.lookupByEmail) | The member with this e-mail address, if any (the address itself is never listed). | `users:read.email` |

## Workspace

| Method | What it does | Needs |
| --- | --- | --- |
| [`team.info`](/docs/reference/methods/team.info) | The workspace: name, address, icon. | `team:read` |

## lists

| Method | What it does | Needs |
| --- | --- | --- |
| [`lists.list`](/docs/reference/methods/lists.list) | Lists the bot can open (newest first): shared with it, with a channel it is in, or with everyone. | `lists:read` |
| [`lists.info`](/docs/reference/methods/lists.info) | One list with its fields, views and every item (values by field key). | `lists:read` |
| [`lists.create`](/docs/reference/methods/lists.create) | Make a list owned by the bot: given fields, views and items, or the default ones (Status, Assignee, Due date). | `lists:write` |
| [`lists.items.add`](/docs/reference/methods/lists.items.add) | Add items to a list the bot can edit: a title and values by field key (select and status by option id, people by member id, dates YYYY-MM-DD). | `lists:write` |
| [`lists.items.update`](/docs/reference/methods/lists.items.update) | Change items: only the values that change (null clears one), a title, archived, or a move (parentId, after, before). | `lists:write` |
| [`lists.items.remove`](/docs/reference/methods/lists.items.remove) | Delete items for good (their subtasks too). | `lists:write` |
| [`lists.comments.add`](/docs/reference/methods/lists.comments.add) | Comment on an item (Markdown; @handles of people who can open the list notify them). | `lists:write` |

## Commands

| Method | What it does | Needs |
| --- | --- | --- |
| [`commands.respond`](/docs/reference/methods/commands.respond) | Answer a slash command or a click with its response token (the responseUrl does the same without a token). | the bot token |

## Modals and Home

| Method | What it does | Needs |
| --- | --- | --- |
| [`views.open`](/docs/reference/methods/views.open) | Open a modal for the person who just acted (the triggerId of their command, click or shortcut). | the bot token |
| [`views.push`](/docs/reference/methods/views.push) | Put a modal on top of the one the person has open (up to three). | the bot token |
| [`views.update`](/docs/reference/methods/views.update) | Change an open modal (or a Home). | the bot token |
| [`views.publish`](/docs/reference/methods/views.publish) | Draw a person’s Home tab of this app (the app has Home turned on). | the bot token |

## Manifests (configuration token)

| Method | What it does | Needs |
| --- | --- | --- |
| [`apps.manifest.validate`](/docs/reference/methods/apps.manifest.validate) | Check a manifest. | a configuration token |
| [`apps.manifest.create`](/docs/reference/methods/apps.manifest.create) | Make an app from a manifest, as the token’s member. | a configuration token |
| [`apps.manifest.update`](/docs/reference/methods/apps.manifest.update) | Make an app what a manifest says. | a configuration token |
| [`apps.manifest.export`](/docs/reference/methods/apps.manifest.export) | An app as a manifest. | a configuration token |
| [`apps.manifest.delete`](/docs/reference/methods/apps.manifest.delete) | Remove an app (its bot leaves, its token stops). | a configuration token |

## Configuration tokens

| Method | What it does | Needs |
| --- | --- | --- |
| [`tooling.tokens.rotate`](/docs/reference/methods/tooling.tokens.rotate) | Trade a configuration refresh token (slk-cfr-…, once) for a new token pair. | no token |

## Add to Slaiky

| Method | What it does | Needs |
| --- | --- | --- |
| [`oauth.v2.access`](/docs/reference/methods/oauth.v2.access) | Add to Slaiky: trade the install code for that workspace’s bot token (client id and secret). | no token |
