Overview
These endpoints are used to authenticate to OAuth Apps you’ve created in Emailable. OAuth apps allow you to authenticate your users with Emailable and make API requests on their behalf.
Emailable supports two OAuth 2 grant flows:
- The Authorization Code flow for browser-based integrations that can receive a redirect.
- The Device Authorization Grant flow for CLIs, CI environments, SSH sessions, and other input-constrained clients that cannot easily open a browser or receive a redirect.
Both flows issue standard Bearer access tokens and refresh tokens. Once issued, the resulting tokens are interchangeable and API requests authenticate the same way regardless of which flow created them.
The device authorization grant must be enabled on each OAuth App from the app’s settings page. The Authorization Code grant is enabled by default, provided the app is configured with a redirect URI.
Errors are handled as specified by the OAuth 2 spec.