Skip to content

Limits and errors

Limits

  • Per organization key: 600 requests per minute in total and 120 per minute for writes (anything but GET, HEAD, OPTIONS).
  • Without a key, on open operations: 120 requests per minute per IP.
  • Exceeding a limit gives 429 rate_limited and a Retry-After header (seconds until the next attempt). Do not retry earlier.

Idempotent writes

A network failure can cut the response after the write has already happened. To retry a write safely, add an Idempotency-Key header: any string of 1–255 visible ASCII characters, such as a UUID. It applies to unsafe methods (POST, PUT, DELETE) and is ignored on GET.

Terminal window
curl -X PUT -H "Authorization: Bearer $KEY" -H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"present"}' \
https://api.ruunso.com/v1/orgs/<orgId>/club-sessions/<sessionId>/attendance/<athleteId>
  • A retry with the same key, method, path and body returns the stored response with the Idempotent-Replayed: true header; the write is not performed twice.
  • The same Idempotency-Key with a different request gives 422 idempotency_mismatch.
  • The first request is still running: 409 idempotency_in_progress; retry later.
  • 5xx responses are not stored: a retry runs again. Records are kept for 24 hours.

Error codes

An error is JSON with a code field. Your program builds the user-facing text.

Status Code When
400 bad_request invalid request data or Idempotency-Key header
401 key_invalid the key is malformed or unknown
401 key_revoked the key was revoked (also when its creator left the organization)
401 key_expired the key has expired
403 key_scope the key lacks the section, or the operation is not public
403 key_read_only a write with a read-only key
404 not_found the object does not exist or belongs to another organization
409 idempotency_in_progress the first request with this Idempotency-Key is still running
422 idempotency_mismatch the Idempotency-Key was already used for a different request
429 rate_limited limit exceeded, see Retry-After

Operation-specific business errors (for example pass_state, freeze_limit) are described in the reference and in OpenAPI.