# Get agent

Returns one agent with its budget, mandate, credentials, cards, wallets, plans and runtime. Console session or API key with payment:read.

`GET /v1/agents/{id}`

Returns one agent with its budget, mandate, credentials, cards, wallets, plans and runtime. Console session or API key with payment:read.

Requires permission `payment:read`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Agent id (agt_...). |

## Responses

- **200**: Success.
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "agent": {
    "id": "agt_01m7dmxx5b0jc1gcgw6sgeaqf3",
    "name": "Research Agent",
    "status": "active",
    "kind": "cloud",
    "rails": [
      "x402",
      "wdk_direct"
    ],
    "team": {
      "id": "team_01m7dmxx43vkd5ezrghf9m2ytw",
      "name": "Research"
    },
    "team_id": "team_01m7dmxx43vkd5ezrghf9m2ytw",
    "mandate_id": null,
    "mandate": {
      "id": "mdt_01m7dmxx4s2aw9p40vyaxmzdtf",
      "version": 4,
      "name": "Demo: research agent",
      "status": "active",
      "expires_at": "2026-11-28T23:59:59Z",
      "limits": {
        "hard_cap": 500000,
        "plan_hard_cap": 1500000,
        "auto_threshold": 100000,
        "card_hard_cap_cents": 2500,
        "unknown_merchant_limit": 100000,
        "card_auto_threshold_cents": 500
      },
      "allowed_rails": [
        "x402",
        "wdk_direct"
      ]
    },
    "budget": {
      "id": "bud_01m7dmxx65qkskxx1dqm3716p1",
      "limit": "5000000",
      "committed": "1600000",
      "spent": "1600000",
      "reserved": "0",
      "available": "3400000",
      "asset": "USDC"
    },
    "last_activity_at": "2026-11-14T18:44:17.771552Z",
    "frozen_reason": null,
    "revoked_at": null,
    "created_at": "2026-11-14T18:25:47.180051Z"
  },
  "budget": {
    "id": "bud_01m7dmxx65qkskxx1dqm3716p1",
    "limit": "5000000",
    "committed": "1600000",
    "spent": "1600000",
    "reserved": "0",
    "available": "3400000",
    "asset": "USDC"
  },
  "mandate": {
    "id": "mdt_01m7dmxx4s2aw9p40vyaxmzdtf",
    "version": 4,
    "name": "Demo: research agent",
    "status": "active",
    "expires_at": "2026-11-28T23:59:59Z",
    "limits": {
      "hard_cap": 500000,
      "plan_hard_cap": 1500000,
      "auto_threshold": 100000,
      "card_hard_cap_cents": 2500,
      "unknown_merchant_limit": 100000,
      "card_auto_threshold_cents": 500
    },
    "allowed_rails": [
      "x402",
      "wdk_direct"
    ]
  },
  "credentials": [
    {
      "id": "cred_01m7dmxx5e6tjf98208qr0m19y",
      "prefix": "agk_test_...REDACTED",
      "status": "active",
      "expires_at": null,
      "last_used_at": "2026-11-14T18:58:30.262269Z",
      "created_at": "2026-11-14T18:25:47.205937Z",
      "revoked_at": null
    }
  ],
  "cards": {
    "total": 0,
    "active": 0
  },
  "wallets": {
    "total": 4,
    "with_balance": 2,
    "balance_base_units": "100000"
  },
  "plans": {
    "total": 1,
    "active": 0
  }
}
```
