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

# Request WhatsApp ownership verification code

> Requests an SMS or voice ownership verification code for an existing inbox. A verified phone returns status verified without sending a new code. Submit received codes to verify_code, never as a registration PIN. Requires inbox update permission.



## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/whatsapp/phone_registrations/request_code
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/whatsapp/phone_registrations/request_code:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Inboxes
      summary: Request WhatsApp ownership verification code
      description: >-
        Requests an SMS or voice ownership verification code for an existing
        inbox. A verified phone returns status verified without sending a new
        code. Submit received codes to verify_code, never as a registration PIN.
        Requires inbox update permission.
      operationId: >-
        post-api-v1-accounts-account-id-whatsapp-phone-registrations-request-code
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - inbox_id
              properties:
                inbox_id:
                  type: integer
                  example: 1
                code_method:
                  type: string
                  enum:
                    - SMS
                    - VOICE
                  default: SMS
                language:
                  type: string
                  example: en_US
            example:
              inbox_id: 1
              code_method: SMS
              language: en_US
      responses:
        '200':
          description: Operation completed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  status:
                    type: string
                  message:
                    type: string
              example:
                success: true
                status: code_sent
                message: Verification code sent
        '401':
          description: Authentication or inbox update permission required
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Account API access disabled
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '404':
          description: Inbox not found in this account
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Resource not found
        '422':
          description: Invalid input, unsupported channel, or Meta rejection
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  error_code:
                    type: string
                  can_request_new_code:
                    type: boolean
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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