---
title: "POST /api/oauth2/applications/allowlist/accept"
method: POST
path: "/api/oauth2/applications/allowlist/accept"
tags: ["api"]
---

# POST /api/oauth2/applications/allowlist/accept

`POST /api/oauth2/applications/allowlist/accept`

## Request

- Base URL: `https://api.rory.server.spacebar.chat`
- URL: `https://api.rory.server.spacebar.chat/api/oauth2/applications/allowlist/accept`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/spacebarchat/apis/spacebar-server/docs/api/oauth2/applications/allowlist/accept/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AllowlistAcceptSchema
  - `token` string, required

## Response `200`

- AllowlistedUser
  - `user` PartialUser, required
    - `id` string, required: A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
    - `username` string, required
    - `discriminator` string, required
    - `global_name` string, nullable
    - `avatar` string, nullable, required
    - `avatar_decoration_data` AvatarDecorationData
      - `asset` string, required
      - `sku_id` string, required: A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
      - `expires_at` string, nullable, required
    - `collectibles` Collectibles
      - `nameplate` NameplateData, required
        - `asset` string, required
        - `sku_id` string, required: A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
        - `label` string, required
        - `palette` string, required
        - `expires_at` integer, nullable, required
    - `display_name_styles` DisplayNameStyle
      - `font_id` integer, required
      - `effect_id` integer, required
      - `colors` integer[], required
    - `primary_guild` PrimaryGuild
      - `identity_enabled` boolean, nullable, required
      - `identity_guild_id` string, nullable, required
      - `tag` string, nullable, required
      - `badge` string, nullable, required
    - `bot` boolean
    - `system` boolean
    - `banner` string, nullable
    - `accent_color` integer, nullable
    - `public_flags` integer
  - `state` 1 | 2, required

## Changes

- **2026-11-02** `7682d34617ef`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/spacebarchat/apis/spacebar-server/changes/api/oauth2/applications/allowlist/accept/post.md)

---

[API](https://skmtc.dev/spacebarchat/apis/spacebar-server.md) - [All operations](https://skmtc.dev/spacebarchat/apis/spacebar-server/llms.txt) - [OpenAPI document](https://skmtc.dev/spacebarchat/apis/spacebar-server/revisions/9a56bb379f62?raw)
