Oauth2
An OAuth access token, sent as Authorization: Bearer <token>. The
walkthrough of the whole flow is at
usecommune.dev/use-cases/build-an-integration:
discovery, registration, PKCE, the consent screen, the exchange, refresh
and revocation.
Ask for a family scope and the person picks which newsletter
the token reaches; ask for account:read alone and it reaches no
newsletter and reads only the account it belongs to.
Each operation lists the scopes a token must carry to call it. An operation that lists none takes any token.
Discover the URLs under flows at runtime from
GET /.well-known/oauth-authorization-server rather than hardcoding
them.
| Flow type | authorizationCode |
|---|---|
| Authorization URL | https://usecommune.com/api/oauth/authorize |
| Token URL | https://usecommune.com/api/oauth/token |
| Refresh URL | https://usecommune.com/api/oauth/token |
| Scopes |
|