Guides

Speed and latency

The API is built to answer fast and deliver steadily. Here is what we measured, how, and what it means for the timeouts in your code.

What we measured#

Health check, round trip
25 msMedian of 12 requests from Toronto over an open connection; the network round trip alone was about 17 ms.
Token check, round trip
51 msMedian of 12 requests that read a token record from the database.
Accepting a message, server time
26 to 117 msRange over 14 accepted messages: checks, two database writes and the queue hand-off.
Computing time per request
1.5 msMedian over 80 requests; the 99th percentile was 9.6 ms.
Hand-off to the mail system
0.6 to 0.8 sRange over 6 messages, after the delivery worker picked them up.

Measured on 2026-10-01 with curl timings and Cloudflare's own request analytics. These are small samples from one location, not a service-level promise. Your numbers depend mostly on the distance between your server and the nearest Cloudflare location.

Try it from where you are#

Sends one request to GET /v1/health from your browser and shows the round trip.

Where the time goes#

  1. Your network to Cloudflare. Requests are answered at the Cloudflare location nearest to your server, usually a few milliseconds away. A new connection also pays for the TLS handshake (about 80 ms in total from Toronto); reuse connections to skip it.
  2. The checks. Token, limits, sender and every field: about 1.5 ms of computing.
  3. The database. The token record and the message live in a database in eastern North America. Requests from far away spend most of their time travelling there and back; that is the difference between the health check and the token check above.
  4. The queue and the delivery worker. After the 202, the worker usually picks the message up within a second and hands it over in under a second. You do not wait for this part.

Setting your timeouts#

SettingSuggested valueWhy
Connect timeout5 sA healthy connection opens in well under a second.
Total request timeout10 sLeaves a wide margin over normal answers in tens of milliseconds.
Retries3 to 4, with back-offSee Retries and idempotency. Always with the same key.
First status check10 to 30 s after the 202Most messages are sent by then.
Polling interval10 s or moreFaster polling only uses up requests.

Keeping your own requests fast#

  • Do not wait for sent inside a user's request. Answer your user after the 202.
  • Better still, send from a background job so a slow network never delays your page.
  • Reuse one HTTP client (connection pooling) instead of creating one per email.

Availability#

The API runs on Cloudflare's network and has no single server to fail. There is no formal uptime commitment: see the terms. If the mail system is unavailable, accepted messages wait and are retried for about seven hours, so a short outage delays mail instead of losing it.

Last reviewed 2026-10-01.