Auth API reference

Auth API · Consumer-Agent-Access

get/{app_slug}/v1/me/agent-grantsAuth

List the signed-in user's connected agents

Live connections only (not revoked, not expired), newest first, at most 200. Show them on an "AI agents" or "Authorized apps" settings page with a Disconnect button.

Path parameters

app_slug*string

The app slug.

Query parameters

resourcestring

Only connections to this resource.

Response · 200 The connections.

data*array

Live connections, newest first.

pagination*object

Pagination (bounded list).

Example

Request

GET https://api.auth.productcraft.co/{app_slug}/v1/me/agent-grants
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "agr_9xY…",
      "client_id": "string",
      "client_name": "Claude Code",
      "client_verified": false,
      "resource": "https://mcp.example.com/mcp",
      "scopes": [
        "string"
      ],
      "context": {},
      "created_at": "2026-01-01T00:00:00.000Z",
      "last_used_at": "2026-01-01T00:00:00.000Z",
      "expires_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {}
}