All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
createSender | POST /senders | Create a new sender |
deleteSender | DELETE /senders/{senderId} | Delete a sender |
getIps | GET /senders/ips | Get all the dedicated IPs for your account |
getIpsFromSender | GET /senders/{senderId}/ips | Get all the dedicated IPs for a sender |
getSenders | GET /senders | Get the list of all your senders |
updateSender | PUT /senders/{senderId} | Update a sender |
CreateSenderModel createSender(sender)
Create a new sender
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
CreateSender sender = new CreateSender(); // CreateSender | sender's name
try {
CreateSenderModel result = apiInstance.createSender(sender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#createSender");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
sender | CreateSender | sender's name | [optional] |
- Content-Type: application/json
- Accept: application/json
deleteSender(senderId)
Delete a sender
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
Long senderId = 789L; // Long | Id of the sender
try {
apiInstance.deleteSender(senderId);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#deleteSender");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
senderId | Long | Id of the sender |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
GetIps getIps()
Get all the dedicated IPs for your account
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
try {
GetIps result = apiInstance.getIps();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getIps");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
GetIpsFromSender getIpsFromSender(senderId)
Get all the dedicated IPs for a sender
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
Long senderId = 789L; // Long | Id of the sender
try {
GetIpsFromSender result = apiInstance.getIpsFromSender(senderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getIpsFromSender");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
senderId | Long | Id of the sender |
- Content-Type: application/json
- Accept: application/json
GetSendersList getSenders(ip, domain)
Get the list of all your senders
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
String ip = "ip_example"; // String | Filter your senders for a specific ip (available for dedicated IP usage only)
String domain = "domain_example"; // String | Filter your senders for a specific domain
try {
GetSendersList result = apiInstance.getSenders(ip, domain);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getSenders");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
ip | String | Filter your senders for a specific ip (available for dedicated IP usage only) | [optional] |
domain | String | Filter your senders for a specific domain | [optional] |
- Content-Type: application/json
- Accept: application/json
updateSender(senderId, sender)
Update a sender
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.SendersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi();
Long senderId = 789L; // Long | Id of the sender
UpdateSender sender = new UpdateSender(); // UpdateSender | sender's name
try {
apiInstance.updateSender(senderId, sender);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#updateSender");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
senderId | Long | Id of the sender | |
sender | UpdateSender | sender's name | [optional] |
null (empty response body)
- Content-Type: application/json
- Accept: application/json