NavigationContentFooter
Jump toSuggest an edit

Understanding Webhook event payloads

Reviewed on 20 September 2024Published on 20 September 2024

Events triggered by webhooks contain payloads that describe and detail the events.

Find below a detailed description of the fields in a Webhoook event payload.

TagDescription
idEvent identifier
typeEvent type
organization_idDomain Organization
project_idDomain Project
domain_idDomain identifier
domain_nameDomain name
created_atEvent creation date. Dates should be included in RFC-3339 format.
email_sent_atEmail reception date by the recipient server. Dates should be included in RFC-3339 format.
email_queued_atEmail reception date by TEM proxy or API. Dates should be included in RFC-3339 format.
email_idEmail identifier (used for GetEmail endpoint)
email_fromEmail FROM address
email_toEmail recipient address
email_headersSMTP headers
email_errorDEPRECATED SMTP message explaining the drop
email_next_tryNext time the email will be sent to the recipient server
email_try_countTotal number of tries attempted for this email
email_response_codeSMTP response code
email_response_messageSMTP response message

Examples of payload by event type

Webhooks may trigger different types of events. These types have varying payload fields.

email_queued

{
"id": UUID,
"type": "email_queued",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_queued_at": timed,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
]
}

email_dropped

{
{
"id": UUID,
"type": "email_dropped",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_sent_at": time,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
],
"email_sent_at": time,
"email_error": string,
"email_response_code": int,
"email_response_message": string

email_delivered

{
"id": UUID,
"type": "email_delivered",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_sent_at": time,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
],
"email_response_code": int,
"email_response_message": string
}

email_mailbox_not_found

{
"id": UUID,
"type": "email_mailbox_not_found",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_sent_at": time,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
],
"email_response_code": int,
"email_response_message": string
}

email_spam

{
"id": UUID,
"type": "email_spam",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_sent_at": time,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
],
"email_response_code": int,
"email_response_message": string
}

email_deferred

{
"id": UUID,
"type": "email_deferred",
"organization_id": UUID,
"project_id": UUID,
"domain_id": UUID,
"domain_name": string,
"created_at": time,
"email_sent_at": time,
"email_id": UUID,
"email_from": string,
"email_to": string,
"email_headers": [
{
"key": string,
"value": string
}
],
"email_error": string,
"email_next_try": time,
"email_try_count": int,
"email_response_code": int,
"email_response_message": string
}
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway