Skip to main content
OAuth Sessions generate an OAuth URL that can be used to sign-in to Google and Microsoft senders. This enables programatically connecting these senders without going through EmailBison pages.

Workflow

Refer to the endpoints under the OAuth Sessions section in the API reference for full details.
1

Create an OAuth Session

Send a POST request to Create Google OAuth Session or Create Microsoft OAuth Session.This will return an oauth_session object, which includes: id, url, status.
2

Sign-in

Visit the url (or pass it on to your user(s)) and sign-in to the account.
3

Poll the Session

Send a GET request to View OAuth Session using the id. We recommend polling once every 5 seconds.Check the returned status until it changes from pending. Possible values are pending, success, failure and expired.