Skip to main content
Returns the workspace, commercial plan, access state, key metadata, and - when event limits are enforced - current monthly usage for the presented API key. One call proves the key works and shows what it is attached to, which makes it the natural first request for integration setup and for coding agents verifying a pasted key.

Authentication

Send your API key in X-Pylva-Key. Rate limit is shared with the telemetry endpoints (1000 requests/min per key).

Response

Responses are never cached (Cache-Control: no-store). Clients that consume plan and access_state should send X-Pylva-Contract-Version: 2. During the compatibility window, missing or older declarations are counted conservatively as legacy tier consumers. That authenticated usage signal is the removal gate for the deprecated alias. Successful responses repeat X-Pylva-Contract-Version: 2. The declaration and response header are optional metadata only; neither authorizes a request or changes the workspace entitlement.

Notes

  • A 401 INVALID_API_KEY here means the key is wrong or revoked - the same check as any other endpoint, but with a useful body on success.
  • Full schema: api.pylva.com/openapi.json.