---
title: "Bot Link Route"
method: POST
path: "/api/v1/bot/link"
tags: ["bot"]
---

# Bot Link Route

`POST /api/v1/bot/link`

## Request body

- BotLinkRequest
  - `provider` string, required
  - `code` string, required
  - `platform_user_id` string, required
  - `platform_username` string, nullable
  - `guild_id` string, nullable

## Response `200`

Successful Response

- EnvelopeBotLinkResult
  - `data` BotLinkResult, required
    - `linked` boolean, required
    - `workspace_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)
