Status and troubleshooting
Each send returns a message ID. Use it to check what happened to the email for 30 days. A key with the Transactional email scope set to Read or Write can read statuses.
Debugging a send? Your agent can read the timeline of each send and explain what went wrong. It reads only, and sends nothing:
Check a status
status | What it means |
|---|---|
queued | Waiting to go out. |
sent | Handed to the email provider. |
delivered | The recipient's mail server accepted it. |
bounced | The mail server refused it. reason is hard, soft, or unknown. |
complained | The recipient marked it as spam. |
failed | It wasn't sent. reason says why. |
New statuses can appear, so handle values you don't know.
A failed email's reason is one of:
provider_errororprovider_rejected: the email provider refused it.recipient_suppressed,recipient_unreachable, ormissing_recipient: PostHog skipped it because of the recipient.sending_pausedorsending_suspended: check the Reputation tab.canceled,workflow_unavailable, or an error such astimeout: the send stopped before it went out. More of these can appear.
A lookup returns 404 for an email sent a few seconds ago, because its first status takes a few seconds to arrive. Retry shortly. It also returns 404 for an email older than 30 days, or an ID from another project.
Find an email by its idempotency key
If the response to a send was lost, you don't have its message ID. Look the email up by the idempotency key you sent instead:
It returns the same fields as a lookup by ID, for the latest send with that key. Compare its created_at with when you sent: an earlier time means an earlier send with the same key. A 404 doesn't mean the email wasn't sent. To make sure it goes out once, send it again with the same key within 7 days.
An email didn't arrive
Work down the list:
- Did the send return a message ID? If not, its error
codesays why. See retries and errors. - Is it in the Log? If not, check that your key is from the right project.
- Is it
queued? Transactional emails go out ahead of marketing emails, so this is usually short. If it lasts minutes, contact support. - Is it
failedorbounced?reasonsays why. - Is it
delivered? The mail server accepted it. Check the spam folder, and check that your domain's DNS records are still in place.
Open the send in the Log to see each step, and what the person did around it:


To list your sends and their outcomes, see the email logs API reference.





