Prefer webhooks over polling
The most common reason to hit a rate limit is polling the API for status changes. You usually don’t need to. Spritz emits webhooks for the events that matter (payments, on-ramps, verification, and more), so you can react to changes as they happen instead of polling in a loop.Reading the headers
Every response includes your current rate-limit status, so you can pace requests without guessing:When you exceed a limit
If you go over, the API responds with429 Too Many Requests and a Retry-After
header telling you how many seconds to wait. The body is a standard
problem response:
Retry-After before retrying, and back off exponentially if you
keep getting 429s. If you’re hitting limits during normal operation,
get in touch, that’s usually a sign we should raise
your limits.