> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Einen benutzerdefinierten Tag erstellen

> POST /tag/custom/

Erstellt einen benutzerdefinierten Tag für das anfragende Konto auf dem **Management-API**-Host (`api.scanova.io`), authentifiziert mit Ihrem rohen Management-API-Schlüssel.

```
POST https://api.scanova.io/tag/custom/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField body="tag" type="string" required>
  Tag-Name, bis zu 50 Zeichen. Wird abgelehnt, wenn er `<` oder `>` enthält (verhindert z. B. `<script>`-Payloads).
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/tag/custom/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{ "tag": "vip" }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  { "tag": "vip" }
  ```
</ResponseExample>

## Tags werden nach Namen geteilt, Eigentümerschaft nicht

Der zugrunde liegende Tag-Name (`vip`) ist systemweit ein gemeinsam genutzter/globaler Wert — das Erstellen eines benutzerdefinierten Tags verwendet entweder einen bestehenden Tag mit diesem Namen erneut oder erstellt einen neuen. Pro Konto ist der *Eigentümerschaftsdatensatz*: Dieser Aufruf schlägt mit `400` fehl, wenn **dieses Konto** bereits einen benutzerdefinierten Tag mit diesem Namen hat, selbst wenn der Tag-Name selbst bereits anderswo verwendet wird (z. B. an QR-Codes eines anderen Kontos angehängt).

## Siehe auch

* [Ihre benutzerdefinierten Tags auflisten](/de/api-reference/management-api/tags/custom-list) — sehen Sie, was dieser Aufruf hinzufügt.
* [Tags auflisten](/de/api-reference/management-api/tags/manage) — das vollständige Tag-Verzeichnis des Kontos.
* [Management-API-Übersicht](/de/api-reference/management-api/overview) — das Auth-Schema und die Quota-Regeln, die für diesen Endpunkt gelten.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /tag/custom/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /tag/custom/:
    post:
      summary: Create a custom tag
      description: >-
        Creates a new custom tag (or 400s if one with this name already exists
        for the account). The underlying `Tag` row is shared/global by name —
        creating a custom tag either reuses an existing global `Tag` or creates
        one — but the `CustomTag` ownership row is per-account.
      operationId: createManagedCustomTag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tag:
                  type: string
                  maxLength: 50
                  description: Tag name. Rejected if it contains `<` or `>`.
              required:
                - tag
            example:
              tag: vip
      responses:
        '201':
          description: Custom tag created.
          content:
            application/json:
              example:
                tag: vip
        '400':
          description: >-
            Invalid tag name, or a custom tag with this name already exists for
            the account.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````