---
title: "Challenge page branding — API v1 and MCP | Nodea documentation"
description: "Reference of the anti-DDoS challenge page branding module: customer logo and icon per account, server and domain, API v1 endpoints, file limits, SVG sanitisation, delivery states, error codes and MCP tools."
url: "https://nodea.io/en/api-docs/branding"
lang: "en"
updated: "2026-11-18"
---

# Challenge page branding — API v1 and MCP | Nodea documentation

> Reference of the anti-DDoS challenge page branding — logo and icon per account, server and domain; API v1, limits, error codes and MCP tools.

The **Challenge page branding** module replaces the Nodea logo on the anti-DDoS challenge page with your own logo and browser tab icon. The page keeps its white theme and the "nodea.io · antyDDoS" footer is always shown. You set the brand on three levels: **account**, **server** and **server domain**. Precedence: `domain > server > account > default look`. In the panel the feature is called **Antyddos personalization**: for a server it lives in the "nodeaD" tab of the instance, for the account in the Services menu, and in an antyddos fleet in its "Antyddos personalization" tab. The API and MCP names (`branding.*`) stay unchanged. This document covers REST API v1 (`/api/v1/branding`, `/api/v1/servers/{server}/branding`) and the module's MCP tools.

## Authentication, scopes and flag

Passport personal access token in the `Authorization: Bearer <token>` header.

- `infra:read` — read the account, server and domain brands.
- `infra:write` — save and remove a brand.

