Skip to main content

API Key Format

Your API key is a string that starts with sk-stw_, followed by a unique identifier.
sk-stw_a1b2c3d4e5f6...

Authorization Header

Include your key in the Authorization header as a Bearer token:
Authorization: Bearer sk-stw_your_key
curl -X POST https://api.stewrd.dev/v1/agent \
  -H "Authorization: Bearer sk-stw_your_key" \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello"}'

Key Details

Keys are scoped per-project. Each project in your dashboard has its own API key. This lets you track usage and manage capabilities independently for each integration.
Regenerating a key revokes the previous one instantly. Update your environment variables before regenerating to avoid downtime.
  • Never expose your API key in client-side code or public repositories
  • Use environment variables to store your key
  • Rotate keys periodically for best practices
If your key is compromised, regenerate it immediately from your dashboard. The old key stops working instantly.