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

> ## Agent Instructions
> Bridge exposes three integration surfaces: the REST Integrations API for pushing data into Bridge, webhooks for receiving events from Bridge, and the public Custom Connections endpoint that a tenant's landing page posts to.
> The Integrations API host is https://api-connect-us.bridge.new and every request to it must be authenticated with the x-api-key header. Bridge does not use bearer tokens or OAuth.
> The Custom Connections endpoint is different and the Integrations API rules do not apply to it: it has its own host, it takes no x-api-key and no authentication header of any kind, and it is called from a visitor's browser. It is identified by a workspace id and a capture key together with a reCAPTCHA token. Never tell a reader to authenticate it with an API key, and never tell them to keep its capture key out of frontend code - it is designed to live in the page.
> REST error catalog keys use BRIDGE_<DOMAIN>_<NNNN>, for example BRIDGE_CONVERSATION_0001. Some reviewed legacy handlers return a recognized code plus a symbolic suffix separated by |; preserve the complete received value and use the compatible catalog lookup on /error-codes. Custom Connections uses separate BRIDGE.CAMPAIGN_LEADS.<NAME> identifiers on its own error reference. Never invent an error code or confuse the two integration surfaces.
> This documentation covers the Integrations API, webhooks and Custom Connections only. It does not describe the Bridge web application or its internal APIs.
> Before generating an API request, read the relevant OpenAPI specification or the individual endpoint Markdown page. llms-full.txt collects guides and endpoint descriptions; it does not embed every request and response schema. The REST and Custom Connections contracts are separate.
> Preserve the published host, method, path, operationId, authentication, headers, parameter and field names, types, formats, required and nullable fields, enums, defaults, limits, and response codes. Do not invent identifiers, fields, retry rules, or delivery guarantees. When published sources conflict, identify the conflicting passages and ask Bridge support to confirm the current behavior before relying on it.
> Custom Connections is the current name of the landing-page feature previously documented as Lead Capture. The existing /lead-capture documentation URLs, captureKey field, campaign-leads endpoint, and BRIDGE.CAMPAIGN_LEADS error identifiers are unchanged. This is a naming change, not a change to authentication or the API contract.
> For a complete workflow, start with the task guides: /guides/first-conversation, /guides/send-attachments, /guides/send-template, /guides/agent-outbound, /guides/pagination, /guides/pipeline-records, /guides/identifiers and /guides/responses. Read the endpoint contract as well as the recipe. Outbound requires an existing Contact, but does not require creating a separate Conversation first.
> Pipeline records are created only for an existing Contact (never upserted). POST /records, /move and /reopen require Idempotency-Key; PATCH, move and reopen take an optional expectedRevision in the body. Stage actions run every time a record enters a stage, including records created in bulk. Use /guides/pipeline-records and /webhooks/pipeline-records.
> forceSend=true permits reuse of an existing active conversation; it does not create a fresh one by ignoring it and it is not idempotency. Recovery of a released recoverable conversation can occur even with false. The LeadScout and Agents outbound routes have different line-selection and controller checks; use /guides/agent-outbound.
> For webhook HMAC, follow /webhooks/verifying-signatures exactly: the Python JSON serialization with sorted keys is signed; X-Bridge-Timestamp is not included in that signature. Do not claim a signed timestamp, raw-body signing, exactly-once delivery or a global event order. Use /webhooks/receive-events for durable acceptance and duplicates.
> A 201 message response, 202 handoff or 202 Custom Connections response is not a provider delivery receipt. Do not invent a polling endpoint from messageId, trackingId or requestId. REST validation parsing must tolerate the compatibility difference explained in /error-codes.
> The documentation is available in English (existing root URLs), Spanish (/es/) and Brazilian Portuguese (/pt-br/). Prefer the reader's language when a localized page exists, but preserve the API's exact field names, enums, routes, authentication and examples. Translations describe the same API; they do not introduce regional API hosts or behaviors.
> For coding-assistant setup, use /connect-your-agent, /es/connect-your-agent or /pt-br/connect-your-agent. The Bridge documentation MCP server reads published documentation and has a separate optional feedback tool. Connecting it does not connect the coding assistant to a customer workspace or authorize live business requests.
> For direct HTTP access without MCP, start at https://docs.bridge.new/llms.txt. It lists every published page in English, Spanish and Brazilian Portuguese. Choose /llms-en.json, /llms-es.json or /llms-pt-br.json for a language-specific index, and /llms-full-en.json, /llms-full-es.json or /llms-full-pt-br.json for collected content. /llms-full.txt contains the combined collection. Fetch the original OpenAPI specification for exact schemas.
> For HTTP page reads, follow the .md URLs from the index or request Accept: text/markdown at the canonical page URL. The MCP virtual filesystem uses .mdx page paths instead; .mdx is not the public HTTP export extension. With Search MCP, set language to en, es or pt-BR explicitly; its default is en.
> For integration capabilities and source-selection rules, read https://docs.bridge.new/skill.md. Documentation access does not authorize business API actions; use the actual user request, workspace, credentials and target identifiers for any live integration.

