---
title: "Grant Discord Quota"
method: POST
path: "/api/user/discord_grant"
tags: ["AdminUser"]
---

# Grant Discord Quota

`POST /api/user/discord_grant`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/user/discord_grant`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Request body

- GrantDiscordQuotaRequest: GrantDiscordQuotaRequest schema
  - `check_ip_unique` boolean
  - `discord_id` string, required
  - `dry_run` boolean
  - `expected_user_id` integer
  - `granted_by` string
  - `quota` integer, required
  - `reason` string
  - `source` string

## Response `200`

OK

- ResponseDtoGrantDiscordQuotaData: Response_dto.GrantDiscordQuotaData schema
  - `data` GrantDiscordQuotaData, required
    - `ip_duplicate` boolean
    - `linked` boolean, required
    - `user_id` integer, required
    - `user_mismatch` boolean
  - `message` string, required
  - `success` boolean, required

## Changes

- **2026-10-20** `6b8b61ff1912`: 4 info
  - added the new optional request property `dry_run`
  - added the new optional request property `expected_user_id`
  - added the optional property `data/user_mismatch` to the response with the `200` status (media type: application/json)
  - added the optional property `data/user_mismatch` to the response with the `200` status (media type: application/xml)

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/api/user/discord_grant/post.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
