---
title: "Create Invite"
method: POST
path: "/channels/{target}/invites"
tags: ["Channel Invites"]
---

# Create Invite

`POST /channels/{target}/invites`

Creates an invite to this channel.

Channel must be a `TextChannel`.

## Path parameters

- `target` string, required

## Headers

- `X-Audit-Log-Reason` string

## Response `200`

- union — Invite
  - object — Invite to a specific server channel
    - `type` 'Server', required
    - `_id` string, required — Invite code
    - `server` string, required — Id of the server this invite points to
    - `creator` string, required — Id of user who created this invite
    - `channel` string, required — Id of the server channel this invite points to
  - object — Invite to a group channel
    - `type` 'Group', required
    - `_id` string, required — Invite code
    - `creator` string, required — Id of user who created this invite
    - `channel` string, required — Id of the group channel this invite points to

## 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/revisions/fee80de86d4d/schema)
