Raha Account API Documentation
Raha Account is the identity provider and account platform for Raha applications. It supports browser sign-in with OpenID Connect, OAuth token lifecycles, device authorization, account self-service, machine directory access, and administrative authorization.
Start here
- Register a developer application and its exact redirect URIs.
- Load
/.well-known/openid-configurationfrom the issuer. - Use Authorization Code with S256 PKCE for interactive sign-in.
- Validate issuer, audience, signature, expiry, state, and nonce.
- Send access tokens as
Authorization: Bearer {token}only to their intended audience.
API conventions
- Normal application APIs use
/api/v1; protocol endpoints use/api/oauth2without a version segment. - JSON request and response fields use
snake_caseon the HTTP wire. - Authentication and account responses are non-cacheable unless an endpoint explicitly says otherwise.
x-request-idmay be supplied by callers. Error responses exposex-reference-idfor support correlation.- Discover issuer endpoints instead of copying endpoint URLs between environments.