---
title: "Bot Installation Route"
method: GET
path: "/api/v1/bot/installation"
tags: ["bot"]
---

# Bot Installation Route

`GET /api/v1/bot/installation`

Resolve the bot token for a Slack team (multi-workspace). The Socket Mode bot calls
this to authorize each incoming event by team_id, so it can post back with the right
workspace's token without ever touching the DB itself. Falls back to the single-
workspace env token for a team that was installed manually (no OAuth row yet).

## Query parameters

- `team_id` string, required

## Response `200`

Successful Response

- EnvelopeBotInstallationResult
  - `data` BotInstallationResult, required
    - `bot_token` string, required
    - `bot_user_id` string, nullable
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
