---
title: "Whitelist a user"
method: POST
path: "/api/v1/users/whitelist"
tags: ["Users"]
---

# Whitelist a user

`POST /api/v1/users/whitelist`

Creates a key but with the key claimed

## Headers

- `Authentication` string, required

## Request body

- ModelsGenerateKeyRequest — Request body for generating a new key
  - `discord_id` string
  - `duration` integer, required
  - `note` string

## Response `201`

Generated key

- object

## Other responses

- `400` — Invalid request

---

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