---
title: "POST /servers/{guild_id}/auth"
method: POST
path: "/servers/{guild_id}/auth"
tags: ["Auth"]
---

# POST /servers/{guild_id}/auth

`POST /servers/{guild_id}/auth`

## Path parameters

- `guild_id` string, required

## Request body

- object
  - `permissions` integer, required — The permission group to grant to the token. 1 for admin, 2 for basic.

## Response `200`

Returns the generated token

- object
  - `token` string — The Bearer token to use for authenticating requests.

## Changes

- **2026-07-13** `d5ca330720b5` — 1 info
  - endpoint added
- **2024-06-05** `a2d864f3a8db` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/quark-bot-discord/apis/quark-api/changes/servers/:guild_id/auth/post.md)

---

[API](https://skmtc.dev/quark-bot-discord/apis/quark-api.md) · [All operations](https://skmtc.dev/quark-bot-discord/apis/quark-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quark-bot-discord/quark-api/revisions/d5ca330720b5/schema)
