---
title: "Create badge"
method: POST
path: "/api/v1/sdk/badges"
tags: ["public-api", "public-badges"]
---

# Create badge

`POST /api/v1/sdk/badges`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/badges`
- Auth: none declared

Create a new report badge.

**SDK Usage:**
```python
from anomalyarmor import Client

client = Client()
badge = client.badges.create(
    asset="postgresql.analytics",
    label="Data Quality",
    tag_filters=["financial_reporting"]
)
print(f"Badge URL: {badge.badge_url}")
```

**CLI Usage:**
```bash
aa badges create "Data Quality" --asset postgresql.analytics --tags "financial_reporting"
```

## Headers

- `Authorization` string

## Request body

- CreateBadgeRequest: Request to create a report badge.
  - `asset_id` string, required: Asset identifier (public UUID or qualified name)
  - `label` string: Badge label text
  - `tag_filters` string[]: Tag names to filter monitored objects
  - `schema_drift_enabled` boolean: Enable schema drift monitoring
  - `freshness_enabled` boolean: Enable freshness monitoring
  - `include_upstream` boolean: Include upstream dependencies

## Response `201`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
