Restream API Authentication (OAuth 2.0)
The Restream API uses OAuth 2.0 for authentication. Your application redirects the user to Restream to grant access, receives an authorization code, and exchanges it for an access token used to call protected endpoints.
Read the Authentication Overview for the full walkthrough, including scopes and token lifetimes.
The OAuth 2.0 flow
- Overview — How OAuth 2.0 works with Restream, including scopes.
- Authorize Dialog — Redirect users to grant your app access.
- Capture the Code — Receive the authorization code on your redirect URI.
- Code Exchange — Exchange the code for an access token.
- Refreshing Tokens — Keep access alive with refresh tokens.
- Revoking Tokens — Invalidate tokens when access is no longer needed.