# Enviar plantilla

> Envía una plantilla de proveedor de WhatsApp a una conversación existente, como un único mensaje que leen todos los contactos de WhatsApp de la conversación. El remitente es la API key, que Bridge muestra con su nombre de remitente. Para iniciar una conversación con una plantilla, usa `POST /bridge/api/v1/workspaces/{workspaceId}/conversations` con `onboardingTemplates`.

La conversación debe estar activa, no atendida por un Agente y tener un contacto de WhatsApp. Envía la plantilla por `template.id`, aprobada para la línea y el idioma de cada contacto de WhatsApp, con `template.parameters` indexados como los devuelve `GET /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`.

Una plantilla de marketing o de utilidad se rechaza mientras un contacto de la conversación está dentro del periodo de espera promocional del workspace: 409 `BRIDGE_CONVERSATION_0406`, con la espera en segundos en `Retry-After`. También abre una conversación que aún no tiene plantilla inicial. El encabezado `Idempotency-Key` es obligatorio y se conserva 24 horas: la misma clave con el mismo envío responde 201 con `Idempotent-Replayed: true` y no vuelve a enviar nada. Un 201 significa que Bridge guardó el mensaje para enviarlo; consulta [Respuestas, errores y reintentos](/es/guides/responses).

Todos los códigos de error 4xx aparecen en las respuestas. Qué hacer con cada uno: [Envía una plantilla a una conversación existente](/es/guides/send-template#if-the-request-is-rejected).



## OpenAPI

````yaml /es/api-reference/openapi.yaml post /bridge/api/v1/workspaces/{workspaceId}/conversations/{conversationId}/send-template
openapi: 3.1.0
info:
  title: Bridge API
  summary: Especificación de la API de Bridge para gestionar el sistema de chat.
  description: >-
    Especificación de la API REST de integraciones de Bridge para gestionar
    contactos, conversaciones, mensajes, archivos, atributos personalizados,
    canales de proveedores, plantillas, usuarios internos y Agents.


    Los webhooks se documentan por separado en
    https://docs.bridge.new/es/webhooks; este OpenAPI contiene únicamente
    endpoints REST.


    **Arquitectura multiempresa**: las operaciones sobre recursos se limitan a
    un workspace específico mediante workspaceId. La comprobación de estado no
    incluye un workspace en su ruta.
  termsOfService: https://www.sainapsis.com/legal/terms-of-service
  contact:
    name: Bridge Support
    url: https://app.bridge.new/
    email: support@sainapsis.com
  license:
    name: MIT License
    url: https://spdx.org/licenses/MIT.html
  version: 1.0.0
servers:
  - url: https://api-connect-us.bridge.new
    description: Servidor de producción
security: []
paths:
  /bridge/api/v1/workspaces/{workspaceId}/conversations/{conversationId}/send-template:
    post:
      tags:
        - Conversations API
      summary: Enviar plantilla
      description: >-
        Envía una plantilla de proveedor de WhatsApp a una conversación
        existente, como un único mensaje que leen todos los contactos de
        WhatsApp de la conversación. El remitente es la API key, que Bridge
        muestra con su nombre de remitente. Para iniciar una conversación con
        una plantilla, usa `POST
        /bridge/api/v1/workspaces/{workspaceId}/conversations` con
        `onboardingTemplates`.


        La conversación debe estar activa, no atendida por un Agente y tener un
        contacto de WhatsApp. Envía la plantilla por `template.id`, aprobada
        para la línea y el idioma de cada contacto de WhatsApp, con
        `template.parameters` indexados como los devuelve `GET
        /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`.


        Una plantilla de marketing o de utilidad se rechaza mientras un contacto
        de la conversación está dentro del periodo de espera promocional del
        workspace: 409 `BRIDGE_CONVERSATION_0406`, con la espera en segundos en
        `Retry-After`. También abre una conversación que aún no tiene plantilla
        inicial. El encabezado `Idempotency-Key` es obligatorio y se conserva 24
        horas: la misma clave con el mismo envío responde 201 con
        `Idempotent-Replayed: true` y no vuelve a enviar nada. Un 201 significa
        que Bridge guardó el mensaje para enviarlo; consulta [Respuestas,
        errores y reintentos](/es/guides/responses).


        Todos los códigos de error 4xx aparecen en las respuestas. Qué hacer con
        cada uno: [Envía una plantilla a una conversación
        existente](/es/guides/send-template#if-the-request-is-rejected).
      operationId: >-
        send_template_bridge_api_v1_workspaces__workspaceId__conversations__conversationId__send_template_post
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Identificador único del workspace (UUID v4).
            examples:
              - b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234
            title: Workspaceid
          description: Identificador único del workspace (UUID v4).
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Identificador único de la conversación (UUID v4).
            examples:
              - 4e362e2b-67b2-4a7e-a9df-e9ecf9141be8
            title: Conversationid
          description: Identificador único de la conversación (UUID v4).
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              Obligatorio. Una clave que eliges para cada envío, de 1 a 255
              caracteres, como el id de operación de tu sistema. Envía la misma
              clave para reintentar ese envío: durante 24 horas Bridge responde
              con el mensaje que guardó la primera solicitud en lugar de enviar
              de nuevo.
            examples:
              - erp-order-981-shipped
            title: Idempotency-Key
          description: >-
            Obligatorio. Una clave que eliges para cada envío, de 1 a 255
            caracteres, como el id de operación de tu sistema. Envía la misma
            clave para reintentar ese envío: durante 24 horas Bridge responde
            con el mensaje que guardó la primera solicitud en lugar de enviar de
            nuevo.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendTemplateRequest'
              description: >-
                Cuerpo de la solicitud para enviar una plantilla de proveedor a
                una conversación existente.
      responses:
        '201':
          description: >-
            Bridge guardó el mensaje para enviarlo, o lo hizo una solicitud
            anterior con la misma `Idempotency-Key`. Consulta [Respuestas y
            reintentos](/es/guides/responses).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendTemplateResponse'
          headers:
            Idempotent-Replayed:
              description: >-
                `true` cuando el mensaje proviene de una solicitud anterior con
                la misma clave.
              schema:
                type: string
                enum:
                  - 'true'
        '400':
          description: Solicitud incorrecta
          content:
            application/json:
              examples:
                PRELOAD_FILE_IS_PENDING:
                  value:
                    title: Preload file is pending
                    status: 400
                    code: BRIDGE_PRELOAD_FILE_0002 | PRELOAD_FILE_IS_PENDING
                PROVIDER_TEMPLATE_NOT_APPROVED:
                  value:
                    title: Provider Template Not Approved
                    status: 400
                    code: BRIDGE_TEMPLATE_0006
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Acceso prohibido
          content:
            application/json:
              examples:
                FORBIDDEN:
                  value:
                    title: Forbidden
                    status: 403
                    code: BRIDGE_CORE_0301
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: No encontrado
          content:
            application/json:
              examples:
                PROVIDER_TEMPLATE_NOT_FOUND:
                  value:
                    title: Provider Template Not Found
                    status: 404
                    code: BRIDGE_TEMPLATE_0001
                PRELOAD_FILE_NOT_FOUND:
                  value:
                    title: Preload file was not found
                    status: 404
                    code: BRIDGE_PRELOAD_FILE_0001 | PRELOAD_FILE_NOT_FOUND
                CONVERSATION_NOT_FOUND:
                  value:
                    title: Conversation Not Found
                    status: 404
                    code: BRIDGE_CONVERSATION_0001
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflicto
          content:
            application/json:
              examples:
                IDEMPOTENCY_REQUEST_IN_PROGRESS:
                  value:
                    title: Idempotency Request In Progress
                    status: 409
                    code: BRIDGE_CORE_1201
                CONVERSATION_IS_RELEASED:
                  value:
                    title: Conversation Is Released
                    status: 409
                    code: BRIDGE_CONVERSATION_0007
                CONVERSATION_CONTROLLED_BY_AGENT:
                  value:
                    title: Conversation Controlled By Agent
                    status: 409
                    code: BRIDGE_CONVERSATION_0011
                CONVERSATION_NOT_ACTIVE:
                  value:
                    title: Conversation Not Active
                    status: 409
                    code: BRIDGE_CONVERSATION_0004
                TEMPLATE_COOLDOWN_ACTIVE:
                  value:
                    title: Template Cooldown Active
                    status: 409
                    code: BRIDGE_CONVERSATION_0406
                ONBOARDING_REQUIRED:
                  value:
                    title: Onboarding Required
                    status: 409
                    code: BRIDGE_CONVERSATION_0609
                OPENING_TEMPLATE_IN_FLIGHT:
                  value:
                    title: Opening Template In Flight
                    status: 409
                    code: BRIDGE_CONVERSATION_0613
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            Retry-After:
              description: >-
                Segundos que debes esperar antes de reintentar. Está presente
                cuando el periodo de espera rechaza el envío
                (`BRIDGE_CONVERSATION_0406`).
              schema:
                type: integer
                minimum: 1
        '422':
          description: Contenido no procesable
          content:
            application/json:
              examples:
                INVALID_FIELD_FORMAT:
                  value:
                    title: Invalid Field Format
                    status: 422
                    code: BRIDGE_CORE_0101
                IDEMPOTENCY_KEY_REUSED:
                  value:
                    title: Idempotency Key Reused
                    status: 422
                    code: BRIDGE_CORE_1202
                EXTERNAL_PARTICIPANTS_REQUIRED:
                  value:
                    title: External Participants Required
                    status: 422
                    code: BRIDGE_CONVERSATION_0201
                CONTACT_SEND_REJECTED:
                  value:
                    title: Consent Contact Send Rejected
                    status: 422
                    code: BRIDGE_COMMERCIAL_CONSENT_0203
                PROVIDER_TEMPLATE_MISSING_VARIABLES:
                  value:
                    title: Provider Template Missing Variables
                    status: 422
                    code: BRIDGE_TEMPLATE_0007
                PROVIDER_TEMPLATE_UNKNOWN_VARIABLES:
                  value:
                    title: Provider Template Unknown Variables
                    status: 422
                    code: BRIDGE_TEMPLATE_0010
                PROVIDER_TEMPLATE_INVALID_VARIABLE_VALUES:
                  value:
                    title: Provider Template Invalid Variable Values
                    status: 422
                    code: BRIDGE_TEMPLATE_0009
                PROVIDER_TEMPLATE_HEADER_MEDIA_NOT_ACCEPTED:
                  value:
                    title: Provider Template Header Media Not Accepted
                    status: 422
                    code: BRIDGE_TEMPLATE_0011
                PROVIDER_TEMPLATE_HEADER_MEDIA_MISMATCH:
                  value:
                    title: Provider Template Header Media Mismatch
                    status: 422
                    code: BRIDGE_TEMPLATE_0012
                PROVIDER_TEMPLATE_HEADER_MEDIA_REQUIRED:
                  value:
                    title: Provider Template Header Media Required
                    status: 422
                    code: BRIDGE_TEMPLATE_0013
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Demasiadas solicitudes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
              examples:
                WORKSPACE_BUDGET_EXHAUSTED:
                  value:
                    title: Too Many Requests
                    status: 429
                    code: BRIDGE_RATE_LIMIT_0001
      security:
        - x-api-key: []
components:
  schemas:
    SendTemplateRequest:
      properties:
        template:
          $ref: '#/components/schemas/SendTemplateRef'
          title: Template
          description: >-
            La plantilla de proveedor que se envía y los valores de sus
            variables.
      additionalProperties: false
      type: object
      required:
        - template
      title: SendTemplateRequest
      description: >-
        Cuerpo de la solicitud para enviar una plantilla de proveedor a una
        conversación existente.
    SendTemplateResponse:
      properties:
        conversationId:
          type: string
          title: Conversation Identifier
          description: Identificador de la conversación a la que se envió la plantilla.
          examples:
            - 7d4a1f2e-3b5c-4d6e-8f9a-0b1c2d3e4f5a
        messageId:
          type: string
          title: Message Identifier
          description: >-
            Identificador del mensaje que Bridge guardó para la plantilla. Es un
            solo mensaje, que leen todos los contactos de WhatsApp de la
            conversación.
          examples:
            - b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234
        templateId:
          type: string
          title: Template Identifier
          description: Identificador de la plantilla que se envió.
          examples:
            - 4061e74e-f6fe-4072-a760-3aec0b64f7a6
        templateName:
          type: string
          title: Template Name
          description: Nombre de la plantilla que se envió.
          examples:
            - order_shipped_promo
      type: object
      required:
        - conversationId
        - messageId
        - templateId
        - templateName
      title: SendTemplateResponse
      description: El mensaje que Bridge guardó para enviar la plantilla a la conversación.
    Problem:
      properties:
        title:
          type: string
          title: Title
          description: Resumen breve del tipo de problema.
        status:
          type: integer
          title: Status
          description: >-
            Código de estado HTTP generado por el servidor de origen para esta
            instancia del problema.
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
          description: Explicación específica de esta instancia del problema.
        instance:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance
          description: Referencia URI que identifica esta instancia del problema.
        traceId:
          anyOf:
            - type: string
            - type: 'null'
          title: Traceid
          description: ID de seguimiento para depuración.
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Código para identificar el error; consulta la página de códigos de
            error para más detalles.
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Errors
          description: Lista de detalles de errores.
        extra:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extra
          description: Información adicional sobre el problema.
      type: object
      required:
        - title
        - status
      title: Problem
      description: Objeto que representa el cuerpo de una respuesta Problem.
    SendTemplateRef:
      properties:
        id:
          type: string
          maxLength: 255
          minLength: 1
          title: Template Identifier
          description: >-
            Obligatorio. Identificador de la plantilla de proveedor, tal como lo
            devuelve `id` en `GET
            /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`. Un
            `id` en blanco, o que no coincide con ninguna plantilla de proveedor
            del workspace, falla: 422 si está en blanco y 404
            `BRIDGE_TEMPLATE_0001` si es desconocido. La solicitud no admite el
            `name` de la plantilla.
          examples:
            - 4061e74e-f6fe-4072-a760-3aec0b64f7a6
        parameters:
          additionalProperties:
            type: string
            maxLength: 1024
          propertyNames:
            maxLength: 128
          type: object
          maxProperties: 50
          title: Template Parameters
          description: >-
            Valores de las variables de la plantilla, indexados por la `key` de
            la variable que devuelve `GET
            /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`. Las
            variables marcadas con `callerMustSupply: true` son obligatorias:
            una ausente o en blanco falla con 422 `BRIDGE_TEMPLATE_0007`. Las
            demás son opcionales, y un valor enviado para una reemplaza el valor
            por contacto para todos los contactos de la conversación. Una clave
            que no es una variable de la plantilla, o cualquier clave cuando la
            plantilla no admite parámetros, falla con 422
            `BRIDGE_TEMPLATE_0010`. Un valor que incumple las reglas de WhatsApp
            falla con 422 `BRIDGE_TEMPLATE_0009`. Ausente y `{}` son la misma
            solicitud. Máximo 50 parámetros, con claves de hasta 128 caracteres
            y valores de hasta 1024 caracteres.
          examples:
            - delivery_date: 3 de octubre
              order_number: A-10492
        media:
          anyOf:
            - $ref: '#/components/schemas/SendTemplateMedia'
            - type: 'null'
          title: Header Media
          description: >-
            El archivo que se envía como encabezado de la plantilla (la imagen,
            el video, el GIF o el documento PDF que se muestra en la parte
            superior del mensaje), en lugar del encabezado configurado en la
            plantilla. Envía su `type` y `mediaId` (súbelo primero con `POST
            /bridge/api/v1/workspaces/{workspaceId}/files`; consulta [Enviar un
            adjunto](/es/guides/send-attachments)) o `url`. Con `url`, Bridge
            descarga el archivo de forma asíncrona: el resultado de la descarga
            no forma parte de la respuesta 201, y una descarga que falla no se
            informa en ella. Si omites `media`, sale el encabezado configurado
            en la plantilla. Falla con 422 `BRIDGE_TEMPLATE_0011` cuando la
            plantilla no tiene encabezado multimedia, y con 422
            `BRIDGE_TEMPLATE_0012` cuando `type` (o el tipo del archivo subido)
            no es el del encabezado. Un `mediaId` que no es un archivo del
            workspace falla con 404 `BRIDGE_PRELOAD_FILE_0001 |
            PRELOAD_FILE_NOT_FOUND`, y uno que aún no se puede usar (se está
            subiendo o se canceló su carga), con 400 `BRIDGE_PRELOAD_FILE_0002 |
            PRELOAD_FILE_IS_PENDING`. Una plantilla con un encabezado multimedia
            (imagen, video, GIF o documento) que no tiene un archivo configurado
            necesita `media`: sin él, la solicitud falla con 422
            `BRIDGE_TEMPLATE_0013`. WhatsApp aún puede rechazar un archivo que
            supere sus límites para un encabezado después del 201.
      additionalProperties: false
      type: object
      required:
        - id
      title: SendTemplateRef
      description: >-
        La plantilla de proveedor que se envía, buscada por su `id`, y los
        valores de sus variables.
    SendTemplateMedia:
      properties:
        type:
          $ref: '#/components/schemas/HeaderFileType'
          title: Media Type
          description: >-
            El tipo de archivo: `IMAGE`, `VIDEO`, `GIF` o `DOCUMENT`. Debe ser
            el tipo del encabezado de la plantilla (el archivo que se muestra en
            la parte superior del mensaje), en el idioma de la plantilla y en el
            de cada contacto; si no, la solicitud falla con 422
            `BRIDGE_TEMPLATE_0012`. Con `mediaId`, el archivo subido también
            debe tener ese tipo. Un encabezado `DOCUMENT` debe ser un PDF: un
            archivo subido de otro formato de documento falla con 422
            `BRIDGE_TEMPLATE_0012`, y una `url` que no sea un PDF no se
            comprueba antes de la descarga.
          examples:
            - IMAGE
        mediaId:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Media Identifier
          description: >-
            El `mediaId` que `POST
            /bridge/api/v1/workspaces/{workspaceId}/files` devolvió para el
            archivo, una vez terminada su carga. El archivo debe pertenecer al
            workspace. Envía `mediaId` o `url`, no ambos.
          examples:
            - 9b2f6a52-1f3c-4a53-8f58-3c6a2e7d1b10
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Media URL
          description: >-
            Una URL `https` pública del archivo. Bridge la descarga de forma
            asíncrona: el resultado de la descarga no forma parte de la
            respuesta 201, así que una descarga que falla no se informa en ella.
            Envía `mediaId` o `url`, no ambos.
          examples:
            - https://cdn.example.com/promo/spring-sale.png
      additionalProperties: false
      type: object
      required:
        - type
      title: SendTemplateMedia
      description: >-
        La imagen, el video, el GIF o el documento PDF que se muestra en la
        parte superior del mensaje de la plantilla: su `type` y exactamente una
        fuente.


        La fuente es `mediaId` (un archivo ya subido a Bridge) o `url` (un
        archivo que Bridge descarga).
    HeaderFileType:
      type: string
      enum:
        - IMAGE
        - VIDEO
        - GIF
        - DOCUMENT
      title: HeaderFileType
  securitySchemes:
    x-api-key:
      type: apiKey
      description: Copia la clave de API tal como te la proporciona Bridge Console.
      in: header
      name: x-api-key

````

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