Mutations
replyToEmail
Replies to an existing email in a thread, threading the response correctly in email clients. Use inReplyToEmailId to identify the email being replied to. Supports CC and BCC recipients (up to 49 combined) and file attachments. Requires the email:create and email:read permissions.
MUTATION
replyToEmail(input: ReplyToEmailInput!): ReplyToEmailOutput!Arguments
input
required
Returns
email
error
Mutation
mutation ReplyToEmail($input: ReplyToEmailInput!) {
replyToEmail(input: $input) {
email {
id
thread {
id
ref
customer {
__typename
}
title
description
previewText
}
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
inReplyToEmailId
from {
name
email
emailActor {
__typename
... on CustomerEmailActor {
__typename
}
}
}
to {
name
email
emailActor {
__typename
... on CustomerEmailActor {
__typename
}
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"inReplyToEmailId": "id",
"textContent": "string"
}
}Response
{
"data": {
"replyToEmail": {
"email": {
"id": "id",
"thread": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"inReplyToEmailId": "id",
"from": {
"name": "string",
"email": "string",
"emailActor": {
"__typename": "CustomerEmailActor"
}
},
"to": {
"name": "string",
"email": "string",
"emailActor": {
"__typename": "CustomerEmailActor"
}
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation ReplyToEmail($input: ReplyToEmailInput!) {
replyToEmail(input: $input) {
email {
id
thread {
id
ref
customer {
__typename
}
title
description
previewText
}
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
inReplyToEmailId
from {
name
email
emailActor {
__typename
... on CustomerEmailActor {
__typename
}
}
}
to {
name
email
emailActor {
__typename
... on CustomerEmailActor {
__typename
}
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"inReplyToEmailId": "id",
"textContent": "string"
}
}Response
{
"data": {
"replyToEmail": {
"email": {
"id": "id",
"thread": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"inReplyToEmailId": "id",
"from": {
"name": "string",
"email": "string",
"emailActor": {
"__typename": "CustomerEmailActor"
}
},
"to": {
"name": "string",
"email": "string",
"emailActor": {
"__typename": "CustomerEmailActor"
}
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
