Skip to content

Commit f65dd1d

Browse files
fix(tem): code
1 parent 52d4ab7 commit f65dd1d

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

managed-services/transactional-email/api-cli/webhook-events-payloads.mdx

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Find below a detailed description of the fields in a [Webhoook event](/managed-s
3333
| `email_from` | Email FROM address |
3434
| `email_to` | Email recipient address |
3535
| `email_headers` | SMTP headers |
36-
| `email_error` | SMTP message explaining the drop |
36+
| `email_error` | **DEPRECATED** SMTP message explaining the drop |
3737
| `email_next_try` | Next time the email will be sent to the recipient server |
3838
| `email_try_count` | Total number of tries attempted for this email |
3939
| `response_code` | Next time the email will be sent to the recipient server |
@@ -69,25 +69,22 @@ Webhooks may trigger different [types of events](/managed-services/transactional
6969
## email_dropped
7070
```json
7171
{
72-
"id": string,
72+
{
73+
"id": uuid,
7374
"type": "email_dropped",
74-
"organization_id": string,
75-
"project_id": string,
76-
"domain_id": string,
75+
"organization_id": uuid,
76+
"project_id": uuid,
77+
"domain_id": uuid,
7778
"domain_name": string,
78-
"created_at": date,
79-
"email_sent_at": date,
80-
"email_id": string,
79+
"created_at": time,
80+
"email_id": uuid,
8181
"email_from": string,
8282
"email_to": string,
83-
"email_headers": [
84-
{
85-
"name": string,
86-
"value": string
87-
}
88-
],
83+
"email_headers": [{"key": string, "value": string}],
84+
"email_sent_at": time,
8985
"email_error": string,
90-
}
86+
"email_response_code": int,
87+
"email_response_message": string
9188
```
9289
## email_delivered
9390
```json
@@ -180,13 +177,4 @@ Webhooks may trigger different [types of events](/managed-services/transactional
180177
"email_try_count": integer
181178
}
182179
```
183-
```json
184-
{
185-
186-
"from": "[email protected]",
187-
"headers": [...],
188-
"sent_at": "2024-10-31T11:09:06.063284926Z",
189-
"response_code": 250,
190-
"response_message": "2.0.0 49VAvF5n582303 Message accepted for delivery"
191-
}
192-
```
180+

0 commit comments

Comments
 (0)