/api/v1/meGet the signed-in account and every household it belongs to
Parametre
Ingen parametre
Svar
- 200OK
application/jsonMeResponse- 401No session, or the session is no longer valid.
application/problem+jsonProblemDetails- 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- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Hoder
Retry-After- — Seconds to wait when a rate limit answered, 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.
Eksempel
curl -b "bryti_session=…" \
"https://bryti.app/api/v1/me"Eksempel på svar
application/json{
"user": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email": "string",
"displayName": "string"
},
"memberships": [
{
"householdId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"householdName": "string",
"role": {},
"memberId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"isPlatformAdmin": false,
"emailConfirmed": true,
"hasPassword": true
}