Skip to main content
Shelv supports two auth methods:
  • API keys for programmatic access (Authorization: Bearer sk_...)
  • Session cookies for dashboard access

Route auth matrix

Session auth is intended for dashboard flows. API integrations should use API keys so requests stay decoupled from browser state. For automation and sandbox integrations, use API keys instead of session cookies so jobs are reproducible and decoupled from browser state.

Get an API key

No browser required — ideal for AI agents and developers using coding agents (Claude Code, Codex, OpenClaw).Step 1: Register an account
201 Created
Step 2: Check your email for the 6-digit verification codeStep 3: Verify your email and receive an API key
200 OK
Save apiKey.key — this is your SHELV_API_KEY. It is shown once.

Use API keys

Send the Authorization header on every request to /v1/shelves* and /v1/webhooks*:

Error model

Authentication failure (401):
Rate limit hit (429):
Status-gated access (409) can happen when a shelf is not yet eligible for a requested operation (for example requesting tree or archive-url before processing completes).

Rate limits

Operational best practices

  • Keep keys in environment variables, never source code
  • Use separate keys for dev/staging/prod
  • Rotate and revoke keys regularly
For incident response, revoke compromised keys immediately and issue replacement keys per environment.