Create an API key
API Keys
Create an API key
Returns the plaintext key once. Save it to your secrets manager immediately — Sly stores only a hash. Use narrow scopes in production.
POST
Create an API key
Authorizations
API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).
Body
application/json
Response
Key created