Use this API to create and send an email response to an existing activity. This API can be used by customers to respond to one activity at a time.
The request body is mandatory. Request body can be in either XML or JSON format.
Name | Description |
---|---|
type.value | Type of the activity. Must be "email". |
type.subtype.value | Subtype of the activity. Must be "general". |
subject or attachments or content | Must have at least one of subject, attachments or content. |
Name | Description |
---|---|
payload.email.emailAddresses.from | Specifies the sender's email address. If this attribute is not provided, the application automatically figures out the email address to use for the activity. If provided, must be a single email address. 1. If the query parameter "customer" is not provided:
2. If the query parameter "customer" is provided, this attribute ("payload.email.emailAddresses.from") must not be provided. The application automatically figures out the email address to use for the activity, since the activity is being created for a different customer.
|
payload.email.emailAddresses.receiver | Specifies the email address of an active email alias in application. The email activity is associated with this email alias. If customer departmentalization setting is enabled, the alias must be in the same department as the customer. Must be a single email address. |
payload.email.messageCenter.id | Specifies an active message center in the application. If customer departmentalization setting is enabled, the message center must be in the same department as the customer. |
subject | Subject of email activity. |
attachments | Attachments of the email activity. Refer 'Attachments' section for more details. |
customAttributes | Name must match one of the custom attributes configured in application. If the custom attribute is configured as an enumeration, the value must be one of the predefined values. For string type of custom attribute that is not configured as an enumeration, refer list of Allowed Characters For Custom Attributes. |
payload.email.content | Supported content types are "text" and "html". One or both can be provided. |
payload.email.emailAddresses.replyTo | If present, any replies for this email is sent to this email address. Must be a single email address in the valid email address format. |
issueType.id | ID of the issue type of the activity. This can be provided only when payload.email.messageCenter.id is provided. The issue type must be associated with the message center specified through payload.email.messageCenter.id. |
The department of the activity is determined as follows:
Each attachment must be present within a separate attachment element. It must have the following representation:
Name | Description |
---|---|
altId | Alternate ID of the attachment. |
Name | Description |
---|---|
inline | Flag to indicate if this is an inline attachment or not. Must be set to true for inline attachments. |
contentId | This represents the identifier for the attachment. This is required only for inline attachments. |
Created
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
{- "type": {
- "value": "email",
- "subtype": {
- "value": "general"
}
}, - "subject": "Issue with mobile phone",
- "payload": {
- "email": {
- "content": {
- "text": "This is the issue",
- "html": "<HTML><HEAD><TITLE></TITLE></HEAD><BODY><P>This is the issue <BR> </P></BODY></HTML>"
}
}
}
}
{- "code": "400-101",
- "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
}