The flow
- Create the OAuth app in Settings → Developers.
- Send the user to the authorisation URL; they approve on Nushir’s side.
- Your app receives a token with a
pos_prefix. - Send it on the
Authorizationheader — raw, noBearer— exactly like an API key. The server resolves it to the granting organisation.
Scope
Apos_ token has the same reach into the granting organisation as an API key
has into yours: the whole surface. Ask users for access only when your product
genuinely needs it, and expect it to be revoked at any time.
Revocation
Users revoke a grant from their own developer settings; revoked tokens fail with401 immediately. Handle that as a normal state, not an error — prompt
the user to reconnect.