Skip to content

Inbound Email

The inbound email webhook receives email replies from customers and associates them with existing tickets. When a customer replies to a ticket notification email, the email provider (SendGrid Inbound Parse, Mailgun Routes, etc.) forwards the message to this endpoint.

POST /api/rpc/tickets/email/inbound

This is a public endpoint with no authentication. Configure your email provider to forward inbound emails to this URL.

FieldRequiredTypeDescription
organizationIdYesUUIDYour organization’s ID
fromYesstringSender’s email address
toYesstringRecipient email address
subjectNostringEmail subject line (defaults to empty)
textNostringPlain text body (defaults to empty)
htmlNostringHTML body
messageIdNostringRFC 2822 Message-ID header
inReplyToNostringRFC 2822 In-Reply-To header
referencesNostringRFC 2822 References header (space-separated message IDs)
attachmentsNoarrayFile attachments

Each attachment object contains:

FieldTypeDescription
filenamestringOriginal file name
contentTypestringMIME type
sizenumberFile size in bytes
urlstringURL to download the attachment
{
"success": true,
"ticketId": "uuid-or-null",
"messageId": "uuid-or-null"
}
FieldTypeDescription
successbooleanWhether the email was processed
ticketIdstring or nullThe ticket the message was added to
messageIdstring or nullThe created message’s ID

The platform uses the inReplyTo and references headers to match an incoming email to an existing ticket. If no match is found, the behavior depends on your organization’s configuration — the email may create a new ticket or be discarded.