curl --request GET \
--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.get(url, headers=headers)
print(response.text)const options = {method: 'GET', 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));{
"id": 123,
"agent_name": "<string>",
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
}Get Connected 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.
curl --request GET \
--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.get(url, headers=headers)
print(response.text)const options = {method: 'GET', 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));{
"id": 123,
"agent_name": "<string>",
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
}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
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.