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

# Apply watermarks to an image

> Applies the requested watermark methods to an image. The image is first classified by the identifAI models: **the watermarks are applied only if it is judged artificial** (AI-generated). The request is asynchronous: it returns the submission `id`, to use with the [API used to get the watermarked image](./get-watermarked-image) to read the status and get the download URL. **You must be enabled in your pricing plan** to apply watermarks, and each requested method must be allowed by your plan. **You must accept the storage of your files (file preview) for your account**: the watermarked image is stored on identifAI storage, and without this consent the request is rejected with a `403` error. The credits are charged when the request is accepted. See [Watermarks](/classification/classify-image#watermark-application-api-v2) for details.



## OpenAPI

````yaml api-v2/api-swagger-v2.json POST /api/v2/watermark
openapi: 3.0.0
info:
  title: identifAI API v2
  version: 2.0.0
  description: >-
    API v2 for batch tampering detection on ticket images. This API allows you
    to submit multiple tickets for analysis and retrieve results for tampering
    detection.
  x-translations:
    it:
      description: >-
        API v2 per il rilevamento delle manomissioni in batch su immagini di
        ticket. Questa API permette di inviare più ticket per l'analisi e di
        recuperare i risultati del rilevamento delle manomissioni.
      title: API v2 di identifAI
    es:
      description: >-
        API v2 para la detección de manipulaciones por lotes en imágenes de
        tickets. Esta API permite enviar varios tickets para su análisis y
        obtener los resultados de la detección de manipulaciones.
      title: API v2 de identifAI
servers:
  - url: https://api.identifai.net
security: []
tags:
  - name: Tampering Detection
    description: Batch tampering detection endpoints
    x-translations:
      it:
        description: Endpoint per il rilevamento delle manomissioni in batch
      es:
        description: Endpoints de detección de manipulaciones por lotes
  - name: Watermarking
    description: Watermark application endpoints
    x-translations:
      it:
        description: Endpoint per l'applicazione dei watermark
      es:
        description: Endpoints de aplicación de watermarks
paths:
  /api/v2/watermark:
    post:
      tags:
        - Watermarking
      summary: Apply watermarks to an image
      description: >-
        Applies the requested watermark methods to an image. The image is first
        classified by the identifAI models: **the watermarks are applied only if
        it is judged artificial** (AI-generated). The request is asynchronous:
        it returns the submission `id`, to use with the [API used to get the
        watermarked image](./get-watermarked-image) to read the status and get
        the download URL. **You must be enabled in your pricing plan** to apply
        watermarks, and each requested method must be allowed by your plan.
        **You must accept the storage of your files (file preview) for your
        account**: the watermarked image is stored on identifAI storage, and
        without this consent the request is rejected with a `403` error. The
        credits are charged when the request is accepted. See
        [Watermarks](/classification/classify-image#watermark-application-api-v2)
        for details.
      operationId: applyWatermarks
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The image to watermark.
                  x-translations:
                    it:
                      description: L'immagine a cui applicare i watermark.
                    es:
                      description: La imagen a la que se aplican los watermarks.
                methods[]:
                  type: array
                  minItems: 1
                  items:
                    type: string
                    enum:
                      - eu-logo
                      - chinese-logo
                      - metaseal
                      - chinese-metadata
                      - c2pa
                  example:
                    - eu-logo
                    - metaseal
                    - c2pa
                  description: >-
                    Watermark methods to apply, at least one: send the
                    `methods[]` field once per method. The order does not
                    matter: the methods are always applied in this order: logos
                    (`eu-logo`, `chinese-logo`), `metaseal`, `chinese-metadata`,
                    `c2pa` (last, because it signs the final image). See
                    [Watermark
                    methods](/classification/classify-image#watermark-methods).
                  x-translations:
                    it:
                      description: >-
                        Metodi di watermark da applicare, almeno uno: invia il
                        campo `methods[]` una volta per ogni metodo. L'ordine
                        non conta: i metodi vengono sempre applicati in
                        quest'ordine: loghi (`eu-logo`, `chinese-logo`),
                        `metaseal`, `chinese-metadata`, `c2pa` (per ultimo,
                        perché firma l'immagine finale). Consulta [Metodi di
                        watermark](/it/classification/classify-image#metodi-di-watermark).
                    es:
                      description: >-
                        Métodos de watermark que se aplican, al menos uno: envía
                        el campo `methods[]` una vez por cada método. El orden
                        no importa: los métodos siempre se aplican en este
                        orden: logos (`eu-logo`, `chinese-logo`), `metaseal`,
                        `chinese-metadata`, `c2pa` (el último, porque firma la
                        imagen final). Consulta [Métodos de
                        watermark](/es/classification/classify-image#métodos-de-watermark).
                aigcLabel:
                  type: integer
                  enum:
                    - 1
                    - 2
                    - 3
                  example: 1
                  description: >-
                    **Required by `chinese-metadata`**: the AIGC label of the GB
                    45438-2025 standard: `1` AI-generated, `2` probably
                    AI-generated, `3` suspected AI-generated.
                  x-translations:
                    it:
                      description: >-
                        **Obbligatorio per `chinese-metadata`**: l'etichetta
                        AIGC dello standard GB 45438-2025: `1` generato dall'IA,
                        `2` probabilmente generato dall'IA, `3` sospetto
                        generato dall'IA.
                    es:
                      description: >-
                        **Obligatorio para `chinese-metadata`**: la etiqueta
                        AIGC del estándar GB 45438-2025: `1` generado por IA,
                        `2` probablemente generado por IA, `3` sospechoso de ser
                        generado por IA.
                contentProducer:
                  type: string
                  description: >-
                    **Required by `chinese-metadata`**: the producer of the
                    content (name or code of the service provider).
                  x-translations:
                    it:
                      description: >-
                        **Obbligatorio per `chinese-metadata`**: il produttore
                        del contenuto (nome o codice del fornitore del
                        servizio).
                    es:
                      description: >-
                        **Obligatorio para `chinese-metadata`**: el productor
                        del contenido (nombre o código del proveedor del
                        servicio).
                producerId:
                  type: string
                  description: >-
                    **Required by `chinese-metadata`**: the identifier given to
                    the content by its producer.
                  x-translations:
                    it:
                      description: >-
                        **Obbligatorio per `chinese-metadata`**:
                        l'identificativo assegnato al contenuto dal suo
                        produttore.
                    es:
                      description: >-
                        **Obligatorio para `chinese-metadata`**: el
                        identificador asignado al contenido por su productor.
                contentPropagator:
                  type: string
                  description: >-
                    `chinese-metadata`: the propagator of the content (name or
                    code of the platform distributing it).
                  x-translations:
                    it:
                      description: >-
                        `chinese-metadata`: il diffusore del contenuto (nome o
                        codice della piattaforma che lo distribuisce).
                    es:
                      description: >-
                        `chinese-metadata`: el difusor del contenido (nombre o
                        código de la plataforma que lo distribuye).
                propagateId:
                  type: string
                  description: >-
                    `chinese-metadata`: the identifier given to the content by
                    its propagator.
                  x-translations:
                    it:
                      description: >-
                        `chinese-metadata`: l'identificativo assegnato al
                        contenuto dal suo diffusore.
                    es:
                      description: >-
                        `chinese-metadata`: el identificador asignado al
                        contenido por su difusor.
              required:
                - file
                - methods[]
      responses:
        '202':
          description: 'Request accepted: the image is being classified and watermarked.'
          x-translations:
            it:
              description: >-
                Richiesta accettata: l'immagine è in fase di classificazione e
                di applicazione dei watermark.
            es:
              description: >-
                Solicitud aceptada: la imagen se está clasificando y se le están
                aplicando los watermarks.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WatermarkSubmission'
              example:
                id: 674a3c9b8e2d4f12b7c9a8d4
                status: new
                result: null
        '400':
          description: >-
            Bad request - Missing image, invalid method or option, or missing
            option required by a requested method.
          x-translations:
            it:
              description: >-
                Richiesta non valida - Immagine mancante, metodo o opzione non
                validi, oppure manca un'opzione obbligatoria per un metodo
                richiesto.
            es:
              description: >-
                Solicitud no válida - Falta la imagen, método u opción no
                válidos, o falta una opción obligatoria para un método
                solicitado.
          content:
            application/json:
              example:
                statusCode: 400
                message: >-
                  Missing fields required by the requested watermark methods:
                  aigcLabel, producerId, contentProducer
                error: Bad Request
        '401':
          description: Unauthorized - Missing or invalid API key.
          x-translations:
            it:
              description: Non autorizzato - API key mancante o non valida.
            es:
              description: No autorizado - API key ausente o no válida.
        '403':
          description: >-
            Forbidden - Watermark application not enabled in your pricing plan,
            method not allowed by your plan, insufficient credits or file
            preview not enabled.
          x-translations:
            it:
              description: >-
                Accesso negato - Applicazione dei watermark non abilitata nel
                tuo piano tariffario, metodo non consentito dal tuo piano,
                crediti insufficienti o anteprima dei file non attiva.
            es:
              description: >-
                Prohibido - Aplicación de watermarks no habilitada en tu plan de
                precios, método no permitido por tu plan, créditos insuficientes
                o vista previa de los archivos no activa.
        '429':
          description: Too Many Requests - Rate Limit exceeded.
          x-translations:
            it:
              description: Troppe richieste - Rate limit superato.
            es:
              description: Demasiadas solicitudes - Rate limit superado.
        '503':
          description: >-
            Service Unavailable - Watermark application is temporarily
            unavailable. Nothing is charged.
          x-translations:
            it:
              description: >-
                Servizio non disponibile - L'applicazione dei watermark è
                temporaneamente non disponibile. Non viene addebitato nulla.
            es:
              description: >-
                Servicio no disponible - La aplicación de watermarks no está
                disponible temporalmente. No se cobra nada.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WatermarkSubmission:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the watermark application.
          x-translations:
            it:
              description: Identificativo dell'applicazione dei watermark.
            es:
              description: Identificador de la aplicación de watermarks.
        status:
          type: string
          enum:
            - new
            - inprogress
            - done
            - errored
          description: >-
            Processing status. The result is complete when it is `done` or
            `errored`.
          x-translations:
            it:
              description: >-
                Stato di elaborazione. Il risultato è completo quando è `done` o
                `errored`.
            es:
              description: >-
                Estado del procesamiento. El resultado está completo cuando es
                `done` o `errored`.
        watermarks_errors:
          type: array
          items:
            type: string
          description: Errors of the processing, when the status is `errored`.
          x-translations:
            it:
              description: Errori dell'elaborazione, quando lo stato è `errored`.
            es:
              description: Errores del procesamiento, cuando el estado es `errored`.
        result:
          type: object
          nullable: true
          description: >-
            Result of the watermark application, `null` in the response to the
            application request.
          x-translations:
            it:
              description: >-
                Risultato dell'applicazione dei watermark, `null` nella risposta
                alla richiesta di applicazione.
            es:
              description: >-
                Resultado de la aplicación de watermarks, `null` en la respuesta
                a la solicitud de aplicación.
          properties:
            applied_watermarks:
              type: array
              items:
                type: string
                enum:
                  - eu-logo
                  - chinese-logo
                  - metaseal
                  - chinese-metadata
                  - c2pa
              description: >-
                Methods applied to the image, in application order. Empty if no
                watermark was applied, e.g. because the image was not judged
                artificial.
              x-translations:
                it:
                  description: >-
                    Metodi applicati all'immagine, nell'ordine di applicazione.
                    Vuoto se non è stato applicato nessun watermark, ad esempio
                    perché l'immagine non è stata giudicata artificiale.
                es:
                  description: >-
                    Métodos aplicados a la imagen, en orden de aplicación. Vacío
                    si no se aplicó ningún watermark, por ejemplo porque la
                    imagen no se consideró artificial.
            errors:
              type: array
              items:
                type: string
              description: Errors of the methods that could not be applied.
              x-translations:
                it:
                  description: Errori dei metodi che non è stato possibile applicare.
                es:
                  description: Errores de los métodos que no se pudieron aplicar.
            download_url:
              type: string
              description: >-
                Pre-signed URL to download the watermarked image. Missing if no
                watermark was applied.
              x-translations:
                it:
                  description: >-
                    URL prefirmato per scaricare l'immagine con watermark.
                    Assente se non è stato applicato nessun watermark.
                es:
                  description: >-
                    URL prefirmada para descargar la imagen con watermark.
                    Ausente si no se aplicó ningún watermark.
            expires_at:
              type: string
              format: date-time
              description: >-
                Expiration of `download_url`, one hour after the end of the
                processing: download the image before then.
              x-translations:
                it:
                  description: >-
                    Scadenza di `download_url`, un'ora dopo la fine
                    dell'elaborazione: scarica l'immagine prima di allora.
                es:
                  description: >-
                    Caducidad de `download_url`, una hora después del final del
                    procesamiento: descarga la imagen antes.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.