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

# Criar template

> Cria um novo template de mensagem para a instância.



## OpenAPI

````yaml openapi.evolution-v2.pt.json POST /template/create/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Camada de API do Pilot Status — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Autentique com o header
    `apikey` (sua chave `ps_` do Pilot Status). Endpoints de instância/sessão
    NÃO estão disponíveis na camada.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Chamada e Business
  - name: Chat
  - name: Grupo
  - name: Etiqueta (Label)
  - name: Mensagem
  - name: Perfil
  - name: Configurações e Proxy
  - name: Armazenamento (S3)
  - name: Template
paths:
  /template/create/{instance}:
    post:
      tags:
        - Template
      summary: Criar template
      description: Cria um novo template de mensagem para a instância.
      operationId: post__template_create_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: O nome de exibição do número no painel do Pilot Status.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Nome único do template (minúsculas, underscores).
                  example: order_confirmation
                category:
                  type: string
                  description: >-
                    Categoria do template: `AUTHENTICATION`, `MARKETING` ou
                    `UTILITY`.
                  example: UTILITY
                language:
                  type: string
                  description: 'Código de idioma/localidade (ex.: `pt_BR`, `en_US`).'
                  example: pt_BR
                components:
                  type: array
                  description: >-
                    Objetos de componente do template (cabeçalho, corpo, rodapé,
                    botões).
                  items:
                    type: object
                  example:
                    - type: BODY
                      text: Ola {{1}}, seu pedido {{2}} foi confirmado.
                allowCategoryChange:
                  type: boolean
                  description: Permite que a Meta reatribua a categoria durante a revisão.
                  example: true
                webhookUrl:
                  type: string
                  description: URL notificada sobre mudanças de status do template.
                  example: https://example.com/webhooks/template-status
              required:
                - name
                - category
                - language
                - components
      responses:
        '200':
          description: Sucesso — corpo de resposta nativo do provedor.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The persisted template record. Evolution registers the
                  template on the WhatsApp Business (Meta) API and stores the
                  returned metadata locally, returning the saved DB row.
                properties:
                  id:
                    type: string
                    description: Internal Evolution record id (cuid).
                  templateId:
                    type: string
                    description: >-
                      Meta message template id (HSM id) returned by the WhatsApp
                      Business API.
                  name:
                    type: string
                    description: Template name.
                  template:
                    type: object
                    description: >-
                      Raw response object returned by the Meta message_templates
                      create call.
                    properties:
                      id:
                        type: string
                        description: Meta template id.
                      status:
                        type: string
                        description: >-
                          Review status of the template (e.g. PENDING, APPROVED,
                          REJECTED).
                      category:
                        type: string
                        description: >-
                          Approved/assigned category (AUTHENTICATION, MARKETING,
                          UTILITY).
                  webhookUrl:
                    type:
                      - string
                      - 'null'
                    description: Optional webhook URL associated with the template.
                  createdAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Creation timestamp.
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last update timestamp.
                  instanceId:
                    type: string
                    description: Id of the instance that owns the template.
                required:
                  - id
                  - templateId
                  - name
                  - template
                  - instanceId
              example:
                id: clv8k2p9x0001qz9m3n4b5c6d
                templateId: '1234567890123456'
                name: order_confirmation
                template:
                  id: '1234567890123456'
                  status: PENDING
                  category: UTILITY
                webhookUrl: https://example.com/webhooks/templates
                createdAt: '2026-07-10T12:34:56.000Z'
                updatedAt: '2026-07-10T12:34:56.000Z'
                instanceId: b1f2c3d4-e5f6-7890-ab12-cd34ef567890
        default:
          description: Erro — erro do provedor ou da camada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````