Skip to main content
GET
/
api
/
private
/
mcp-agents
/
{id}
/
Get Connected AI Agent
curl --request GET \
  --url https://app.digitalsurge.com.au/api/private/mcp-agents/{id}/ \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "agent_name": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "expires": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

id
integer
required

A unique integer value identifying this access token.

Response

200 - application/json

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.

id
integer
required
read-only
agent_name
string | null
required
read-only
created
string<date-time>
required
read-only
expires
string<date-time>
required
read-only