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

# Create a WhatsApp Cloud inbox from credentials

> Creates the inbox with the given credentials and tries to register the webhook. The inbox is created even when the webhook registration fails, and `webhook_error` says why.



## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/whatsapp/manual/connect
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/manual/connect:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Inboxes
      summary: Create a WhatsApp Cloud inbox from credentials
      description: >-
        Creates the inbox with the given credentials and tries to register the
        webhook. The inbox is created even when the webhook registration fails,
        and `webhook_error` says why.
      operationId: connect-whatsapp-manual-setup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/whatsapp_manual_connect_payload'
            example:
              waba_id: '104938562847362'
              phone_number_id: '118273645098234'
              access_token: EAAG7ZChZBx0YBO...
              inbox_name: WhatsApp Support
      responses:
        '201':
          description: Inbox created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  name:
                    type: string
                  number_access:
                    type: boolean
                  template_access:
                    type: boolean
                  webhook_setup:
                    type: boolean
                  webhook_error:
                    type:
                      - string
                      - 'null'
              example:
                id: 1
                name: Sample resource
                number_access: true
                template_access: true
                webhook_setup: true
                webhook_error: Sample text
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '422':
          description: >-
            The credentials were refused, or the inbox limit of the account was
            reached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  attributes:
                    type: array
                    items:
                      type: string
              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
  schemas:
    whatsapp_manual_connect_payload:
      type: object
      required:
        - waba_id
        - phone_number_id
        - access_token
      description: Credentials of a WhatsApp Cloud number plus the name to give the inbox.
      properties:
        waba_id:
          type: string
          example: '104938562847362'
        phone_number_id:
          type: string
          example: '118273645098234'
        access_token:
          type: string
          example: EAAG7ZChZBx0YBO...
        inbox_name:
          type: string
          description: >-
            Name of the inbox to create. Defaults to the name of the phone
            number.
          example: WhatsApp Support
  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.