All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
CorporateMasterAccountGet | GET /corporate/masterAccount | Get the details of requested master account |
CorporateSubAccountGet | GET /corporate/subAccount | Get the list of all the sub-accounts of the master account. |
CorporateSubAccountIdDelete | DELETE /corporate/subAccount/{id} | Delete a sub-account |
CorporateSubAccountIdGet | GET /corporate/subAccount/{id} | Get sub-account details |
CorporateSubAccountIdPlanPut | PUT /corporate/subAccount/{id}/plan | Update sub-account plan |
CorporateSubAccountKeyPost | POST /corporate/subAccount/key | Create an API key for a sub-account |
CorporateSubAccountPost | POST /corporate/subAccount | Create a new sub-account under a master account. |
CorporateSubAccountSsoTokenPost | POST /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue |
MasterDetailsResponse CorporateMasterAccountGet ()
Get the details of requested master account
This endpoint will provide the details of the master account.
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateMasterAccountGetExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
try
{
// Get the details of requested master account
MasterDetailsResponse result = apiInstance.CorporateMasterAccountGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateMasterAccountGet: " + e.Message );
}
}
}
}
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 CorporateSubAccountGet (int? offset, int? 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.
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountGetExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var offset = 56; // int? | Index of the first sub-account in the page
var 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.
SubAccountsResponse result = apiInstance.CorporateSubAccountGet(offset, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountGet: " + e.Message );
}
}
}
}
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]
void CorporateSubAccountIdDelete (long? id)
Delete a sub-account
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountIdDeleteExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var id = 789; // long? | Id of the sub-account organization to be deleted
try
{
// Delete a sub-account
apiInstance.CorporateSubAccountIdDelete(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | 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 CorporateSubAccountIdGet (long? id)
Get sub-account details
This endpoint will provide the details for the specified sub-account company
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountIdGetExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var id = 789; // long? | Id of the sub-account organization
try
{
// Get sub-account details
SubAccountDetailsResponse result = apiInstance.CorporateSubAccountIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | 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]
void CorporateSubAccountIdPlanPut (long? id, SubAccountUpdatePlanRequest updatePlanDetails)
Update sub-account plan
This endpoint will update the sub-account plan
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountIdPlanPutExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var id = 789; // long? | Id of the sub-account organization
var updatePlanDetails = new SubAccountUpdatePlanRequest(); // SubAccountUpdatePlanRequest | Values to update a sub-account plan
try
{
// Update sub-account plan
apiInstance.CorporateSubAccountIdPlanPut(id, updatePlanDetails);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountIdPlanPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | Id of the sub-account organization | |
updatePlanDetails | 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 CorporateSubAccountKeyPost (CreateApiKeyRequest createApiKeyRequest)
Create an API key for a sub-account
This endpoint will generate an API v3 key for a sub account
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountKeyPostExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var createApiKeyRequest = new CreateApiKeyRequest(); // CreateApiKeyRequest | Values to generate API key for sub-account
try
{
// Create an API key for a sub-account
CreateApiKeyResponse result = apiInstance.CorporateSubAccountKeyPost(createApiKeyRequest);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountKeyPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
createApiKeyRequest | 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 CorporateSubAccountPost (CreateSubAccount subAccountCreate)
Create a new sub-account under a master account.
This endpoint will create a new sub-account under a master account
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountPostExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var subAccountCreate = new CreateSubAccount(); // CreateSubAccount | values to create new sub-account
try
{
// Create a new sub-account under a master account.
CreateSubAccountResponse result = apiInstance.CorporateSubAccountPost(subAccountCreate);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subAccountCreate | 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 CorporateSubAccountSsoTokenPost (SsoTokenRequest ssoTokenRequest)
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.
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CorporateSubAccountSsoTokenPostExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new MasterAccountApi();
var ssoTokenRequest = new SsoTokenRequest(); // SsoTokenRequest | Values to generate SSO token for sub-account
try
{
// Generate SSO token to access Sendinblue
GetSsoToken result = apiInstance.CorporateSubAccountSsoTokenPost(ssoTokenRequest);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasterAccountApi.CorporateSubAccountSsoTokenPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ssoTokenRequest | 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]