The module requires the `features:servers` and `features:challenge-branding` flags; a disabled flag answers `403` and the MCP tools disappear from the list. Saving runs at once. **Removing a brand needs a human approval**: the answer is `202` with `code: approval_required` and `data.approval_request` ([Approvals](https://nodea.io/en/api-docs/approvals), type `branding.delete`) — after the approval in the panel Nodea runs the same request. A removed brand disappears from the servers and an unused image is deleted after 7 days.

## Permissions

- **Account** — the token's current account (`X-Account-Id`): reading needs the `products` permission, saving and removing need `products` and `manageproducts` (`403 account_permission_denied`).
- **Server and domains** — reading: a member of the VM's account with `products`, the owner of a server outside an account, or a member of the account of the dedicated server the server hosts. A shared monitoring view (a "foreign" share) does not see the brand. Saving and removing: managing the server (VM — `manageproducts`) or the dedicated server. A VM server of another account than the token's current account — saving answers `403`; an invisible server — `404`. A Nodea hosting server (operator host) is read-only; saving answers `403` with `code: operator_host`.
- The account brand reaches the account's servers (VMs and dedicated servers) that have no own server brand. A server outside the account does not inherit the account brand.
- Moving a server to another account (assignment, service transfer) removes the server and domain brands set by the previous customer; the server inherits the new account's brand.

## Files and limits

| Field | Formats | Limit |
| --- | --- | --- |
| `logo` | SVG, PNG, WebP (not animated) | SVG ≤ 32 kB after sanitising; PNG/WebP ≤ 64 kB and ≤ 512 px in each dimension. |
| `favicon` | PNG, WebP, ICO (also ICO with a PNG entry) | ≤ 16 kB, each ICO entry ≤ 512 px; always stored as a PNG fitted into 64 × 64 px. |
| `alt` | text | required, ≤ 120 characters after normalising (no control characters, NFC); always shown as plain text. |

The file type is detected from the content, not the name. SVG is cleaned: scripts, event handlers (`on*`), the `style` attribute, `<style>`, `<foreignObject>`, embedded images, links, animations, `<title>`, `<desc>`, comments and `href` or `url()` pointing outside the file are removed. Simple class rules from `<style>` become attributes so the colours stay. `url('#id')` and `url( #id )` are normalised to `url(#id)`. `<use>` stays at most 64 times and only when it points to an existing element that contains no `<use>` and is not its ancestor. `\` and `javascript:` in `<text>` content are neutralised. A file with `DOCTYPE`, entities or processing instructions is rejected. Raster images are re-encoded without metadata. Without an uploaded icon the panel generates one from the logo (PNG, WebP and SVG) as a 64 × 64 px PNG — `favicon_generated: true`.

## API v1 — endpoints

| Method | Path | Scope | Description |
| --- | --- | --- | --- |
| GET | /api/v1/branding | infra:read | The current account brand: `{account_id, brand, affected_servers, delivery_summary}`. |
| POST/PUT | /api/v1/branding | infra:write | Save the account brand. Returns `{data: {brand}, warnings[]}`. |
| DELETE | /api/v1/branding | infra:write | **Needs a human approval** (`202 approval_required`). After the approval: removes the account brand, `204`. No brand — `404`. |
| GET | /api/v1/servers/{server}/branding | infra:read | The server's own brand, the effective brand with its source, the delivery state to the agent and the domain brands. |
| POST/PUT | /api/v1/servers/{server}/branding | infra:write | Save the server brand. Returns `{data: {brand}, warnings[]}`. |
| DELETE | /api/v1/servers/{server}/branding | infra:write | **Needs a human approval** (`202 approval_required`). After the approval: removes the server brand (the server falls back to the account brand), `204`. No brand — `404`. |
| GET | /api/v1/servers/{server}/branding/domains/{host} | infra:read | One domain brand of the server with its delivery state (the `domains[]` item shape + `server_id`). No brand — `404`. |
| POST/PUT | /api/v1/servers/{server}/branding/domains/{host} | infra:write | Save the brand of one server domain (up to 200 domains per server). Returns `{data: {brand}, warnings[]}`. |
| DELETE | /api/v1/servers/{server}/branding/domains/{host} | infra:write | **Needs a human approval** (`202 approval_required`). After the approval: removes the domain brand, `204`. No brand — `404`. |

### Save body

- `multipart/form-data` (POST): `logo` (file), `favicon` (file, optional), `remove_favicon` (bool), `alt`.
- JSON (POST or PUT): `logo_base64`, `favicon_base64` (base64, a `data:…;base64,` prefix is allowed), `remove_favicon`, `alt`.
- Omitted logo = the current one stays (required on the first save). Omitted icon = the uploaded one stays or the panel generates one from the logo; `remove_favicon: true` removes the uploaded icon.
- `{host}` is also accepted with a port and in Unicode and is normalised: lower case, punycode, no `www.`, port or trailing dot. A path, scheme or invalid name — `422 invalid_host`.

### `GET /api/v1/branding` response

- `account_id` — account id; `brand` — a `brand` object or `null`.
- `affected_servers` — the **number** of the account's servers that inherit the account brand (no own server brand).
- `delivery_summary` — numbers of inheriting servers by state: `applied`, `pending` (waiting to be sent, or sent and waiting for the confirmation), `rejected`, `unsupported` (agent without brand support), `no_agent` (server without a nodeaD agent). The sum equals `affected_servers` when the account has a brand; without a brand all values are `0`.

### `GET /api/v1/servers/{server}/branding` response

- `server_id`; `own` — the server's own brand (`brand` or `null`).
- `effective` — `{source, brand}`: the brand visitors of domains without their own brand see; `source`: `server`, `account` or `default` (then `brand: null`).
- `delivery` — delivery state of `brand/serwer` to the agent (a `delivery` object).
- `domains[]` — domain brands sorted by name: `{host, hash, alt, logo, favicon, favicon_generated, updated_at, delivery}`.

### `brand` object

`uuid`, `scope` (`account|server|domain`), `host` (domain only), `logo` and `favicon` (`{sha256, mime, bytes, width, height}` or `null`), `favicon_generated` (icon generated by the panel from the logo), `alt`, `hash` (brand version, 64 hex characters), `updated_at` (ISO 8601).

### `delivery` object

- `state`: `applied` — active on the server; `sent` — sent, waiting for the confirmation; `pending` — waiting to be sent; `rejected` — rejected by the server; `unsupported` — the nodeaD agent does not support branding (update nodeaD); `no_agent` — server without an agent; `not_applicable` — default look, nothing to deliver.
- `reason` — state description to display (in the request language) or `null`.
- `reason_code` — stable code: `no_agent`, `unsupported` or a rejection code from the server: `nieznany_typ`, `walidacja`, `za_duzy`, `format`, `poza_zakresem`, `rev_z_przyszlosci`, `nieprawidlowy_payload`, `pobierz_nieobslugiwane`, `konflikt`, `blad_wewnetrzny`; an unknown agent code — `inny`. `null` for the other states.
- `reason_detail` — detail from the agent (free text, not translated) or `null`.
- `delivered_at` — when the server confirmed it (ISO 8601) or `null`.

Changes reach only the servers they affect, usually within seconds. Every hour the panel compares the desired state with the servers and retries pending deliveries.

### Save warnings (`warnings[]`)

- Server and domain brand: `{code, message}`, `code`: `no_agent` or `agent_unsupported`.
- Account brand: `{code, count, message}` — `count` inheriting servers with `agent_unsupported` or `no_agent`.
- The brand is saved and reaches the server once it has an agent with brand support.

### Error codes

| Status | `code` | When |
| --- | --- | --- |
| 422 | `image_too_large` | The file exceeds the limit (after sanitising or re-encoding). |
| 422 | `image_dimensions` | Raster image or ICO entry larger than 512 px. |
| 422 | `image_unsupported` | Format not on the list or animated. |
| 422 | `svg_rejected` | SVG with `DOCTYPE`, entities, without dimensions, too large or too deep. |
| 422 | `invalid_base64` | Invalid base64 in `logo_base64` or `favicon_base64`. |
| 422 | `invalid_host` | Invalid domain name. |
| 422 | `logo_required` | First save without a logo. |
| 422 | `too_many_domains` | The server already has 200 domain brands. |
| 202 | `approval_required` | Removing the brand waits for a human approval. |
| 403 | `operator_host`, `account_permission_denied` | Nodea hosting server or a missing account permission. |
| 404 | — | Server not visible to the token or no brand at this level (account, server, domain). |
| 429 | — | More than 30 saves and removals per minute. |

A 422 error has the validation shape: `{message, code, errors: {field: [message]}}`.

### Example

**REST API · curl**

```bash
curl -X POST https://app.nodea.io/api/v1/servers/SERVER_ID/branding \
  -H "Authorization: Bearer $TOKEN" -H "Accept: application/json" \
  -F logo=@logo.svg -F alt="Kowalski Shop"
```

## MCP tools

| Tool | Scope | Parameters | Result |
| --- | --- | --- | --- |
| branding-get | infra:read | `scope` (`account\|server\|domain`), `server`?, `host`? | A `scope` field and the API data: `account` — as `GET /api/v1/branding`; `server` — as `GET /api/v1/servers/{server}/branding`; `domain` — `{server_id, brand}`, where `brand` has the `domains[]` item shape or is `null`. |
| branding-set | infra:write | `scope`, `server`?, `host`?, `logo_base64`?, `favicon_base64`?, `remove_favicon`?, `alt` | `{saved, brand, warnings}`; an error as the text `<code>: <message>` with the API codes (also `invalid_base64`, `operator_host`). |
| branding-delete | infra:write | `scope`, `server`?, `host`? | **Needs a human approval**: `{code: approval_required, approval_request}`; after the approval `{deleted, scope}`. No brand — error `not_found`. |

## Related

- [Servers — API v1 and MCP | Nodea Documentation](https://nodea.io/en/api-docs/servers)
- [Nodea MCP server — endpoint, authentication, OAuth discovery, tools | Nodea](https://nodea.io/en/api-docs/mcp)
- [Nodea API v1 — introduction: base URL, tokens, scopes, limits | Nodea](https://nodea.io/en/api-docs/overview)

---

Languages: [pl](https://nodea.pl/pl/dokumentacja-api/branding.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
