API reference
Who am I
Verify an API key and read its workspace, plan tier, limits, and current usage in one call.
Returns the workspace, plan tier, 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.
Responses are never cached (
Authentication
Send your API key inX-Pylva-Key. Rate limit is shared with the telemetry endpoints (1000 requests/min per key).
Response
| Field | Notes |
|---|---|
org.slug, org.name | The workspace this key belongs to. |
tier | free, pro, scale, or enterprise. See Plans and limits. |
key.id | The public key identifier - never the secret. |
key.scope | Current Pylva Cloud keys report universal; legacy keys are upgraded to the same capability. |
limits.monthly_events | The plan cap; null means unlimited. |
limits.enforced | Whether event caps are enforced (false on self-hosted deployments by default). |
usage | null when limits are not enforced, on unlimited plans, or if the lookup fails open - use limits.enforced to tell these apart. |
Cache-Control: no-store).
Notes
- A
401 INVALID_API_KEYhere 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.