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

# List Connected AI Agents

> Connected AI agents (MCP OAuth tokens) for the authenticated customer.

List the agents currently connected to your account, retrieve the details
of a specific one, or disconnect any of them. Disconnecting an agent
immediately revokes the access and refresh tokens it was issued, so the
agent loses access on its next request.



## OpenAPI

````yaml /openapi.json get /api/private/mcp-agents/
openapi: 3.0.3
info:
  title: Digital Surge API
  version: '2.0'
  description: >-
    Digital Surge is an Australian cryptocurrency exchange. This API provides
    programmatic access to your account: live AUD pricing for hundreds of
    assets, instant swaps, recurring buys, price triggers, portfolio balances,
    transaction history, and crypto withdrawals.


    **Authentication** — create an API key in the Digital Surge app under
    *Account Settings → API Keys* and send it with every request:
    `Authorization: Bearer <your-api-key>`. Read-only and read & write keys are
    available.


    **Guides and interactive documentation** — https://digitalsurge.com.au/docs


    **AI agents** — connect via the Digital Surge MCP server:
    https://mcp.digitalsurge.com.au/mcp
servers:
  - url: https://app.digitalsurge.com.au
    description: Production
security: []
tags:
  - name: Public
    description: Unauthenticated endpoints — market data, asset info, pricing
  - name: Private
    description: Authenticated endpoints — trading, portfolio, account management
paths:
  /api/private/mcp-agents/:
    get:
      tags:
        - Private
      summary: List Connected AI Agents
      description: >-
        Connected AI agents (MCP OAuth tokens) for the authenticated customer.


        List the agents currently connected to your account, retrieve the
        details

        of a specific one, or disconnect any of them. Disconnecting an agent

        immediately revokes the access and refresh tokens it was issued, so the

        agent loses access on its next request.
      operationId: private_mcp_agents_list
      parameters:
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedMCPAgentList'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    PaginatedMCPAgentList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/MCPAgent'
    MCPAgent:
      type: object
      description: |-
        Read-only customer-facing view of a connected MCP AI agent — one
        AccessToken issued under the MCP OAuth Application. Surfaces the
        decoded agent name from the ``ua:`` scope token; never exposes the
        access token itself, the refresh token, or the raw scope string.
      properties:
        id:
          type: integer
          readOnly: true
        agent_name:
          type: string
          readOnly: true
          nullable: true
        created:
          type: string
          format: date-time
          readOnly: true
        expires:
          type: string
          format: date-time
          readOnly: true
      required:
        - agent_name
        - created
        - expires
        - id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal API key, created in the Digital Surge app under Account
        Settings → API Keys. Send it with every request as `Authorization:
        Bearer <your-api-key>`.

````