Skip to main content

Validation & observability

Use the validation endpoint to confirm API keys are active and to surface metadata for monitoring.

Checking keys at startup

Store validation results with your service telemetry. The response exposes the owning client ID and expiration timestamp when available.

Surfacing expiration alerts

Trigger alerts a week ahead so you can rotate keys without outages.

Programmatic health checks

validate() executes a lightweight GET request. Schedule it in your orchestrator to confirm network reachability and authentication.
If the call raises AuthError, rotate the key. Any other SimulacrumError indicates upstream issues: retry with backoff and alert your on-call channel.