Skip to content

The caller's own team presets, as summaries​

GET
/api/teams

A person's saved teams (ADR 0074 decision 13, teams-v1.md). Presets are each person's own: nobody lists or reads another's. Summaries only (memberCount, no charter, no roles), ordered by id, bytewise. held is how many presets the caller owns. nextCursor is the id of the last preset of the page, sent back as cursor. Never cached. If getConfig has no teams, offer none.

Authorizations​

bearerToken

A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.

Type
HTTP (bearer)
or
dpopToken

A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".

Type
HTTP (DPoP)
or
proxyIdentity

Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.

Type
API Key (header: X-Auth-Request-Email)

Parameters​

Query Parameters

cursor

The nextCursor of the page before: a team id; anything else is 400 bad_cursor

Type
string

Responses​

One page of summaries

JSON
{
  
"limit": 0,
  
"held": 0,
  
"items": [
  
  
{
  
  
  
"id": "string",
  
  
  
"name": "string",
  
  
  
"title": "string",
  
  
  
"lead": "string",
  
  
  
"memberCount": 0,
  
  
  
"revision": "string",
  
  
  
"updatedAt": "2024-01-01T00:00:00Z"
  
  
}
  
],
  
"nextCursor": "string"
}

Samples​

Powered by VitePress OpenAPI