API keys
Respan lets you manage spending caps, expiry, and notifications per API key so you can hand keys to teammates or environments without worrying about runaway cost or stale credentials.
Create an API key
Go to the API keys page and click Create new key.
Environment
Tag each key as production or development so traffic, logs, and spend stay separated. Use distinct keys per environment instead of toggling an env parameter at request time.
Advanced settings
Lifetime limit
Cap total spend over the key’s entire lifetime. Toggle on and set a hard cost ceiling, or leave unlimited.
Recurring limits
Add one or more rolling spend caps (for example, Cost per day). For each cap, set:
- Alert at a soft threshold that sends a notification but lets requests continue.
- Block at a hard threshold that stops the key from making requests until the window resets.
Use the + to stack multiple windows (daily, weekly, monthly) on the same key.
Expiry controls
Set an expiration so a temporary key (demo, contractor, time-boxed project) self-terminates. Common presets like 2 weeks, 30 days, and custom dates are available.
Notifications
Turn on Limit alerts to notify when spend crosses an alert or block threshold. Send to email, Slack, or both. Connect Slack from the dropdown the first time you use it.
Monitor API keys
Track usage and spend per key on the dashboard to understand traffic patterns and catch unexpected charges early.