PV API Service

<back to all web services

SendMessageRequest

Send Message from a Direct Message Service

The following routes are available for this service:
POST, OPTIONS/DirectMessaging/SendMessage

To override the Content-type in your clients HTTP Accept Header, append ?format=csv

HTTP + CSV

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

POST /csv/reply/SendMessageRequest HTTP/1.1 
Host: api.practicevelocity.com 
Content-Type: text/csv
Content-Length: length

LoggedInUser,SessionKey,Email,EmailServiceType
String,String,"{to:[String],from:String,cc:[String],bcc:[String],createdTime:0001-01-01,subject:String,textBody:String,htmlBody:String,attachments:[{base64:String,contentType:String,fileName:String}]}",DirectMessage

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

MessageId,BadSessionKey,HasSessionKeyExpired,RecipientNotSpecified,UnauthorizedAccess,RecipientInvalid,ToFieldRequired,ErrorMessage,HasError,HasRequestTimedOut
0,False,False,False,False,False,False,String,True,False