Evo Voice

<back to all web services

SendEndpointMessage

The following routes are available for this service:
All Verbs/chat/endpoint/message
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Nodes.Messaging

Namespace Global

    Namespace Voice.Api.Nodes.Messaging

        Public Partial Class SendEndpointMessage
            Public Overridable Property SessionId As String
            Public Overridable Property EndpointId As String
            Public Overridable Property Body As String
            Public Overridable Property AttachmentUri As String
            Public Overridable Property AttachmentContentType As String
            Public Overridable Property Sender As String
            Public Overridable Property DisplayName As String
        End Class
    End Namespace
End Namespace

VB.NET SendEndpointMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /chat/endpoint/message HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	sessionId: String,
	endpointId: String,
	body: String,
	attachmentUri: String,
	attachmentContentType: String,
	sender: String,
	displayName: String
}