---
title: "Generate SSO token to access sub-account"
method: POST
path: "/corporate/subAccount/ssoToken"
tags: ["Master account"]
---

# Generate SSO token to access sub-account

`POST /corporate/subAccount/ssoToken`

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.

## Request body

- SsoTokenRequest
  - `id` integer, required — Id of the sub-account organization
  - `email` string — User email of sub-account organization
  - `target` 'automation' | 'email_campaign' | 'contacts' | 'landing_pages' | 'email_transactional' | 'senders' | 'sms_campaign' | 'sms_transactional' — 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 Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login
  - `url` string — Set the full target URL after login success. The user will land directly on this target URL after login

## Response `200`

Session token

- GetSsoToken
  - `token` string, required — Session token, it will remain valid for 15 days.

## Other responses

- `400` — bad request
- `403` — Current account is not a master account

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
