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

> Envia um template de provedor do WhatsApp para uma conversa existente, como uma única mensagem lida por todos os contatos de WhatsApp da conversa. O remetente é a API key, que o Bridge mostra com o nome de remetente dela. Para iniciar uma conversa com um template, use `POST /bridge/api/v1/workspaces/{workspaceId}/conversations` com `onboardingTemplates`.

A conversa deve estar ativa, não atendida por um Agente e ter um contato de WhatsApp. Envie o template por `template.id`, aprovado para a linha e o idioma de cada contato de WhatsApp, com `template.parameters` indexados como `GET /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}` os retorna.

Um template de marketing ou de utilidade é recusado enquanto um contato da conversa estiver dentro do período de espera promocional do workspace: 409 `BRIDGE_CONVERSATION_0406`, com a espera em segundos em `Retry-After`. Ele também abre uma conversa que ainda não tem template inicial. O cabeçalho `Idempotency-Key` é obrigatório e mantido por 24 horas: a mesma chave com o mesmo envio responde 201 com `Idempotent-Replayed: true` e não envia nada de novo. Um 201 significa que o Bridge gravou a mensagem para envio; veja [Respostas, erros e novas tentativas](/pt-br/guides/responses).

Todos os códigos de erro 4xx aparecem nas respostas. O que fazer com cada um: [Envie um template para uma conversa existente](/pt-br/guides/send-template#if-the-request-is-rejected).



## OpenAPI

````yaml /pt-br/api-reference/openapi.yaml post /bridge/api/v1/workspaces/{workspaceId}/conversations/{conversationId}/send-template
openapi: 3.1.0
info:
  title: Bridge API
  summary: Especificação da API do Bridge para gerenciar o sistema de chat.
  description: >-
    Especificação da API REST de integrações do Bridge para gerenciar contatos,
    conversas, mensagens, arquivos, atributos personalizados, canais de
    provedores, modelos, usuários internos e Agents.


    Os webhooks são documentados separadamente em
    https://docs.bridge.new/pt-br/webhooks; este OpenAPI contém apenas endpoints
    REST.


    **Arquitetura multiempresa**: as operações sobre recursos são limitadas a um
    workspace específico por workspaceId. A verificação de integridade não
    inclui um workspace no caminho.
  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 produção
security: []
paths:
  /bridge/api/v1/workspaces/{workspaceId}/conversations/{conversationId}/send-template:
    post:
      tags:
        - Conversations API
      summary: Enviar modelo
      description: >-
        Envia um template de provedor do WhatsApp para uma conversa existente,
        como uma única mensagem lida por todos os contatos de WhatsApp da
        conversa. O remetente é a API key, que o Bridge mostra com o nome de
        remetente dela. Para iniciar uma conversa com um template, use `POST
        /bridge/api/v1/workspaces/{workspaceId}/conversations` com
        `onboardingTemplates`.


        A conversa deve estar ativa, não atendida por um Agente e ter um contato
        de WhatsApp. Envie o template por `template.id`, aprovado para a linha e
        o idioma de cada contato de WhatsApp, com `template.parameters`
        indexados como `GET
        /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}` os
        retorna.


        Um template de marketing ou de utilidade é recusado enquanto um contato
        da conversa estiver dentro do período de espera promocional do
        workspace: 409 `BRIDGE_CONVERSATION_0406`, com a espera em segundos em
        `Retry-After`. Ele também abre uma conversa que ainda não tem template
        inicial. O cabeçalho `Idempotency-Key` é obrigatório e mantido por 24
        horas: a mesma chave com o mesmo envio responde 201 com
        `Idempotent-Replayed: true` e não envia nada de novo. Um 201 significa
        que o Bridge gravou a mensagem para envio; veja [Respostas, erros e
        novas tentativas](/pt-br/guides/responses).


        Todos os códigos de erro 4xx aparecem nas respostas. O que fazer com
        cada um: [Envie um template para uma conversa
        existente](/pt-br/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 do workspace (UUID v4).
            examples:
              - b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234
            title: Workspaceid
          description: Identificador único do workspace (UUID v4).
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Identificador único da conversa (UUID v4).
            examples:
              - 4e362e2b-67b2-4a7e-a9df-e9ecf9141be8
            title: Conversationid
          description: Identificador único da conversa (UUID v4).
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              Obrigatório. Uma chave que você escolhe para cada envio, de 1 a
              255 caracteres, como o id de operação do seu sistema. Envie a
              mesma chave para repetir esse envio: por 24 horas o Bridge
              responde com a mensagem que a primeira requisição gravou, em vez
              de enviar de novo.
            examples:
              - erp-order-981-shipped
            title: Idempotency-Key
          description: >-
            Obrigatório. Uma chave que você escolhe para cada envio, de 1 a 255
            caracteres, como o id de operação do seu sistema. Envie a mesma
            chave para repetir esse envio: por 24 horas o Bridge responde com a
            mensagem que a primeira requisição gravou, em vez de enviar de novo.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendTemplateRequest'
              description: >-
                Corpo da requisição para enviar um template de provedor a uma
                conversa existente.
      responses:
        '201':
          description: >-
            O Bridge gravou a mensagem para envio, ou uma requisição anterior
            com a mesma `Idempotency-Key` o fez. Veja [Respostas e novas
            tentativas](/pt-br/guides/responses).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendTemplateResponse'
          headers:
            Idempotent-Replayed:
              description: >-
                `true` quando a mensagem vem de uma requisição anterior com a
                mesma chave.
              schema:
                type: string
                enum:
                  - 'true'
        '400':
          description: Solicitação inválida
          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: Acesso proibido
          content:
            application/json:
              examples:
                FORBIDDEN:
                  value:
                    title: Forbidden
                    status: 403
                    code: BRIDGE_CORE_0301
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Não 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: Conflito
          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 a esperar antes de tentar de novo. Presente quando o
                período de espera recusa o envio (`BRIDGE_CONVERSATION_0406`).
              schema:
                type: integer
                minimum: 1
        '422':
          description: Conteúdo não processável
          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: Muitas solicitações
          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: O template de provedor a enviar e os valores de suas variáveis.
      additionalProperties: false
      type: object
      required:
        - template
      title: SendTemplateRequest
      description: >-
        Corpo da requisição para enviar um template de provedor a uma conversa
        existente.
    SendTemplateResponse:
      properties:
        conversationId:
          type: string
          title: Conversation Identifier
          description: Identificador da conversa para a qual o template foi enviado.
          examples:
            - 7d4a1f2e-3b5c-4d6e-8f9a-0b1c2d3e4f5a
        messageId:
          type: string
          title: Message Identifier
          description: >-
            Identificador da mensagem que o Bridge gravou para o template. É uma
            única mensagem, lida por todos os contatos de WhatsApp da conversa.
          examples:
            - b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234
        templateId:
          type: string
          title: Template Identifier
          description: Identificador do template que foi enviado.
          examples:
            - 4061e74e-f6fe-4072-a760-3aec0b64f7a6
        templateName:
          type: string
          title: Template Name
          description: Nome do template que foi enviado.
          examples:
            - order_shipped_promo
      type: object
      required:
        - conversationId
        - messageId
        - templateId
        - templateName
      title: SendTemplateResponse
      description: A mensagem que o Bridge gravou para enviar o template à conversa.
    Problem:
      properties:
        title:
          type: string
          title: Title
          description: Resumo breve do tipo de problema.
        status:
          type: integer
          title: Status
          description: >-
            Código de status HTTP gerado pelo servidor de origem para esta
            ocorrência do problema.
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
          description: Explicação específica desta ocorrência do problema.
        instance:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance
          description: Referência URI que identifica esta ocorrência do problema.
        traceId:
          anyOf:
            - type: string
            - type: 'null'
          title: Traceid
          description: ID de rastreamento para depuração.
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Código para identificar o erro; consulte a página de códigos de erro
            para mais detalhes.
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Errors
          description: Lista de detalhes dos erros.
        extra:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extra
          description: Informações adicionais sobre o problema.
      type: object
      required:
        - title
        - status
      title: Problem
      description: Objeto que representa o corpo de uma resposta Problem.
    SendTemplateRef:
      properties:
        id:
          type: string
          maxLength: 255
          minLength: 1
          title: Template Identifier
          description: >-
            Obrigatório. Identificador do template de provedor, como `id` o
            devolve em `GET
            /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`. Um
            `id` em branco, ou que não corresponde a nenhum template de provedor
            do workspace, falha: 422 se estiver em branco e 404
            `BRIDGE_TEMPLATE_0001` se for desconhecido. A requisição não aceita
            o `name` do template.
          examples:
            - 4061e74e-f6fe-4072-a760-3aec0b64f7a6
        parameters:
          additionalProperties:
            type: string
            maxLength: 1024
          propertyNames:
            maxLength: 128
          type: object
          maxProperties: 50
          title: Template Parameters
          description: >-
            Valores das variáveis do template, indexados pela `key` da variável
            que `GET
            /bridge/api/v1/workspaces/{workspaceId}/templates/{templateId}`
            devolve. As variáveis marcadas com `callerMustSupply: true` são
            obrigatórias: uma ausente ou em branco falha com 422
            `BRIDGE_TEMPLATE_0007`. As demais são opcionais, e um valor enviado
            para uma substitui o valor por contato para todos os contatos da
            conversa. Uma chave que não é uma variável do template, ou qualquer
            chave quando o template não aceita parâmetros, falha com 422
            `BRIDGE_TEMPLATE_0010`. Um valor que descumpre as regras do WhatsApp
            falha com 422 `BRIDGE_TEMPLATE_0009`. Ausente e `{}` são a mesma
            requisição. No máximo 50 parâmetros, com chaves de até 128
            caracteres e valores de até 1.024 caracteres.
          examples:
            - delivery_date: 3 de octubre
              order_number: A-10492
        media:
          anyOf:
            - $ref: '#/components/schemas/SendTemplateMedia'
            - type: 'null'
          title: Header Media
          description: >-
            O arquivo enviado como cabeçalho do template (a imagem, o vídeo, o
            GIF ou o documento PDF exibido no topo da mensagem), no lugar do
            cabeçalho configurado no template. Envie seu `type` e `mediaId`
            (faça o upload primeiro com `POST
            /bridge/api/v1/workspaces/{workspaceId}/files`; veja [Enviar um
            anexo](/pt-br/guides/send-attachments)) ou `url`. Com `url`, o
            Bridge baixa o arquivo de forma assíncrona: o resultado do download
            não faz parte da resposta 201, e um download que falha não é
            informado nela. Se você omitir `media`, sai o cabeçalho configurado
            no template. Falha com 422 `BRIDGE_TEMPLATE_0011` quando o template
            não tem cabeçalho de mídia, e com 422 `BRIDGE_TEMPLATE_0012` quando
            `type` (ou o tipo do arquivo enviado) não é o do cabeçalho. Um
            `mediaId` que não é um arquivo do workspace falha com 404
            `BRIDGE_PRELOAD_FILE_0001 | PRELOAD_FILE_NOT_FOUND`, e um que ainda
            não pode ser usado (está sendo enviado ou teve o upload cancelado),
            com 400 `BRIDGE_PRELOAD_FILE_0002 | PRELOAD_FILE_IS_PENDING`. Um
            template com um cabeçalho de mídia (imagem, vídeo, GIF ou documento)
            que não tem arquivo configurado precisa de `media`: sem ele, a
            requisição falha com 422 `BRIDGE_TEMPLATE_0013`. O WhatsApp ainda
            pode recusar, depois do 201, um arquivo que ultrapasse os limites
            dele para um cabeçalho.
      additionalProperties: false
      type: object
      required:
        - id
      title: SendTemplateRef
      description: >-
        O template de provedor a enviar, buscado por seu `id`, e os valores de
        suas variáveis.
    SendTemplateMedia:
      properties:
        type:
          $ref: '#/components/schemas/HeaderFileType'
          title: Media Type
          description: >-
            O tipo de arquivo: `IMAGE`, `VIDEO`, `GIF` ou `DOCUMENT`. Deve ser o
            tipo do cabeçalho do template (o arquivo exibido no topo da
            mensagem), no idioma do template e no de cada contato; caso
            contrário, a requisição falha com 422 `BRIDGE_TEMPLATE_0012`. Com
            `mediaId`, o arquivo enviado também deve ter esse tipo. Um cabeçalho
            `DOCUMENT` deve ser um PDF: um arquivo enviado de outro formato de
            documento falha com 422 `BRIDGE_TEMPLATE_0012`, e uma `url` que não
            seja um PDF não é verificada antes do download.
          examples:
            - IMAGE
        mediaId:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Media Identifier
          description: >-
            O `mediaId` que `POST /bridge/api/v1/workspaces/{workspaceId}/files`
            devolveu para o arquivo, depois que o upload terminou. O arquivo
            deve pertencer ao workspace. Envie `mediaId` ou `url`, não ambos.
          examples:
            - 9b2f6a52-1f3c-4a53-8f58-3c6a2e7d1b10
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Media URL
          description: >-
            Uma URL `https` pública do arquivo. O Bridge a baixa de forma
            assíncrona: o resultado do download não faz parte da resposta 201,
            então um download que falha não é informado nela. Envie `mediaId` ou
            `url`, não ambos.
          examples:
            - https://cdn.example.com/promo/spring-sale.png
      additionalProperties: false
      type: object
      required:
        - type
      title: SendTemplateMedia
      description: >-
        A imagem, o vídeo, o GIF ou o documento PDF exibido no topo da mensagem
        do template: seu `type` e exatamente uma fonte.


        A fonte é `mediaId` (um arquivo já enviado ao Bridge) ou `url` (um
        arquivo que o Bridge baixa).
    HeaderFileType:
      type: string
      enum:
        - IMAGE
        - VIDEO
        - GIF
        - DOCUMENT
      title: HeaderFileType
  securitySchemes:
    x-api-key:
      type: apiKey
      description: Copie a chave de API como fornecida pelo Bridge Console.
      in: header
      name: x-api-key

````

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