# Badge

The Badge API provides endpoints for managing game badges (ERC-721 tokens) in the system. These endpoints allow you to create, mint, transfer, burn, and query badge information.

## Available Endpoints

### Creation

* [Create Badge](/api-reference/assets/badge/create-badge.md) - Create a new badge
* [Create Badge by Signature](https://github.com/onPlyr/dev-documents-gitbook/blob/main/api-reference/assets/badge/create-badge-by-signature.md) - Create a badge using a signature

### Minting

* [Mint Badge](/api-reference/assets/badge/mint-badge.md) - Mint a badge to a recipient

### Management

* [Remove Badge](/api-reference/assets/badge/remove-badge.md) - Remove a badge
* [Remove Badge by Signature](https://github.com/onPlyr/dev-documents-gitbook/blob/main/api-reference/assets/badge/remove-badge-by-signature.md) - Remove a badge using a signature
* [Burn Badge](/api-reference/assets/badge/burn-badge.md) - Burn a badge
* [Transfer Badge](broken://pages/pYxr9CEGIhzEBvxqP2yx) - Transfer a badge to another address

### Queries

* [Get Badge Balance](broken://pages/8Hc6d8Nvb86DdHMefEkz) - Get badge balance for an address
* [List Badges](/api-reference/assets/badge/list-badges.md) - List badges owned by an address
* [Get Badge Info](/api-reference/assets/badge/get-badge-info.md) - Get detailed information about a badge
* [Get Badge Count](broken://pages/LdTgfJ35q1840mGbOBKb) - Get total count of badges
* [Get Badge by ID](broken://pages/Qei02JnCELYwB6TqKLB4) - Get badge information by ID
* [Get Badge Owner](broken://pages/64yGn03k7laIjCE0WItP) - Get the owner of a badge
* [Check Badge Burn Status](broken://pages/dmBuAwpoN7juj06SIwD5) - Check if a badge is burnt

## Authentication

All endpoints require HMAC authentication using the `hmacAuth('user')` middleware. Make sure to include the following headers in your requests:

* `apikey`: Your API key
* `signature`: HMAC signature
* `timestamp`: Current timestamp

## Chain ID

Most endpoints require a chain ID to be specified. This can be done either in the request body or through the `checkChainId` middleware.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.plyr.network/api-reference/assets/badge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
