Skip to content

Email event

POST

SpacePost POSTs this payload to your webhook endpoint for every subscribed event. The shape is identical to Resend’s. Verify the Standard Webhooks signature headers (webhook-id, webhook-timestamp, webhook-signature) against the raw body. Respond with any 2xx status.

Media typeapplication/json
One of: discriminator: type

The JSON body SpacePost POSTs to a webhook, identical to Resend’s. Discriminated by type. data always has the WebhookEmailData fields plus the event-specific object listed below.

object
type
required

Event names you can subscribe a webhook to.

string
Allowed values: email.sent email.delivered email.delivery_delayed email.bounced email.complained email.opened email.clicked email.failed email.scheduled email.suppressed
created_at
required

When the event happened.

string format: date-time
data
required

Fields present in data for every event.

object
email_id
required
string format: uuid
from
required
string
to
required
Array<string>
subject
required
string
created_at
required

When the email was created (the event time is the envelope’s created_at).

string format: date-time
broadcast_id

Present for broadcast emails.

string format: uuid
tenant_id

Present when the email belongs to a tenant.

string format: uuid
tags

The email’s tags as an object of name to value. Absent when the email has none.

object
key
additional properties
string
type
required
Allowed value: email.sent

Acknowledged.