> ## 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.

# Créer un modèle de logo texte

> POST /qr-assets/text-logo/

Enregistre un nouveau modèle de logo texte, sur l'hôte de l'**API de gestion** (`api.scanova.io`), authentifié avec votre clé d'API de gestion brute.

```
POST https://api.scanova.io/qr-assets/text-logo/
Authorization: YOUR_API_KEY
```

<ParamField body="text" type="string" required>
  Le texte du logo, 20 caractères maximum.
</ParamField>

<ParamField body="is_bold" type="boolean" default="false">
  Style gras.
</ParamField>

<ParamField body="is_italic" type="boolean" default="false">
  Style italique.
</ParamField>

<ParamField body="color" type="string" default="000000">
  Couleur hexadécimale, sans le préfixe `#`, 10 caractères maximum.
</ParamField>

<ParamField body="font_size" type="integer" default="100">
  Taille de police.
</ParamField>

<ParamField body="font_family" type="string" default="Arial">
  Nom de la famille de police, 100 caractères maximum.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/qr-assets/text-logo/" \
    -H "Authorization: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "text": "SALE",
      "is_bold": true,
      "color": "FF0000",
      "font_size": 120,
      "font_family": "Arial"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": 5,
    "text": "SALE",
    "is_bold": true,
    "is_italic": false,
    "color": "FF0000",
    "font_size": 120,
    "font_family": "Arial",
    "has_user": true,
    "modified": "2026-09-01T10:00:00Z"
  }
  ```
</ResponseExample>

Le logo créé appartient toujours à ce compte — `has_user` revient à `true`.

## Voir aussi

* [Lister les modèles de logo texte](/fr/api-reference/management-api/qr-assets/text-logo-list) — voir les logos enregistrés et par défaut.
* [Supprimer un modèle de logo texte](/fr/api-reference/management-api/qr-assets/text-logo-delete) — supprimer ce logo.
* [Présentation de l'API de gestion](/fr/api-reference/management-api/overview) — le schéma d'authentification et les règles de quota applicables à cet endpoint.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /qr-assets/text-logo/
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:
  /qr-assets/text-logo/:
    post:
      summary: Create a text logo template
      operationId: createTextLogoTemplate
      requestBody:
        content:
          application/json:
            example:
              text: SALE
              is_bold: true
              color: FF0000
              font_size: 120
              font_family: Arial
      responses:
        '201':
          description: Text logo created.
          content:
            application/json:
              example:
                id: 5
                text: SALE
                is_bold: true
                is_italic: false
                color: FF0000
                font_size: 120
                font_family: Arial
                has_user: true
                modified: '2026-09-01T10:00:00Z'
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: YOUR_API_KEY`. 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.

````