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

# Get Oauth Link



## OpenAPI

````yaml /api-reference/openapi.json get /v1/mcp-oauth-links/{link_id}
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/mcp-oauth-links/{link_id}:
    get:
      tags:
        - v1
        - protected
        - mcp-oauth-links
      summary: Get Oauth Link
      operationId: get_oauth_link_v1_mcp_oauth_links__link_id__get
      parameters:
        - in: path
          name: link_id
          required: true
          schema:
            format: uuid
            title: Link Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthLinkResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    OAuthLinkResponse:
      properties:
        access_control:
          title: Access Control
          type: string
        access_count:
          title: Access Count
          type: integer
        created_at:
          title: Created At
          type: string
        expires_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Expires At
        id:
          format: uuid
          title: Id
          type: string
        is_active:
          title: Is Active
          type: boolean
        last_accessed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Accessed At
        mcp_instance_id:
          format: uuid
          title: Mcp Instance Id
          type: string
        token:
          title: Token
          type: string
      required:
        - id
        - mcp_instance_id
        - token
        - access_control
        - is_active
        - expires_at
        - access_count
        - last_accessed_at
        - created_at
      title: OAuthLinkResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````