---
title: "Apply Label to Domain"
method: POST
path: "/v0/platform/labels/domains/{domain}"
tags: ["Label Management"]
---

# Apply Label to Domain

`POST /v0/platform/labels/domains/{domain}`

## Request

- Base URL: `https://api.blockaid.io`
- URL: `https://api.blockaid.io/v0/platform/labels/domains/{domain}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-CLIENT-ID`
- TypeScript: <https://skmtc.dev/blockaid-official/apis/blockaid-api/docs/v0/platform/labels/domains/:domain/post.ts> (a function with typed inputs; its response is checked against the schema)

Apply a label to a domain. Domain labels are not chain-scoped — a domain label always applies globally, regardless of chain. Labels are unique per (identifier, label); re-applying the same label returns 409.

## Path parameters

- `domain` string, required

## Request body

- DomainLabelRequest
  - `label` string, required: The label to apply, by name (e.g. "Phishing"). Matched case-insensitively against the label catalog (GET /v0/platform/labels/types). Labels are unique per (identifier, label) — re-applying returns 409; an identifier may carry multiple distinct labels.
  - `tags` string[]: Optional tags to group labels by.
  - `comment` string, nullable: Optional free-text note explaining the label.

## Response `201`

Label applied

- LabelResponse
  - `id` string, uuid, required: Unique ID of this label assignment.
  - `identifier` string, required: The labeled address, domain or token.
  - `identifier_type` 'address' | 'domain' | 'token', required: The type of the labeled identifier.
  - `chain` string, nullable, required: The chain this label applies to. `null` means the label applies to ALL chains (sticky); `chain` is always `null` for domains, which are not chain-scoped.
  - `label` string, required: The applied label name.
  - `result_type` 'Malicious' | 'Benign', required: Whether this label marks the entity as Malicious (block) or Benign (allow). Derived from the label.
  - `tags` string[], required: Tags grouping this label.
  - `comment` string, nullable: Free-text note explaining the label, if any.
  - `created_by` string, required: Who created the assignment (e.g. "API" or a user identifier).
  - `updated_by` string, required: Who last updated the assignment.
  - `created_at` string, date-time, required: Creation timestamp (ISO 8601, UTC).
  - `updated_at` string, date-time, required: Last-update timestamp (ISO 8601, UTC).

## Other responses

- `409`: This label is already applied to this domain
- `422`: Validation Error
- `502`: The label classifier service is unavailable. The label was not changed. Retry the request.

## Changes

> 120 revisions in range; 1 not diffed.

- **2026-10-29** `930364a79482`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/blockaid-official/apis/blockaid-api/changes/v0/platform/labels/domains/:domain/post.md)

---

[API](https://skmtc.dev/blockaid-official/apis/blockaid-api.md) - [All operations](https://skmtc.dev/blockaid-official/apis/blockaid-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockaid-official/apis/blockaid-api/revisions/104550c9d3f1?raw)
