---
title: "Ban user globally"
method: POST
path: "/v1/user-bans"
tags: ["user-ban"]
---

# Ban user globally

`POST /v1/user-bans`

## Request

- Base URL: `https://lpad-backend.stage.defi.ovh.gala.com`
- URL: `https://lpad-backend.stage.defi.ovh.gala.com/v1/user-bans`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/gala/apis/launchpad-backend-api/docs/v1/user-bans/post.ts> (a function with typed inputs; its response is checked against the schema)

Ban a user from all tokens globally (admin only)

## Response `201`

Global ban record created.

- object
  - `error` false, required: Successful response marker.
  - `message` string, required: Response message.
  - `status` number, required: HTTP status code.
  - `data` BanResponseDto, required
    - `bannedBy` string, required
    - `createdAt` string, date-time, required
    - `expiresAt` string, date-time, nullable, required
    - `id` number, required
    - `isPermanent` boolean, required
    - `reason` string, nullable, required
    - `tokenName` string, nullable, required
    - `user` BannedUserProfileResponseDto
      - `bio` string, nullable
      - `createdAt` string, date-time
      - `engagementBadge` union
        - 'SPARK' | 'GATHERING' | 'CROWD' | 'MOVEMENT'
        - unknown
      - `fullName` string, nullable, required
      - `launchBadge` union
        - 'ONE_HIT_WONDER' | 'TOKEN_CRAFTER' | 'CRYPTO_SAVVY' | 'CRYPTO_PRO' | 'MIDAS_TOUCH'
        - unknown
      - `profileImage` string, nullable, required
      - `successBadge` union
        - '250k' | '1M' | '10M+'
        - unknown
      - `volumeBadge` union
        - '1k' | '10k' | '100k' | '1M+'
        - unknown
    - `userAddress` string, required

## Other responses

- `400`: Bad request - userAddress invalid format or reason exceeds max length
- `401`: Unauthorized - missing or invalid admin API key
- `500`: Internal server error - failed to create ban in database
- `default`: Shared error envelope for global ban creation failures.

---

[API](https://skmtc.dev/gala/apis/launchpad-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/launchpad-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/launchpad-backend-api/revisions/74545971be2b?raw)
