Our library is now compatible with python 3.7 . Please use: https://github.com/sendinblue/APIv3-python-library/tree/v6.1.0
SendinBlue's API exposes the entire SendinBlue features via a standardized programmatic interface. Please refer to the full documentation to learn more.
This is the wrapper for the API. It implements all the features of the API v3.
SendinBlue's API matches the OpenAPI v2 definition. The specification can be downloaded here.
This PYTHON package is automatically generated by the Swagger Codegen project and is reviewed and maintained by SendinBlue:
- API version: 3.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://account.sendinblue.com/support
Compatible from Python version 2.7 to 3.5+
The package is available by running :
pip install sib-api-v3-sdk(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import sib_api_v3_sdk Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import sib_api_v3_sdkPlease follow the installation procedure and then run the following:
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.AccountApi(sib_api_v3_sdk.ApiClient(configuration))
try:
# Get your account information, plan and credits details
api_response = api_instance.get_account()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->get_account: %s\n" % e)All URIs are relative to https://api.sendinblue.com/v3
- AbTestCampaignResult
- AbTestCampaignResultClickedLinks
- AbTestCampaignResultStatistics
- AbTestVersionClicks
- AbTestVersionClicksInner
- AbTestVersionStats
- AddChildDomain
- AddContactToList
- AddCredits
- BlockDomain
- Body
- Body1
- Body10
- Body11
- Body12
- Body2
- Body3
- Body4
- Body5
- Body6
- Body7
- Body8
- Body9
- BodyVariablesItems
- CompaniesList
- Company
- CompanyAttributes
- CompanyAttributesInner
- ComponentItems
- ConversationsMessage
- ConversationsMessageFile
- ConversationsMessageFileImageInfo
- CreateApiKeyRequest
- CreateApiKeyResponse
- CreateAttribute
- CreateAttributeEnumeration
- CreateCategoryModel
- CreateChild
- CreateContact
- CreateDoiContact
- CreateEmailCampaign
- CreateEmailCampaignRecipients
- CreateEmailCampaignSender
- CreateExternalFeed
- CreateList
- CreateModel
- CreateProductModel
- CreateReseller
- CreateSender
- CreateSenderIps
- CreateSenderModel
- CreateSmsCampaign
- CreateSmsCampaignRecipients
- CreateSmtpEmail
- CreateSmtpTemplate
- CreateSmtpTemplateSender
- CreateSubAccount
- CreateSubAccountResponse
- CreateUpdateBatchCategory
- CreateUpdateBatchCategoryModel
- CreateUpdateBatchProducts
- CreateUpdateBatchProductsModel
- CreateUpdateCategories
- CreateUpdateCategory
- CreateUpdateContactModel
- CreateUpdateFolder
- CreateUpdateProduct
- CreateUpdateProducts
- CreateWebhook
- CreatedBatchId
- CreatedProcessId
- Deal
- DealAttributes
- DealAttributesInner
- DealsList
- DeleteHardbounces
- EmailExportRecipients
- ErrorModel
- FileData
- FileDownloadableLink
- FileList
- GetAccountMarketingAutomation
- GetAccountPlan
- GetAccountRelay
- GetAccountRelayData
- GetAggregatedReport
- GetAllExternalFeeds
- GetAllExternalFeedsFeeds
- GetAttributes
- GetAttributesAttributes
- GetAttributesEnumeration
- GetBlockedDomains
- GetCampaignOverview
- GetCampaignRecipients
- GetCampaignStats
- GetCategories
- GetCategoryDetails
- GetChildAccountCreationStatus
- GetChildDomain
- GetChildDomains
- GetChildInfoApiKeys
- GetChildInfoApiKeysV2
- GetChildInfoApiKeysV3
- GetChildInfoCredits
- GetChildInfoStatistics
- GetChildrenList
- GetClient
- GetContactCampaignStats
- GetContactCampaignStatsClicked
- GetContactCampaignStatsOpened
- GetContactCampaignStatsTransacAttributes
- GetContactCampaignStatsUnsubscriptions
- GetContactDetails
- GetContacts
- GetDeviceBrowserStats
- GetEmailCampaigns
- GetEmailEventReport
- GetEmailEventReportEvents
- GetExtendedCampaignOverviewSender
- GetExtendedCampaignStats
- GetExtendedClientAddress
- GetExtendedContactDetailsStatistics
- GetExtendedContactDetailsStatisticsClicked
- GetExtendedContactDetailsStatisticsDelivered
- GetExtendedContactDetailsStatisticsLinks
- GetExtendedContactDetailsStatisticsMessagesSent
- GetExtendedContactDetailsStatisticsOpened
- GetExtendedContactDetailsStatisticsUnsubscriptions
- GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription
- GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription
- GetExtendedListCampaignStats
- GetExternalFeedByUUID
- GetExternalFeedByUUIDHeaders
- GetFolder
- GetFolderLists
- GetFolders
- GetInboundEmailEvents
- GetInboundEmailEventsByUuid
- GetInboundEmailEventsByUuidAttachments
- GetInboundEmailEventsByUuidLogs
- GetInboundEmailEventsEvents
- GetIp
- GetIpFromSender
- GetIps
- GetIpsFromSender
- GetList
- GetLists
- GetProcess
- GetProcesses
- GetProductDetails
- GetProducts
- GetReports
- GetReportsReports
- GetScheduledEmailByBatchId
- GetScheduledEmailByBatchIdBatches
- GetScheduledEmailByMessageId
- GetSendersList
- GetSendersListIps
- GetSendersListSenders
- GetSharedTemplateUrl
- GetSmsCampaignOverview
- GetSmsCampaignStats
- GetSmsCampaigns
- GetSmsEventReport
- GetSmsEventReportEvents
- GetSmtpTemplateOverview
- GetSmtpTemplateOverviewSender
- GetSmtpTemplates
- GetSsoToken
- GetStatsByBrowser
- GetStatsByDevice
- GetStatsByDomain
- GetTransacAggregatedSmsReport
- GetTransacBlockedContacts
- GetTransacBlockedContactsContacts
- GetTransacBlockedContactsReason
- GetTransacEmailContent
- GetTransacEmailContentEvents
- GetTransacEmailsList
- GetTransacEmailsListTransactionalEmails
- GetTransacSmsReport
- GetTransacSmsReportReports
- GetWATemplates
- GetWATemplatesTemplates
- GetWebhook
- GetWebhooks
- GetWhatsappCampaignOverview
- GetWhatsappEventReport
- GetWhatsappEventReportEvents
- InlineResponse200
- InlineResponse201
- InlineResponse2011
- InlineResponse2012
- InlineResponse2013
- ManageIp
- MasterDetailsResponse
- MasterDetailsResponseBillingInfo
- MasterDetailsResponseBillingInfoAddress
- MasterDetailsResponseBillingInfoName
- MasterDetailsResponsePlanInfo
- MasterDetailsResponsePlanInfoFeatures
- Note
- NoteData
- NoteId
- NoteList
- Order
- OrderBatch
- OrderBilling
- OrderProducts
- Pipeline
- PipelineStage
- PostContactInfo
- PostContactInfoContacts
- PostSendFailed
- PostSendSmsTestFailed
- RemainingCreditModel
- RemainingCreditModelChild
- RemainingCreditModelReseller
- RemoveContactFromList
- RemoveCredits
- RequestContactExport
- RequestContactExportCustomContactFilter
- RequestContactImport
- RequestContactImportNewList
- RequestSmsRecipientExport
- ScheduleSmtpEmail
- SendReport
- SendReportEmail
- SendSms
- SendSmtpEmail
- SendSmtpEmailAttachment
- SendSmtpEmailBcc
- SendSmtpEmailCc
- SendSmtpEmailMessageVersions
- SendSmtpEmailReplyTo
- SendSmtpEmailReplyTo1
- SendSmtpEmailSender
- SendSmtpEmailTo
- SendSmtpEmailTo1
- SendTestEmail
- SendTestSms
- SendTransacSms
- SendWhatsappMessage
- SsoTokenRequest
- SubAccountDetailsResponse
- SubAccountDetailsResponsePlanInfo
- SubAccountDetailsResponsePlanInfoCredits
- SubAccountDetailsResponsePlanInfoCreditsEmails
- SubAccountDetailsResponsePlanInfoFeatures
- SubAccountDetailsResponsePlanInfoFeaturesInbox
- SubAccountDetailsResponsePlanInfoFeaturesLandingPage
- SubAccountDetailsResponsePlanInfoFeaturesUsers
- SubAccountUpdatePlanRequest
- SubAccountUpdatePlanRequestCredits
- SubAccountUpdatePlanRequestFeatures
- SubAccountsResponse
- SubAccountsResponseSubAccounts
- Task
- TaskList
- TaskReminder
- TaskTypes
- UpdateAttribute
- UpdateAttributeEnumeration
- UpdateBatchContacts
- UpdateBatchContactsContacts
- UpdateBatchContactsModel
- UpdateCampaignStatus
- UpdateChild
- UpdateChildAccountStatus
- UpdateChildDomain
- UpdateContact
- UpdateEmailCampaign
- UpdateEmailCampaignRecipients
- UpdateEmailCampaignSender
- UpdateExternalFeed
- UpdateList
- UpdateSender
- UpdateSmsCampaign
- UpdateSmtpTemplate
- UpdateSmtpTemplateSender
- UpdateWebhook
- UploadImageModel
- UploadImageToGallery
- VariablesItems
- WhatsappCampStats
- WhatsappCampTemplate
- GetChildInfo
- GetExtendedCampaignOverview
- GetExtendedClient
- GetExtendedContactDetails
- GetExtendedList
- GetSmsCampaign
- GetAccount
- GetEmailCampaign
- Type: API key
- API key parameter name: api-key
- Location: HTTP header
- Type: API key
- API key parameter name: partner-key
- Location: HTTP header
Be sure to visit the SendinBlue official documentation website for additional information about our API.
If you find a bug, please post the issue on Github.
As always, if you need additional assistance, drop us a note here.
