All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
corporate_master_account_get | GET /corporate/masterAccount | Get the details of requested master account |
corporate_sub_account_get | GET /corporate/subAccount | Get the list of all the sub-accounts of the master account. |
corporate_sub_account_id_delete | DELETE /corporate/subAccount/{id} | Delete a sub-account |
corporate_sub_account_id_get | GET /corporate/subAccount/{id} | Get sub-account details |
corporate_sub_account_id_plan_put | PUT /corporate/subAccount/{id}/plan | Update sub-account plan |
corporate_sub_account_key_post | POST /corporate/subAccount/key | Create an API key for a sub-account |
corporate_sub_account_post | POST /corporate/subAccount | Create a new sub-account under a master account. |
corporate_sub_account_sso_token_post | POST /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue |
MasterDetailsResponse corporate_master_account_get()
Get the details of requested master account
This endpoint will provide the details of the master account.
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
try:
# Get the details of requested master account
api_response = api_instance.corporate_master_account_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_master_account_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubAccountsResponse corporate_sub_account_get(offset, limit)
Get the list of all the sub-accounts of the master account.
This endpoint will provide the list all the sub-accounts of the master account.
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
offset = 56 # int | Index of the first sub-account in the page
limit = 56 # int | Number of sub-accounts to be displayed on each page
try:
# Get the list of all the sub-accounts of the master account.
api_response = api_instance.corporate_sub_account_get(offset, limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | Index of the first sub-account in the page | |
limit | int | Number of sub-accounts to be displayed on each page |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
corporate_sub_account_id_delete(id)
Delete a sub-account
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
id = 789 # int | Id of the sub-account organization to be deleted
try:
# Delete a sub-account
api_instance.corporate_sub_account_id_delete(id)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Id of the sub-account organization to be deleted |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubAccountDetailsResponse corporate_sub_account_id_get(id)
Get sub-account details
This endpoint will provide the details for the specified sub-account company
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
id = 789 # int | Id of the sub-account organization
try:
# Get sub-account details
api_response = api_instance.corporate_sub_account_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Id of the sub-account organization |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
corporate_sub_account_id_plan_put(id, update_plan_details)
Update sub-account plan
This endpoint will update the sub-account plan
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
id = 789 # int | Id of the sub-account organization
update_plan_details = sib_api_v3_sdk.SubAccountUpdatePlanRequest() # SubAccountUpdatePlanRequest | Values to update a sub-account plan
try:
# Update sub-account plan
api_instance.corporate_sub_account_id_plan_put(id, update_plan_details)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_id_plan_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Id of the sub-account organization | |
update_plan_details | SubAccountUpdatePlanRequest | Values to update a sub-account plan |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateApiKeyResponse corporate_sub_account_key_post(create_api_key_request)
Create an API key for a sub-account
This endpoint will generate an API v3 key for a sub account
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
create_api_key_request = sib_api_v3_sdk.CreateApiKeyRequest() # CreateApiKeyRequest | Values to generate API key for sub-account
try:
# Create an API key for a sub-account
api_response = api_instance.corporate_sub_account_key_post(create_api_key_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_key_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_api_key_request | CreateApiKeyRequest | Values to generate API key for sub-account |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubAccountResponse corporate_sub_account_post(sub_account_create)
Create a new sub-account under a master account.
This endpoint will create a new sub-account under a master account
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
sub_account_create = sib_api_v3_sdk.CreateSubAccount() # CreateSubAccount | values to create new sub-account
try:
# Create a new sub-account under a master account.
api_response = api_instance.corporate_sub_account_post(sub_account_create)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sub_account_create | CreateSubAccount | values to create new sub-account |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetSsoToken corporate_sub_account_sso_token_post(sso_token_request)
Generate SSO token to access Sendinblue
This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
from __future__ import print_function
import time
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration))
sso_token_request = sib_api_v3_sdk.SsoTokenRequest() # SsoTokenRequest | Values to generate SSO token for sub-account
try:
# Generate SSO token to access Sendinblue
api_response = api_instance.corporate_sub_account_sso_token_post(sso_token_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasterAccountApi->corporate_sub_account_sso_token_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sso_token_request | SsoTokenRequest | Values to generate SSO token for sub-account |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]