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

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Crear plantilla

> Crea una plantilla de mensaje para aprobación de Meta.



## OpenAPI

````yaml openapi.meta.es.json POST /{wabaId}/message_templates
openapi: 3.1.0
info:
  title: Meta Cloud API Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer: Meta Cloud API (passthrough de WhatsApp Cloud API /
    Graph API). URL base `https://pilotstatus.com.br/api/layer/meta`. Llama a
    los nodos de Graph API exactamente como en `graph.facebook.com/<version>/`:
    Pilot cambia tu clave `ps_` por el token de sistema real de Meta del número.
    El prefijo de versión `vNN.N` es opcional (por defecto v22.0). La gestión de
    cuenta/negocio/autenticación y el (des)registro de números están bloqueados.
servers:
  - url: https://pilotstatus.com.br/api/layer/meta
security:
  - apiKey: []
tags:
  - name: Messages
  - name: Media
  - name: By id
  - name: Templates
  - name: Phone numbers
  - name: Business profile
  - name: Groups
  - name: Calls
paths:
  /{wabaId}/message_templates:
    post:
      tags:
        - Templates
      summary: Crear plantilla
      description: Crea una plantilla de mensaje para aprobación de Meta.
      operationId: post__wabaId_message_templates
      parameters:
        - name: wabaId
          in: path
          required: true
          schema:
            type: string
          description: Id de la WhatsApp Business Account de tu número.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Nombre de la plantilla (a–z, 0–9, _).
                  example: pedido_enviado
                language:
                  type: string
                  description: Código de idioma, p. ej. `pt_BR`.
                  example: pt_BR
                category:
                  type: string
                  description: Categoría de la plantilla.
                  enum:
                    - UTILITY
                    - MARKETING
                    - AUTHENTICATION
                  example: UTILITY
                components:
                  type: array
                  items:
                    type: object
                  description: Componentes HEADER / BODY / FOOTER / BUTTONS.
                  example:
                    - type: BODY
                      text: Ola {{1}}, seu pedido {{2}} foi enviado.
                    - type: BUTTONS
                      buttons:
                        - type: QUICK_REPLY
                          text: Acompanhar
                allow_category_change:
                  type: boolean
                  description: Permitir que Meta recategorice en la revisión.
              required:
                - name
                - language
                - category
                - components
      responses:
        '200':
          description: Respuesta de Meta Graph API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  category:
                    type: string
              example:
                id: '123456'
                status: PENDING
                category: UTILITY
        default:
          description: Meta Graph API error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error.
                      type:
                        type: string
                        description: e.g. `OAuthException`.
                      code:
                        type: integer
                      error_subcode:
                        type: integer
                      error_data:
                        type: object
                      fbtrace_id:
                        type: string
                description: Meta Graph API error envelope.
              example:
                error:
                  message: (#131030) Recipient phone number not in allowed list
                  type: OAuthException
                  code: 131030
                  fbtrace_id: A...
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Tu clave de API de Pilot Status (ps_...). También puedes enviar
        `Authorization: Bearer ps_...` o `?access_token=ps_...`.

````

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