---
title: "Award badge"
method: POST
path: "/badges/{badgeId}/awards"
tags: ["badges"]
---

# Award badge

`POST /badges/{badgeId}/awards`

## Request

- Base URL: `https://api.usecrouton.com`
- URL: `https://api.usecrouton.com/badges/{badgeId}/awards`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/usecrouton/apis/crouton-api/docs/badges/:badgeId/awards/post.ts> (a function with typed inputs; its response is checked against the schema)

Awards a badge to a user. The API key's associated user must be a badge administrator or one of the badge managers.

## Request body

- object
  - `awardedToUserId` string, uuid, required

## Response `200`

The created badge award.

## Other responses

- `400`: 400
- `401`: Missing, invalid, revoked, or expired API key.
- `403`: API key lacks the required resource or access level.
- `404`: Badge not found
- `422`: 422

---

[API](https://skmtc.dev/usecrouton/apis/crouton-api.md) - [All operations](https://skmtc.dev/usecrouton/apis/crouton-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usecrouton/apis/crouton-api/revisions/809cbf38e25a?raw)
