Get started

Errors & limits

Every failure has the same body: { "code", "message" }. The code is stable to build on; the message is for people.

Error codes

StatusCode
400BAD_REQUEST

Malformed request: bad ids, bad dates or ranges, an unknown metric or time zone, or a method other than GET. The message says which.

401UNAUTHORIZED

Missing, invalid, or revoked API key.

402SUBSCRIPTION_INACTIVE

You own this server, but nyx+ is not active on it.

404NOT_FOUND

Not your server, not a member of it, or really not there.

409PLUGIN_DISABLED

The plugin behind this endpoint is turned off on that server.

429RATE_LIMITED

Over the limit. Retry-After says when to come back.

503UPSTREAM_UNAVAILABLE

nyx itself can't be reached. Retry with backoff.

Rate limits

60 requests a minute and 10,000 a day, per key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 adds Retry-After.