error code and a readable detail:
The
detail is written for people, so it’s fine to log or show to your team. Match on error, which won’t change.
Retries
- A
5xxor a network error means Prizerail didn’t finish the request. Retry it with a growing wait, say 10 seconds, then a minute, for up to 10 minutes. Every call is safe to repeat: sending the same winners again returns200, and reading never changes anything. - There’s no rate limit today. If you ever get a
429, wait for the seconds in itsRetry-Afterheader before trying again. Polling once a minute per campaign is plenty, since drawings change state on a 5-minute cycle. - The API is versioned by its path,
/api/v1. Within v1, fields are added but never removed or renamed. Changes are listed in the changelog.

