The createemail API is used to create a new Agent Email. Within the iService user interface, the agent email forms use the startagentemail endpoint to fetch the details needed to load the form. The createemail endpoint is then used to create the agent email interaction.
UI Reference: The API is called when the Create Agent Email button is clicked after filling in the details for the message.
URI: webapp-api-custinfo?api=createemail
Access Rights Required: All agents
Name |
Type |
Description |
---|---|---|
details |
Object |
Object that contains all the details needed to create the agent email. |
details[].inResponseToID |
String |
If the agent email is part of a case, the case ID (interaction root) is specified. |
details[].subject |
String |
The subject line for the agent email. |
details[].segmentID |
String |
The segment ID for the agent email. |
details[].topicID |
String |
The topic ID for the agent email. |
details[].addSubjectRefNum |
boolean |
Indicates whether a reference number will be added to the subject line. |
details[].ContactID |
Number |
The ID of the contact for whom the agent email is created. |
details[].destEmail |
String |
The email address selected for the agent email. Contacts may have more than one email address. |
details[].bodyHtml |
String |
The HTML body for the agent email. |
details[].notificationID |
String |
Not used in agent email. |
details[].defaultMailboxID |
String |
The default mailbox used to send the email. May be overridden by mailbox ID if specified. |
details[].mailboxID |
String |
ID of the mailbox used to send the email. |
details[].action |
Number |
Not used in agent email |
details[].properties |
Array |
Properties associated with the topic are submitted in a special format. See properties that may be edited. |
details[].caseproperties |
Array |
Properties associated with the topic are submitted in a special format. See properties that may be edited. |
{ |
Name |
Type |
Description |
---|---|---|
errors |
Array |
Error returned for the submission. |
interactionID |
String |
The interaction ID of the agent created. |
row |
Array |
An array of strings that describes the agent email created. |
row[].id |
String |
Id of the interaction created. |
row[].subject |
String |
Subject of the interaction created. |
row[].type |
String |
Type of the interaction created. In this case it is Agent Email. |
row[].date |
String |
Date of the interaction created. |
{ |