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

# Start OAuth authorization code flow

> Validates request parameters and redirects to login or client redirect URI with authorization code.



## OpenAPI

````yaml /openapi/application.json get /oauth/mcp/{account_id}/authorize
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}/authorize:
    parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
        example: sample
    get:
      tags:
        - MCP
      summary: Start OAuth authorization code flow
      description: >-
        Validates request parameters and redirects to login or client redirect
        URI with authorization code.
      operationId: get-oauth-mcp-account-id-authorize
      parameters:
        - in: query
          name: client_id
          required: true
          schema:
            type: string
          example: sample
        - in: query
          name: response_type
          required: true
          schema:
            type: string
            enum:
              - code
          example: sample
        - in: query
          name: redirect_uri
          required: true
          schema:
            type: string
            format: uri
          example: sample
        - in: query
          name: scope
          required: false
          schema:
            type: string
            example: mcp.read mcp.write
          example: sample
        - in: query
          name: state
          required: false
          schema:
            type: string
          example: sample
        - in: query
          name: code_challenge
          required: false
          schema:
            type: string
          example: sample
        - in: query
          name: code_challenge_method
          required: false
          schema:
            type: string
            enum:
              - S256
              - plain
          example: sample
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Successful response payload. The exact fields depend on the
                  endpoint.
                additionalProperties: true
              example:
                data:
                  - id: 1
                    name: Sample Authorize
                    status: active
                    created_at: '2026-05-20T12:00:00Z'
                meta:
                  count: 1
                  current_page: 1
        '302':
          description: Redirects to login or to client redirect URI with authorization code
          headers:
            Location:
              description: Redirect URL
              schema:
                type: string
                format: uri
                example: https://client.example.com/callback?code=abc123&state=xyz
        '400':
          description: Invalid OAuth authorization request
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - error_description
                properties:
                  error:
                    type: string
                  error_description:
                    type: string
              example:
                error: invalid_request
                error_description: redirect_uri is required
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: You are not authorized to do this action
      security: []

````

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