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

# Create Meta number (Cloud API)

> Manual Meta Cloud API onboarding: you already own the WABA + system-user token and pass the credentials directly. Returns the created number + the webhook URL/verifyToken you must configure in your Meta app. (No credentials yet? Use /api/v1/numbers/remote-pairing with provider=META.)



## OpenAPI

````yaml openapi.json POST /v1/numbers/meta
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/numbers/meta:
    post:
      tags:
        - Numbers
      summary: Create Meta number (Cloud API)
      description: >-
        Manual Meta Cloud API onboarding: you already own the WABA + system-user
        token and pass the credentials directly. Returns the created number +
        the webhook URL/verifyToken you must configure in your Meta app. (No
        credentials yet? Use /api/v1/numbers/remote-pairing with provider=META.)
      operationId: post_numbers_meta
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Display name for the number.
                  example: Atendimento
                number:
                  type: string
                  description: Phone number (min 8 digits, optional +).
                  example: '5511999999999'
                metaPhoneId:
                  type: string
                  description: Meta Cloud API Phone Number ID.
                  example: '123456789012345'
                metaWabaId:
                  type: string
                  description: WhatsApp Business Account (WABA) ID.
                  example: '987654321098765'
                metaAccessToken:
                  type: string
                  description: System-user access token.
                  example: EAAG...
                metaAppSecret:
                  type: string
                  description: Meta app App Secret.
                  example: a1b2c3...
                metaAppId:
                  type: string
                  description: Meta app App ID.
                  example: '100200300400500'
                linkToApiKey:
                  type: boolean
                  description: Link the number to the calling API key (default true).
                  example: 'true'
              required:
                - name
                - number
                - metaPhoneId
                - metaWabaId
                - metaAccessToken
                - metaAppSecret
                - metaAppId
            example:
              name: Atendimento
              number: '5511999999999'
              metaPhoneId: '123456789012345'
              metaWabaId: '987654321098765'
              metaAccessToken: EAAG...
              metaAppSecret: a1b2c3...
              metaAppId: '100200300400500'
      responses:
        '201':
          description: Create Meta number
          content:
            application/json:
              example:
                number:
                  id: num_01HZX...
                  number: '5511999999999'
                  name: Atendimento
                  provider: META
                  metaPhoneId: '123456789012345'
                  metaWabaId: '987654321098765'
                  isFullyConnected: true
                  createdAt: '2026-06-20T10:00:00.000Z'
                webhook:
                  url: https://webhook.pilotstatus.com.br/meta
                  verifyToken: ps_meta_verify_...
                linkedApiKeyId: key_01HZX...
        '400':
          description: Invalid payload or parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '409':
          description: Number already exists
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Number already exists
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````