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

# Register OAuth client

> Registers a new OAuth client for MCP access.



## OpenAPI

````yaml /openapi/application.json post /oauth/mcp/{account_id}/register
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:
  /oauth/mcp/{account_id}/register:
    parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
        example: sample
    post:
      tags:
        - MCP
      summary: Register OAuth client
      description: Registers a new OAuth client for MCP access.
      operationId: post-oauth-mcp-account-id-register
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - redirect_uris
              properties:
                client_name:
                  type: string
                redirect_uris:
                  type: array
                  items:
                    type: string
                    format: uri
                grant_types:
                  type: array
                  items:
                    type: string
                    enum:
                      - authorization_code
                      - refresh_token
                token_endpoint_auth_method:
                  type: string
                  enum:
                    - none
                    - client_secret_post
                    - client_secret_basic
            example:
              client_name: WiseApp MCP Desktop
              redirect_uris:
                - https://client.example.com/callback
              grant_types:
                - authorization_code
                - refresh_token
              token_endpoint_auth_method: none
      responses:
        '201':
          description: OAuth client registered
          content:
            application/json:
              schema:
                type: object
                required:
                  - client_id
                  - client_id_issued_at
                  - client_secret_expires_at
                  - client_name
                  - redirect_uris
                  - grant_types
                  - token_endpoint_auth_method
                properties:
                  client_id:
                    type: string
                  client_secret:
                    type: string
                    nullable: true
                  client_id_issued_at:
                    type: integer
                  client_secret_expires_at:
                    type: integer
                  client_name:
                    type: string
                  redirect_uris:
                    type: array
                    items:
                      type: string
                  grant_types:
                    type: array
                    items:
                      type: string
                  token_endpoint_auth_method:
                    type: string
              example:
                client_id: i8UpUOYutYF-9nq4E8hZ8L8JdPAHnDruVV6y1qYQO8k
                client_id_issued_at: 1716200000
                client_secret_expires_at: 0
                client_name: WiseApp MCP Desktop
                redirect_uris:
                  - https://client.example.com/callback
                grant_types:
                  - authorization_code
                  - refresh_token
                token_endpoint_auth_method: none
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Account is suspended
        '403':
          description: MCP feature disabled for the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: MCP server feature is not enabled for this account
        '422':
          description: Client registration validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  attributes:
                    type: array
                    items:
                      type: string
              example:
                message: Redirect uris must include at least one redirect URI
                attributes:
                  - redirect_uris
      security: []

````

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