---
title: "Get badge by id"
method: GET
path: "/api/v5/admin/badges/get-one/{badge_id}"
tags: ["Admin Badges"]
---

# Get badge by id

`GET /api/v5/admin/badges/get-one/{badge_id}`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/admin/badges/get-one/{badge_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/admin/badges/get-one/:badge_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get badge by id

## Path parameters

- `badge_id` integer, required

## Response `200`

Successful Response

- BadgeInResponse: Badge response model
  - `badge` Badge, required: Badge model
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `title` string, required
    - `key` string, required
    - `description` string
    - `image` string
    - `imageId` integer
    - `voltsAction` VoltsAction: VoltsAction Model
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `deletedAt` string, date-time
      - `id` integer
      - `key` string, required
      - `description` string
      - `volts` integer
    - `achievedAt` string, date-time

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
