Skip to main content

Initiate OAuth login flow

POST 

/v1/oauth/login

Initiates OAuth authentication flow for email service providers (Gmail, Outlook, etc.) to configure email sending/receiving capabilities. Can handle both new OAuth flows and token exchange flows.

Request

Body

required

OAuth login request payload

    app_id stringrequired
    exchange_token boolean
    include_sent boolean
    include_spam boolean
    include_trash boolean
    mailer_id string
    redirect_uri string
    state string
    strict_replies boolean

    token

    object

    access_token string
    expires_in integer
    id_token string
    refresh_token string
    scope string
    token_type string
    type string

    webhook

    object

    headers object
    method string
    url string

Responses

OAuth login initiated successfully - returns authorization URL

Schema

    success boolean
    url string
Loading...