Skip to main content

API Keys

API keys are the primary authentication mechanism for the PolySimulator API. Each key is tied to a user account, has configurable permissions, and can be revoked instantly.
Closed beta (ongoing). API key issuance is cohort-gated, so POST /v1/keys/bootstrap and POST /v1/keys return a 403 for callers who aren’t yet admitted — branch on the X-Polysim-Code response header. See Authentication → Closed Beta for the full lifecycle (the CLOSED_BETA / API_PRO_COMING_SOON issuance gates and the separate runtime ACCESS_RESTRICTED allowlist gate on already-issued keys).

Create a Key

Free-tier keys are read-only. A free key requesting trade returns 403 TIER_REQUIRES_UPGRADE — so a ["read", "trade"] key needs a paid tier (pro / pro_plus / enterprise). Omit permissions to take the per-tier default (free["read"], paid → ["read", "trade"]).
Response (201 Created):
The raw_key field is shown exactly once. Store it securely — it cannot be retrieved again. Only the SHA-256 hash is stored in the database.

List Keys

Returns all keys for your account. Only prefixes are shown — never the full key.

Revoke a Key

Permanently deactivates a key. This action cannot be undone.

Key Limits


Error Handling


Next Steps