Skip to content

Latest commit

 

History

History
269 lines (168 loc) · 9.64 KB

ConversationsApi.md

File metadata and controls

269 lines (168 loc) · 9.64 KB

\ConversationsApi

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

ConversationsAgentOnlinePingPost

ConversationsAgentOnlinePingPost(ctx, 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.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body Body12 Agent fields.

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsMessagesIdDelete

ConversationsMessagesIdDelete(ctx, id) Delete a message sent by an agent

Only agents’ messages can be deleted.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsMessagesIdGet

ConversationsMessage ConversationsMessagesIdGet(ctx, id) Get a message

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsMessagesIdPut

ConversationsMessage ConversationsMessagesIdPut(ctx, id, optional) Update a message sent by an agent

Only agents’ messages can be edited.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message
optional *ConversationsMessagesIdPutOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ConversationsMessagesIdPutOpts struct

Name Type Description Notes

body | optional.Interface of Body9| |

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsMessagesPost

ConversationsMessage ConversationsMessagesPost(ctx, body) Send a message as an agent

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body Body8 Message fields.

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsPushedMessagesIdDelete

ConversationsPushedMessagesIdDelete(ctx, id) Delete an automated message

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsPushedMessagesIdGet

ConversationsMessage ConversationsPushedMessagesIdGet(ctx, id) Get an automated message

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message sent previously

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsPushedMessagesIdPut

ConversationsMessage ConversationsPushedMessagesIdPut(ctx, id, body) Update an automated message

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string ID of the message
body Body11

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ConversationsPushedMessagesPost

ConversationsMessage ConversationsPushedMessagesPost(ctx, body) Send an automated message to a visitor

Example of automated messages: order status, announce new features in your web app, etc.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body Body10

Return type

ConversationsMessage

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]