Proof of Sending
Verify the integrity of a Proof-of-Sending certificate without an account.
A Proof-of-Sending certificate is a signed, timestamped record of a message and its delivery hand-off. It proves what wemail sent and whether the recipient mail server accepted it; it does not prove that the recipient read the message.
Verify by certificate ID (API)
curl -X POST https://api.wemail.io/v3/verify \
-H "Content-Type: application/json" \
-d '{ "certificate": "pod_0123456789abcdef0123456789abcdef" }'| Parameter | Type | Required | Description |
|---|---|---|---|
certificate | string | Required | Proof-of-Sending Document ID in the format pod_ followed by 32 lowercase hexadecimal characters. |
This endpoint is public and requires no API key — it sits outside the authenticated /v3 customer surface, so no Authorization header is needed. It returns integrity facts only: whether the certificate is registered, whether its signature is valid, whether its content fingerprint matches, and when it was issued. Recipient PII is not returned.
Verify a PDF by SHA-256
curl -X POST https://api.wemail.io/verify/proof \
-H "Content-Type: application/json" \
-d '{ "sha256": "64-character-lowercase-hex-sha256-of-the-pdf" }'Hash the original PDF locally and submit only its SHA-256 fingerprint. The PDF itself is never uploaded. A successful match returns the certificate details and a verificationId that can be used to request a verification receipt.
Verification receipt
curl -X POST https://api.wemail.io/verify/proof/receipt \
-H "Content-Type: application/json" \
-d '{ "verificationId": "pvf_0123456789abcdef0123456789abcdef", "requestedBy": "auditor@example.com" }'After a successful verification, this endpoint returns a signed PDF receipt. requestedBy is optional and is printed on the receipt when supplied.
Check a Document ID
curl https://api.wemail.io/verify/proof/pod_0123456789abcdef0123456789abcdefReturns a minimal, PII-free confirmation that a Document ID is registered. Upload the original PDF and use POST /verify/proof to verify that its contents are unaltered.
Check the document seal
curl https://api.wemail.io/verify/proof/sealDescribes the signing seal applied to certificate PDFs: enabled (whether PDFs are currently sealed), sendEvidence (whether new sends are fingerprinted and anchored at hand-off) and, when a seal is configured, its signer, issuer, validTo and whether signatures are timestamped. POST /verify/proof also accepts an optional seal object (cms, signedDigest, coversWholeFile) extracted from a PDF signature to check it in the same call.
Check send-time evidence independently
Messages are fingerprinted when they are handed off for delivery. Each minute’s fingerprints are combined into a Merkle root, every root is chained to the previous one, and an independent RFC 3161 time-stamping authority signs the chain. Three public endpoints let an auditor re-check that without trusting wemail:
| Parameter | Type | Required | Description |
|---|---|---|---|
GET /verify/proof/anchor/{chain} | JSON | Optional | One anchor by its 64-hex chain hash: chain, prev_chain, next_chain, root, window_start, part, leaf_count, the formula used to recompute the chain, and timestamp (time, tsa, token_url) when this anchor was time-stamped. Hashes and times only — no personal data. 400 for a malformed hash, 404 when unknown. |
GET /verify/proof/anchor/{chain}/token | application/timestamp-token | Optional | The DER RFC 3161 time-stamp token for that anchor, ready for openssl ts -verify -token_in. 404 when this anchor has no token of its own (a later anchor’s time-stamp covers it — follow next_chain). |
POST /verify/proof/bundle | JSON download | Optional | Body { "sha256": "<sha256 of the certificate PDF>" }. Returns the evidence bundle for offline checking: each record exactly as anchored, its Merkle path, the chain links up to the time-stamped anchor and the time-stamp token, plus the algorithms and the open-source verifier script to run. Holding the PDF’s hash is the proof of possession; recipient addresses appear only as SHA-256 hashes. 400 without a valid hash, 404 when the certificate has no send-time evidence. |
curl -X POST https://api.wemail.io/verify/proof/bundle \
-H "Content-Type: application/json" \
-d '{ "sha256": "64-character-lowercase-hex-sha256-of-the-pdf" }' -o evidence.jsonCode examples
curl -G https://api.wemail.io/v3/events \
-H "Authorization: Bearer afn_live_…" \
--data-urlencode "tag=welcome" \
--data-urlencode "event=delivered" \
--data-urlencode "since=2026-05-01"import { WemailClient } from "@wemailio/sdk";
const wemail = new WemailClient(process.env.WEMAIL_API_KEY);
const page = await wemail.events.listEvents({
tag: "welcome",
event: "delivered",
since: new Date("2026-05-01T00:00:00Z"),
});
for (const e of page.items) console.log(e.recipient, e.timestamp);
// next page: pass page.nextCursor as { cursor } while page.hasMoreimport os
from datetime import datetime, timezone
from wemail import WemailClient
wemail = WemailClient(api_key=os.environ["WEMAIL_API_KEY"])
page = wemail.events.list_events(
tag="welcome",
event="delivered",
since=datetime(2026, 5, 1, tzinfo=timezone.utc),
)
for e in page.items:
print(e.recipient, e.timestamp)<?php
$wemail = new \Wemail\WemailClient(getenv('WEMAIL_API_KEY'));
// listEvents($event, $recipient, $tag, $message_id, $since, $until, $limit, $cursor)
$page = $wemail->events()->listEvents('delivered', null, 'welcome', null, '2026-05-01T00:00:00Z');
foreach ($page->getItems() as $e) {
echo $e->getRecipient(), ' ', $e->getTimestamp()->format('c'), PHP_EOL;
}wemail = Wemail::Client.new(api_key: ENV["WEMAIL_API_KEY"])
page = wemail.events.list_events(tag: "welcome", event: "delivered", since: "2026-05-01T00:00:00Z")
page.items.each { |e| puts "#{e.recipient} #{e.timestamp}" }client, _ := wemail.NewClient(os.Getenv("WEMAIL_API_KEY"))
// Generated layer (client.API.*): pass the key in the context.
ctx := context.WithValue(context.Background(), wemail.ContextAccessToken, os.Getenv("WEMAIL_API_KEY"))
since, _ := time.Parse(time.RFC3339, "2026-05-01T00:00:00Z")
page, _, err := client.API.EventsAPI.ListEvents(ctx).
Tag("welcome").Event("delivered").Since(since).Execute()
for _, e := range page.Items {
fmt.Println(e.GetRecipient(), e.Timestamp)
}WemailClient wemail = new WemailClient(System.getenv("WEMAIL_API_KEY"));
// listEvents(event, recipient, tag, messageId, since, until, limit, cursor, metadata)
EventListPage page = wemail.events().listEvents("delivered", null, "welcome", null,
OffsetDateTime.parse("2026-05-01T00:00:00Z"), null, null, null, null);
for (Event e : page.getItems()) System.out.println(e.getRecipient() + " " + e.getTimestamp());var wemail = new WemailClient(Environment.GetEnvironmentVariable("WEMAIL_API_KEY"));
var page = await wemail.Events.ListEventsAsync(
varEvent: "delivered", tag: "welcome", since: DateTime.Parse("2026-05-01T00:00:00Z").ToUniversalTime());
foreach (var e in page.Items) Console.WriteLine(quot;{e.Recipient} {e.Timestamp}");{
"items": [
{
"id": "evt_01HBYE7Q…",
"type": "delivered",
"message_id": "msg_01HBYE7K9Z4PMQDR3W",
"recipient": "alex@example.com",
"timestamp": "2026-05-10T09:42:21.000Z",
"tags": ["welcome", "v2"],
"metadata": null,
"created_at": "2026-05-10T09:42:21.412Z"
}
],
"has_more": true,
"next_cursor": "2026-05-10T09:42:21.000Z|evt_01HBYE7Q…",
"total_count": 1842
}