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

# Disconnect AI Agent

> 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 delete /api/private/mcp-agents/{id}/
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/{id}/:
    delete:
      tags:
        - Private
      summary: Disconnect AI Agent
      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_destroy
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this access token.
          required: true
      responses:
        '204':
          description: No response body
      security:
        - bearerAuth: []
components:
  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>`.

````