Disconnect AI Agent
curl --request DELETE \
--url https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Private
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.
DELETE
/
api
/
private
/
mcp-agents
/
{id}
/
Disconnect AI Agent
curl --request DELETE \
--url https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
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>.
Path Parameters
A unique integer value identifying this access token.
Response
204
No response body