Skip to Content
Pouch
Events

Watch every message the key can see

GET
/v1/events

Auth: Bearer key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Query Parameters

type?string

Only events of this type, matching a webhook event type — e.g. email.delivered.

Value in"email.queued""email.sent""email.delivered""email.deferred""email.bounced""email.complained""email.failed"

Response Body

text/event-stream, held open indefinitely — the client closes it, not the server. A fresh connect with no Last-Event-ID starts from now rather than replaying history; Last-Event-ID on reconnect catches up on what was missed, capped at 500 events.

application/json
  1. response
id?string

Opaque id, prefixed evt_. Sent as the frame's SSE id — echo it back as a Last-Event-ID header to resume after a disconnect.

type?string

The transition this frame reports. Also sent as the frame's SSE event name. The three delivered/bounced/complained values match the webhook event of the same name.

Value in"email.queued""email.sent""email.delivered""email.deferred""email.bounced""email.complained""email.failed"
created_at?string

ISO 8601 timestamp the transition happened.

data?

The message, in the same shape GET /v1/emails/:id returns — and the same shape a webhook posts.

Example Request
curl -X GET 'https://pouch.example.com/v1/events'
Example Response
{  "id": "string",  "type": "email.queued",  "created_at": "string",  "data": {    "id": "string",    "url": "string",    "status": "queued",    "from": "string",    "to": [      "string"    ],    "cc": [      "string"    ],    "bcc": [      "string"    ],    "reply_to": [      "string"    ],    "subject": "string",    "tags": [      "string"    ],    "headers": {},    "layout": true,    "key_id": "string",    "batch_id": "string",    "test_mode": true,    "sensitive": true,    "warnings": [      {        "code": "previously_bounced",        "address": "string",        "message": "string",        "detail": {}      }    ],    "provider_message_id": "string",    "reason": "string",    "attempts": 0,    "next_attempt_at": "string",    "created_at": "string",    "sent_at": "string",    "delivered_at": "string",    "abandoned_at": "string",    "size": {      "body_bytes": 0,      "attachment_bytes": 0    },    "resent_from": "string"  }}