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=jsv

HTTP + JSV

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

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

{
	loggedInUser: String,
	sessionKey: String,
	email: 
	{
		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
			}
		]
	},
	emailServiceType: DirectMessage
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	messageId: 0,
	badSessionKey: False,
	hasSessionKeyExpired: False,
	recipientNotSpecified: False,
	unauthorizedAccess: False,
	recipientInvalid: False,
	toFieldRequired: False,
	errorMessage: String,
	hasError: True,
	hasRequestTimedOut: False
}