All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
ConversationsAgentOnlinePingPost | POST /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes |
ConversationsMessagesIdDelete | DELETE /conversations/messages/{id} | Delete a message sent by an agent |
ConversationsMessagesIdGet | GET /conversations/messages/{id} | Get a message |
ConversationsMessagesIdPut | PUT /conversations/messages/{id} | Update a message sent by an agent |
ConversationsMessagesPost | POST /conversations/messages | Send a message as an agent |
ConversationsPushedMessagesIdDelete | DELETE /conversations/pushedMessages/{id} | Delete an automated message |
ConversationsPushedMessagesIdGet | GET /conversations/pushedMessages/{id} | Get an automated message |
ConversationsPushedMessagesIdPut | PUT /conversations/pushedMessages/{id} | Update an automated message |
ConversationsPushedMessagesPost | POST /conversations/pushedMessages | Send an automated message to a visitor |
void ConversationsAgentOnlinePingPost (Body12 body)
Sets agent’s status to online for 2-3 minutes
We recommend pinging this endpoint every minute for as long as the agent has to be considered online.
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 ConversationsAgentOnlinePingPostExample
{
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 ConversationsApi();
var body = new Body12(); // Body12 | Agent fields.
try
{
// Sets agent’s status to online for 2-3 minutes
apiInstance.ConversationsAgentOnlinePingPost(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsAgentOnlinePingPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | Body12 | Agent fields. |
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]
void ConversationsMessagesIdDelete (string id)
Delete a message sent by an agent
Only agents’ messages can be deleted.
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 ConversationsMessagesIdDeleteExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message
try
{
// Delete a message sent by an agent
apiInstance.ConversationsMessagesIdDelete(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsMessagesIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message |
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]
ConversationsMessage ConversationsMessagesIdGet (string id)
Get a message
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 ConversationsMessagesIdGetExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message
try
{
// Get a message
ConversationsMessage result = apiInstance.ConversationsMessagesIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsMessagesIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConversationsMessage ConversationsMessagesIdPut (string id, Body9 body = null)
Update a message sent by an agent
Only agents’ messages can be edited.
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 ConversationsMessagesIdPutExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message
var body = new Body9(); // Body9 | (optional)
try
{
// Update a message sent by an agent
ConversationsMessage result = apiInstance.ConversationsMessagesIdPut(id, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsMessagesIdPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message | |
body | Body9 | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConversationsMessage ConversationsMessagesPost (Body8 body)
Send a message as an agent
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 ConversationsMessagesPostExample
{
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 ConversationsApi();
var body = new Body8(); // Body8 | Message fields.
try
{
// Send a message as an agent
ConversationsMessage result = apiInstance.ConversationsMessagesPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsMessagesPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | Body8 | Message fields. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ConversationsPushedMessagesIdDelete (string id)
Delete an automated message
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 ConversationsPushedMessagesIdDeleteExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message
try
{
// Delete an automated message
apiInstance.ConversationsPushedMessagesIdDelete(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsPushedMessagesIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message |
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]
ConversationsMessage ConversationsPushedMessagesIdGet (string id)
Get an automated message
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 ConversationsPushedMessagesIdGetExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message sent previously
try
{
// Get an automated message
ConversationsMessage result = apiInstance.ConversationsPushedMessagesIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsPushedMessagesIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message sent previously |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConversationsMessage ConversationsPushedMessagesIdPut (string id, Body11 body)
Update an automated message
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 ConversationsPushedMessagesIdPutExample
{
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 ConversationsApi();
var id = id_example; // string | ID of the message
var body = new Body11(); // Body11 |
try
{
// Update an automated message
ConversationsMessage result = apiInstance.ConversationsPushedMessagesIdPut(id, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsPushedMessagesIdPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ID of the message | |
body | Body11 |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConversationsMessage ConversationsPushedMessagesPost (Body10 body)
Send an automated message to a visitor
Example of automated messages: order status, announce new features in your web app, etc.
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 ConversationsPushedMessagesPostExample
{
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 ConversationsApi();
var body = new Body10(); // Body10 |
try
{
// Send an automated message to a visitor
ConversationsMessage result = apiInstance.ConversationsPushedMessagesPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ConversationsApi.ConversationsPushedMessagesPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | Body10 |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]