All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
add_credits | POST /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account |
associate_ip_to_child | POST /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child |
create_reseller_child | POST /reseller/children | Creates a reseller child |
delete_reseller_child | DELETE /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied |
dissociate_ip_from_child | POST /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child |
get_child_info | GET /reseller/children/{childAuthKey} | Gets the info about a specific child account |
get_reseller_childs | GET /reseller/children | Gets the list of all reseller's children accounts |
remove_credits | POST /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account |
update_reseller_child | PUT /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied |
RemainingCreditModel add_credits(child_auth_key, add_credits)
Add Email and/or SMS credits to a specific child 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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
add_credits = sib_api_v3_sdk.AddCredits() # AddCredits | Values to post to add credit to a specific child account
try:
# Add Email and/or SMS credits to a specific child account
api_response = api_instance.add_credits(child_auth_key, add_credits)
pprint(api_response)
except ApiException as e:
print("Exception when calling ResellerApi->add_credits: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child | |
add_credits | AddCredits | Values to post to add credit to a specific child account |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
associate_ip_to_child(child_auth_key, ip)
Associate a dedicated IP to the child
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to associate
try:
# Associate a dedicated IP to the child
api_instance.associate_ip_to_child(child_auth_key, ip)
except ApiException as e:
print("Exception when calling ResellerApi->associate_ip_to_child: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child | |
ip | ManageIp | IP to associate |
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]
CreateReseller create_reseller_child(reseller_child=reseller_child)
Creates a reseller child
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
reseller_child = sib_api_v3_sdk.CreateChild() # CreateChild | reseller child to add (optional)
try:
# Creates a reseller child
api_response = api_instance.create_reseller_child(reseller_child=reseller_child)
pprint(api_response)
except ApiException as e:
print("Exception when calling ResellerApi->create_reseller_child: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
reseller_child | CreateChild | reseller child to add | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_reseller_child(child_auth_key)
Deletes a single reseller child based on the childAuthKey supplied
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
try:
# Deletes a single reseller child based on the childAuthKey supplied
api_instance.delete_reseller_child(child_auth_key)
except ApiException as e:
print("Exception when calling ResellerApi->delete_reseller_child: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child |
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]
dissociate_ip_from_child(child_auth_key, ip)
Dissociate a dedicated IP to the child
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to dissociate
try:
# Dissociate a dedicated IP to the child
api_instance.dissociate_ip_from_child(child_auth_key, ip)
except ApiException as e:
print("Exception when calling ResellerApi->dissociate_ip_from_child: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child | |
ip | ManageIp | IP to dissociate |
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]
GetChildInfo get_child_info(child_auth_key)
Gets the info about a specific child 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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
try:
# Gets the info about a specific child account
api_response = api_instance.get_child_info(child_auth_key)
pprint(api_response)
except ApiException as e:
print("Exception when calling ResellerApi->get_child_info: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetChildrenList get_reseller_childs()
Gets the list of all reseller's children accounts
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
try:
# Gets the list of all reseller's children accounts
api_response = api_instance.get_reseller_childs()
pprint(api_response)
except ApiException as e:
print("Exception when calling ResellerApi->get_reseller_childs: %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]
RemainingCreditModel remove_credits(child_auth_key, remove_credits)
Remove Email and/or SMS credits from a specific child 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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
remove_credits = sib_api_v3_sdk.RemoveCredits() # RemoveCredits | Values to post to remove email or SMS credits from a specific child account
try:
# Remove Email and/or SMS credits from a specific child account
api_response = api_instance.remove_credits(child_auth_key, remove_credits)
pprint(api_response)
except ApiException as e:
print("Exception when calling ResellerApi->remove_credits: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child | |
remove_credits | RemoveCredits | Values to post to remove email or SMS credits from a specific child account |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_reseller_child(child_auth_key, reseller_child)
Updates infos of reseller's child based on the childAuthKey supplied
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.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
reseller_child = sib_api_v3_sdk.UpdateChild() # UpdateChild | values to update in child profile
try:
# Updates infos of reseller's child based on the childAuthKey supplied
api_instance.update_reseller_child(child_auth_key, reseller_child)
except ApiException as e:
print("Exception when calling ResellerApi->update_reseller_child: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
child_auth_key | str | auth key of reseller's child | |
reseller_child | UpdateChild | values to update in child profile |
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]