API Tokens
API tokens enable programmatic access to the Polysystems platform. Use them in CI/CD pipelines, MCP servers, CLI tools, and automated scripts.
Creating a Token
1
2
3
4
5
!Warning
The token value is shown only once. If lost, you must revoke and create a new one.
Token Format
All tokens follow the format sk-poly-{random}. The raw value is SHA-256 hashed before server storage.
Available Scopes
| Scope | Description |
|---|---|
| secrets:read | Read vault contents and list secrets |
| secrets:write | Create, update, and delete secrets |
| mcp:access | Access secrets via MCP protocol |
| agents:read | Read agent configurations |
| agents:write | Create and deploy agents |
| admin | Full account access |
Revoking Tokens
Click the revoke button next to any token. Revocation is immediate and irreversible. All in-flight requests using that token will fail with 401 Unauthorized.
API: Revoke Token
DELETE
/api/secrets/tokens/:token_id