-
public final class WebhookNewEmailPayloadNEW_EMAIL webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to. Use the email ID to fetch the full email body or attachments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWebhookNewEmailPayload.EventNameName of the event type webhook is being triggered for. Values: eMAILRECEIVED,nEWEMAIL,nEWCONTACT,nEWATTACHMENT,eMAILOPENED,eMAILREAD
-
Field Summary
Fields Modifier and Type Field Description private final StringmessageIdprivate final UUIDwebhookIdprivate final WebhookNewEmailPayload.EventNameeventNameprivate final UUIDinboxIdprivate final UUIDemailIdprivate final OffsetDateTimecreatedAtprivate final List<String>toprivate final Stringfromprivate final List<String>ccprivate final List<String>bccprivate final List<AttachmentMetaData>attachmentMetaDatasprivate final StringwebhookNameprivate final Stringsubject
-
Constructor Summary
Constructors Constructor Description WebhookNewEmailPayload(String messageId, UUID webhookId, WebhookNewEmailPayload.EventName eventName, UUID inboxId, UUID emailId, OffsetDateTime createdAt, List<String> to, String from, List<String> cc, List<String> bcc, List<AttachmentMetaData> attachmentMetaDatas, String webhookName, String subject)
-
Method Summary
Modifier and Type Method Description final StringgetMessageId()final UUIDgetWebhookId()final WebhookNewEmailPayload.EventNamegetEventName()final UUIDgetInboxId()final UUIDgetEmailId()final OffsetDateTimegetCreatedAt()final List<String>getTo()final StringgetFrom()final List<String>getCc()final List<String>getBcc()final List<AttachmentMetaData>getAttachmentMetaDatas()final StringgetWebhookName()final StringgetSubject()-
-
Constructor Detail
-
WebhookNewEmailPayload
WebhookNewEmailPayload(String messageId, UUID webhookId, WebhookNewEmailPayload.EventName eventName, UUID inboxId, UUID emailId, OffsetDateTime createdAt, List<String> to, String from, List<String> cc, List<String> bcc, List<AttachmentMetaData> attachmentMetaDatas, String webhookName, String subject)
- Parameters:
messageId- Idempotent message ID.webhookId- ID of webhook entity being triggeredeventName- Name of the event type webhook is being triggered for.inboxId- Id of the inbox that received an emailemailId- ID of the email that was received.createdAt- Date time of event creationto- List ofTorecipient email addresses that the email was addressed to.from- Who the email was sent from.cc- List ofCCrecipients email addresses that the email was addressed to.bcc- List ofBCCrecipients email addresses that the email was addressed to.attachmentMetaDatas- List of attachment meta data objects if attachments presentwebhookName- Name of the webhook being triggeredsubject- The subject line of the email message as specified by SMTP subject header
-
-
Method Detail
-
getMessageId
final String getMessageId()
-
getWebhookId
final UUID getWebhookId()
-
getEventName
final WebhookNewEmailPayload.EventName getEventName()
-
getInboxId
final UUID getInboxId()
-
getEmailId
final UUID getEmailId()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getAttachmentMetaDatas
final List<AttachmentMetaData> getAttachmentMetaDatas()
-
getWebhookName
final String getWebhookName()
-
getSubject
final String getSubject()
-
-
-
-