---
title: "Preview badge"
method: POST
path: "/api/v1/badges/preview"
tags: ["badges"]
---

# Preview badge

`POST /api/v1/badges/preview`

## Request

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

Preview badge status before creation.

## Headers

- `Authorization` string

## Request body

- BadgePreviewRequest: Request schema for previewing badge status before creation.
  - `asset_id` string, uuid, required: Asset public ID (UUID) to scope the preview
  - `tag_filters` string[], required: Tag names to filter tables
  - `schema_drift_enabled` boolean
  - `freshness_enabled` boolean
  - `include_upstream` boolean

## Response `200`

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)
