Skip to content

Who the caller is, and what their roles let them do​

GET
/api/me

The caller's identity (user is the key of what they own: the e-mail, lower-cased), the roles that count (the roles of the credential that auth.roles defines, or auth.defaultRole when none is), what those roles grant (permissions, each with its scope where it has one) and the agents agent.read and agent.invoke are about (["*"] for every agent; these are the patterns of the roles' agents, and do not say the audience of an agent the platform's registry lists, which listAgents does: it is filtered by it). A client uses it to show what its person may do and to hide what they may not; it is never a check: the orchestrator enforces every request whatever a client shows. It is the one operation that answers a person whose roles grant nothing (roles and permissions are then empty), so that a client can say why every other operation is a 403. Never cached.

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)

Responses​

The caller

JSON
{
  
"user": "user@example.com",
  
"email": "user@example.com",
  
"name": "Example User",
  
"roles": [
  
  
"user"
  
],
  
"permissions": [
  
  
{
  
  
  
"permission": "agent.read"
  
  
},
  
  
{
  
  
  
"permission": "agent.invoke"
  
  
},
  
  
{
  
  
  
"permission": "thread.read",
  
  
  
"scope": "own"
  
  
},
  
  
{
  
  
  
"permission": "thread.write",
  
  
  
"scope": "own"
  
  
},
  
  
{
  
  
  
"permission": "thread.share"
  
  
}
  
],
  
"agents": {
  
  
"read": [
  
  
  
"*"
  
  
],
  
  
"invoke": [
  
  
  
"*"
  
  
]
  
},
  
"sharing": "internal",
  
"maxTier": "auto"
}

Samples​

Powered by VitePress OpenAPI