Fehler & Rate-Limits
BASIS https://api.rii.link/v1AUTH: BEARER → AUTHENTIFIZIERUNG
Eine Fehlerhülle, stabile Codes, ehrliche Header. Prüfe auf code, nie auf message.
Die Fehlerhülle
Jede Antwort außerhalb von 2xx hat diese Form. code ist stabil und maschinell prüfbar; message nennt das genaue Feld oder den Konflikt; doc_url verlinkt direkt zurück auf diese Seite.
EXAMPLE · 409
{
"error": {
"code": "slug_taken",
"message": "\"summer\" is already claimed on rii.link.",
"doc_url": "https://rii.link/docs/api/errors#slug_taken"
}
}
Fehlercodes
Die vollständige Liste. Codes kommen nur hinzu — keiner davon wird je seine Bedeutung ändern.
validation_failed · 400A field is missing or malformed — message names the field.invalid_key · 401Key missing, malformed, or revoked.scope_denied · 403The key exists but lacks the scope for this call.plan_upgrade_required · 403The call needs a higher plan — e.g. routing rules on Free.plan_limit_reached · 403A plan limit, such as active links or custom domains, is used up.not_found · 404No such id in this workspace.slug_taken · 409Also domain_in_use when deleting a host that still carries links.link_claimed · 409An anonymous shared link was already claimed or shut down.busy_try_again · 409Someone is changing the same domain right now (for example its www twin). Retry in a few seconds.companion_changed · 409The domain’s www twin changed while you deleted it. Fetch the domain again and retry.link_expired · 410The link passed its expires_at.rule_invalid · 422A routing rule references an unknown condition or malformed target.destination_unsafe · 422The destination URL is flagged as malware or phishing, or is on our blocklist. Every destination is checked when a link is created or updated.rate_limited · 429Budget exhausted — honor Retry-After.destination_check_unavailable · 503The destination could not be checked right now, so a link on a rii.link domain was not created. Retry after Retry-After.Rate-Limits
Pro Schlüssel, rollierendes Fenster — 60 Anfragen pro Minute bei Free, 600 bei Premium, individuell bei Enterprise. Das Budget steht in jeder Antwort; 429er ergänzen Retry-After. Der Massenimport ist der Grund, warum die CSV-Pipeline auf der Roadmap steht — bis sie kommt, dosiere deine Schreibzugriffe.
DIE HEADER STEHEN IN JEDER ANTWORT, NICHT NUR BEI 429 — DAS BUDGET IST IMMER SICHTBAR
RESPONSE HEADERS · 429
HTTP/2 429
x-ratelimit-limit: 600
x-ratelimit-remaining: 0
x-ratelimit-reset: 2026-08-12T09:17:00Z
retry-after: 14