Skip to content

Tidegard API

Problem types

Every error from the Tidegard REST API is an RFC 9457 problem document with a stableerror code. Its type links to the code's page here. Switch onerror, never on the title or detail text. A code, once published, never changes meaning.

Read the REST API guide

Requests and access

CodeStatusMeaning
api.unauthenticated401No usable credential. Sent with WWW-Authenticate: Bearer, and the same for every cause.
api.forbidden403Authenticated, but lacking the permission, for a resource in the caller's own tenant.
api.not_found404No such path or resource.
api.method_not_allowed405The path exists, but not with this method.
api.invalid_request400A malformed body, query or path parameter.
api.unknown_field400The body has a field the endpoint does not define. Unknown fields are never ignored.
api.unsupported_media_type415The body is not application/json.
api.csrf_rejected403A request made with a session cookie that changes anything lacks the session's X-WNM-CSRF value, or has the wrong one.
api.payload_too_large413The body is over 64 KiB.
api.rate_limited429Over the rate limit. Sent with Retry-After.
api.unavailable503The database cannot be reached. The API fails closed. Sent with Retry-After.
api.licence_inactive403No valid Tidegard licence: missing, invalid, expired past its grace period, not yet valid, or the host clock is behind. Signing in, GET /api/v1/licence, reading and withdrawing mitigations, the BGP view and the kill switch still answer. Install the licence file LogiXhare issued, or contact LogiXhare to renew.
api.internal500Unexpected. The body carries nothing but this code and the request id.
api.tenant_required400A platform principal called an endpoint that acts in a tenant without naming one in the Tidegard-Tenant header.
api.tenant_unknown400The Tidegard-Tenant header names no registered tenant. Sent only to platform principals; a tenant principal that names another tenant gets api.forbidden.

Incidents

CodeStatusMeaning
incident.not_found404No such incident, or another tenant's. The two are indistinguishable by design.
incident.illegal_transition409The state machine does not allow this transition from the current state.
incident.version_conflict409expected_version is stale. Re-read the incident and retry.
incident.idempotency_key_reuse409The Idempotency-Key was used for a different request.
incident.forbidden403The domain refused the command for lack of a permission.
incident.validation_failed422Well-formed, but semantically invalid, for example a suppression with no expiry.
incident.limit_reached409A per-tenant bound, such as open incidents, is reached.
incident.duplicate_active409An active incident for the same correlation key already exists.
incident.invalid_reopen409The incident cannot be reopened, for example outside the reopen window.
incident.manual_closure_required409This incident must be closed by an operator.
incident.suppressed_operation409The operation is not allowed while the incident is suppressed.
incident.evidence_unavailable422The evidence the command needs is not available.
incident.state_unchanged409The command would not change anything.
incident.clock_skew503The decision time ran backward. Retry.
incident.correlation_conflict409The correlation key conflicts with an existing incident.
incident.customer_visible_unsupported501A customer-visible note was asked for. Every note is internal in the current release.

Mitigations

CodeStatusMeaning
mitigation.not_found404No such mitigation, or another tenant's. The two are indistinguishable by design.
mitigation.forbidden403The role lacks the mitigation permission.
mitigation.illegal_transition409The mitigation's state does not allow this, for example approving one that is already active.
mitigation.self_approval403The requester tried to approve their own mitigation, and the deployment does not allow it.
mitigation.invalid422The request is well formed but not a valid mitigation: a prefix with host bits, an RTBH that is not a host route, ports without TCP or UDP, a reason or duration out of range.
mitigation.duplicate409A live mitigation already does the same action on the same prefix and match.
mitigation.version_conflict409expected_version is stale. Carries current_version.
mitigation.idempotency_key_reuse409The Idempotency-Key was used for a different mitigation request.
mitigation.kill_switch409The kill switch is on: no mitigation may start.
mitigation.not_allowlisted403The prefix is not on this tenant's allowlist. Another tenant's prefix gets the same answer.
mitigation.action_not_allowed403The allowlist entry does not permit this action.
mitigation.too_wide422The prefix is wider than the configured minimum length.
mitigation.too_long422The duration is over the configured maximum.

Tenants

CodeStatusMeaning
tenant.not_found404No such tenant. Platform endpoints only.
tenant.exists409A tenant with this id is already registered.
tenant.invalid422A tenant id that is empty, over 128 characters or platform; a display name over 200 characters; or a prefix that is malformed, has host bits, or is wider than /8 or /16.
tenant.prefix_overlap409The prefix overlaps one already registered, to this tenant or another. Carries existing and owner.
tenant.prefix_not_found404The tenant has no such prefix.

Tokens

CodeStatusMeaning
token.not_found404No live token with this id in the tenant acted in.
token.invalid422A lifetime out of range, a role from the other scope, or automation for a person. A role with any permission the issuer lacks is api.forbidden.