List inbound mail
Auth: Bearer key.
bearerAuthorizationBearer <token>An API key in the Authorization header.
limit?integerHow many messages to return, at most 200.
1 <= value <= 20050cursor?stringId of the last message on the previous page.
domain?stringOnly mail received on this domain id.
outbound_message?stringOnly replies to this sent message id.
include?stringComma-separated expansions to add: body (text and html, read from storage, returned by default); delivery (the newest delivery to the domain's inbound webhook, without its payload, or null).
fields?stringComma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, url, domain_id, from, to, subject, text, html, headers, message_id, in_reply_to, outbound_message_id, attachments, raw_download_url, verdicts, address_ids, thread_id, received_at, expires_at, delivery.
A page of mail the key's domains received, newest first, while it's retained.
application/json- response
data?array<>The page of inbound mail, newest first.
next_cursor?|Id to pass as cursor for the next page. Null on the last page.
curl -X GET 'https://pouch.example.com/v1/inbound'{ "data": [ { "id": "string", "url": "string", "domain_id": "string", "from": "string", "to": [ "string" ], "subject": "string", "text": "string", "html": "string", "headers": {}, "message_id": "string", "in_reply_to": "string", "outbound_message_id": "string", "attachments": [ { "filename": "string", "content_type": "string", "size": 0, "quarantined": true, "download_url": "string" } ], "raw_download_url": "string", "verdicts": { "spam": "string", "virus": "string", "spf": "string", "dkim": "string", "dmarc": "string" }, "address_ids": [ "string" ], "thread_id": "string", "received_at": "string", "expires_at": "string", "delivery": { "id": "string", "endpoint_id": "string", "event_type": "string", "status": "pending", "attempt_count": 0, "last_status_code": 0, "last_error": "string", "next_attempt_at": "string", "succeeded_at": "string", "expires_at": "string", "message_id": "string", "created_at": "string", "payload": {}, "attempts": [ { "id": "string", "attempt": 0, "status_code": 0, "error": "string", "duration_ms": 0, "created_at": "string" } ] } } ], "next_cursor": "string"}