Skip to navigation

Generate SSO token to access sub-account

View as Markdown

This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

OR
AuthorizationBearer

OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app's client_id/client_secret for a short-lived Bearer token.

Request

This endpoint expects an object.
idlongRequired

Id of the sub-account organization

emailstringOptional

User email of sub-account organization

targetenumOptional

Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Senders after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login

urlstringOptional
Set the full target URL after login success. The user will land directly on this target URL after login

Response

Session token
tokenstring
Session token, it will remain valid for 15 days.

Errors

400
Bad Request Error
403
Forbidden Error