---
title: "The connection behind this key or token: its scopes, its caps and what it has spent today and this month."
method: GET
path: "/v1/connections/current"
tags: ["account"]
---

# The connection behind this key or token: its scopes, its caps and what it has spent today and this month.

`GET /v1/connections/current`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/connections/current`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`)

Any key or token can read its own; no scope is needed. This is what MCP `balance` uses to show an agent its cap. 404 `not_found` for a first-party session, which has no connection.

## Response `200`

OK

- ConnectionCurrentResponse
  - `connection` object, required
    - `id` string, required
    - `kind` 'oauth' | 'key' | 'app', required
    - `clientId` string, nullable, required
    - `clientName` string, required
    - `host` string, nullable, required
    - `scopes` string[], required
    - `capDailyPence` integer, required
    - `spentTodayPence` integer, required
    - `spentMonthPence` integer, required
    - `protocolVersion` string, nullable, required
    - `validatesIss` boolean, nullable, required
    - `createdAt` string, required
    - `lastUsedAt` string, nullable, required
    - `capMonthlyPence` integer, nullable
    - `capQuestionPence` integer, nullable
    - `teamId` string, nullable

## Other responses

- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
