---
title: "Invite Bot"
method: POST
path: "/bots/{target}/invite"
tags: ["Bots"]
---

# Invite Bot

`POST /bots/{target}/invite`

Invite a bot to a server or group by its id.`

## Path parameters

- `target` string, required

## Request body

- union — Where we are inviting a bot to
  - object — Invite to a server
    - `server` string, required — Server Id
  - object — Invite to a group
    - `group` string, required — Group Id

## Response `204`

Success

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/revolt/apis/revolt-api.md) · [All operations](https://skmtc.net/revolt/apis/revolt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/revolt/revolt-api/versions/a235e4654b18/schema)
