---
title: "Get a connection's team binding"
method: GET
path: "/me/connection"
tags: ["Account"]
---

# Get a connection's team binding

`GET /me/connection`

## Request

- Base URL: `https://api.varg.ai/v2`
- URL: `https://api.varg.ai/v2/me/connection`
- Auth: HTTP bearer

Returns which team (and default folder) an OAuth connection works in. Call it with a connected-app
token to read that connection's own binding; an app session must pass `client_id`.
A connected app can only address itself. API keys have no connection and get 400.

## Query parameters

- `client_id` string

## Response `200`

The binding, re-validated against current team membership

- AccountConnection: Which team and default folder an OAuth connection works in.
  - `client_id` string, required
  - `team_id` string, nullable, required: Null means the personal account.
  - `team_slug` string, nullable, required
  - `team_name` string, nullable, required
  - `team_owner` boolean, required: True when the user owns the bound team (owners manage its API keys; members only spend).
  - `workspace_id` string, nullable, required: Default folder for the connection, if any.
  - `status` 'ok' | 'no_team_access', required: `ok` means the binding is usable (`team_id: null` is the normal personal case). `no_team_access` means the user can no longer act in the bound team; clients should refuse to generate rather than fall back to the personal balance.

## Other responses

- `400`: API key used, or `client_id` missing for an app session (`invalid_request`)
- `401`: Missing or invalid API key / JWT
- `403`: A connected app asked about another client (`forbidden`)
- `503`: The binding could not be read (`binding_unavailable`). Retry after the `Retry-After` interval.

## Changes

- **2026-10-20** `43bcf5ea398d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/me/connection/get.md)

---

[API](https://skmtc.dev/varg/apis/varg-api.md) · [All operations](https://skmtc.dev/varg/apis/varg-api/llms.txt) · [OpenAPI document](https://skmtc.dev/varg/apis/varg-api/revisions/09d49a6d852f?raw)
