POST/oauth/tokenNo session needed
Trade an authorization code or a refresh token for tokens, as a public client or with private_key_jwt
Public, form-encoded. authorization_code needs the PKCE verifier and the same client_id and redirect_uri; refresh_token rotates, and a rotated token used again revokes the whole grant. A client whose metadata document publishes a jwks_uri may also send client_assertion_type (jwt-bearer) and a client_assertion signed RS256 or ES256 (private_key_jwt, RFC 7523): iss and sub the client_id, aud the token endpoint, exp required, jti once; one that offers only private_key_jwt must. 400 with an RFC 6749 error (invalid_client, invalid_grant, invalid_request, invalid_target, unsupported_grant_type); a JSON body is invalid_request. 300 a minute per address, and 30 failed exchanges a minute per registered client_id — a valid code or refresh token is never held by them (a metadata-URL client_id is shared by every member, so it has no bucket of its own); past that 429 temporarily_unavailable with Retry-After. Cache-Control: no-store.
Responses
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl \
-X POST \
"https://bryti.app/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d '{"grant_type":"string","code":"string","code_verifier":"string","redirect_uri":"string","client_id":"string","resource":"string","refresh_token":"string","client_assertion_type":"string","client_assertion":"string"}'
Example response
200application/json
{
"access_token": "string",
"token_type": "string",
"expires_in": 0,
"refresh_token": "string",
"scope": "string"
}
POST/oauth/revokeNo session needed
Let an assistant hand a token back (RFC 7009)
Public, form-encoded: token, client_id, and token_type_hint if the client likes. A refresh token ends the whole connection and every token under it; an access token ends only itself. Always 200 with an empty body, whether or not the token existed or belonged to this client_id, so nobody learns which tokens exist. 400 unsupported_token_type for a hint other than access_token or refresh_token, invalid_request without token or client_id. Cache-Control: no-store.
Responses
- 200OK
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl \
-X POST \
"https://bryti.app/oauth/revoke" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d '{"token":"string","token_type_hint":"string","client_id":"string"}'
GET/api/v1/agent-access/requests/{requestId}
Show what an assistant asks to read, for the consent page
The signed-in member. The assistant's name, the host it sends the member back to, the scopes and the households the member may connect (junior households left out). 404 when unknown, expired or answered; 403 not_a_member when the member belongs to no household, junior_forbidden when the member is junior everywhere.
Responses
- 200OK
application/jsonAgentAccessRequestResponse- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 401No session, or the session is no longer valid.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 403Forbidden
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 404Not Found
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
- 503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl -b "bryti_session=…" \
"https://bryti.app/api/v1/agent-access/requests/3fa85f64-5717-4562-b3fc-2c963f66afa6"
Example response
200application/json
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientName": "string",
"clientId": "string",
"redirectHost": "string",
"scopes": [
"string"
],
"healthDataRequested": false,
"households": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"role": {},
"planCode": "free",
"assistant": "none"
}
],
"expiresAt": "2026-09-07T16:30:00Z",
"writeRequested": false
}
GET/api/v1/households/{householdId}/agent-access
List the assistants the member has connected to the household
Any member: her own connections. The owner: the whole household's, each other member's with grantedByName. Name, host, scopes, read or write access, when it was connected and when it last read anything, and the last three changes it made with a count for the last 90 days.
Responses
- 200OK
application/jsonAgentGrantResponse[]- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 401No session, or the session is no longer valid.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
- 503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl -b "bryti_session=…" \
"https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/agent-access"
Example response
200application/json
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientName": "string",
"clientHost": "string",
"scopes": [
"string"
],
"createdAt": "2026-09-07T16:30:00Z",
"lastUsedAt": "2026-09-07T16:30:00Z",
"grantedByName": "string",
"access": "read",
"activityCount": 0
}
]
GET/api/v1/households/{householdId}/agent-access/{grantId}/activity
List what a connected assistant changed in the household, as one list
The first 100 lines, newest first, as a plain list — the shape apps installed before the page read (ADR-838 (#5206)); new clients read …/activity/paged. Each line as there, a run of like shopping changes in a row as one line with its count. Any member for her own connections; the owner for anyone's. 404 for an unknown grant or one the caller may not see.
Responses
- 200OK
application/jsonAgentActivityResponse[]- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 401No session, or the session is no longer valid.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 404Not Found
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
- 503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl -b "bryti_session=…" \
"https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/agent-access/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity"
Example response
200application/json
[
{
"at": "2026-09-07T16:30:00Z",
"tool": "string",
"summary": "string",
"link": "string",
"count": 0
}
]
GET/api/v1/households/{householdId}/agent-access/{grantId}/activity/paged
List what a connected assistant changed in the household
A page at a time, newest first (ADR-752 (#5205)): when, which tool, Bryti's own sentence about it, where in the app it is, and how many changes the line stands for — a run of like shopping changes in a row is one line. ?limit= is 1–100, 30 by default; give a page's nextCursor back as ?cursor= for the next, null on the last. A cursor this list did not hand out is a 400. Any member for her own connections; the owner for anyone's. 404 for an unknown grant or one the caller may not see. On its own path because …/activity keeps the plain list an installed app reads (ADR-838 (#5206)).
Responses
- 200OK
application/jsonPagedAgentActivityResponse- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 400Bad Request
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 401No session, or the session is no longer valid.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 404Not Found
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
- 503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails- Headers
X-Trace-Id- — The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing- — Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics- — Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Example
curl -b "bryti_session=…" \
"https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/agent-access/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity/paged"
Example response
200application/json
{
"items": [
{
"at": "2026-09-07T16:30:00Z",
"tool": "string",
"summary": "string",
"link": "string",
"count": 0
}
],
"nextCursor": "string",
"total": 0
}