Secure your API
Rate limits
Cap calls per minute and per day — for the whole project, every function, or a single function, counted for everyone or per client.
Limits are enforced by Wisp before your code runs, so a flood of calls doesn't run up your Run credits.
#Set limits
Open the project's settings → Limits, or ask the assistant ("at most 100 calls a day per client"). You can set:
| Scope | Applies to |
|---|---|
| Project | All functions together |
| Every function | Each function separately, unless it has its own limit |
| One function | That function only (replaces the default) |
Each limit has a per minute and/or per day maximum, counted:
- For everyone — all callers share the quota.
- Per client — each caller has its own quota: per API key when keys are required, otherwise per IP address.
Limits apply immediately; no publish needed.
#When a limit is reached
Callers get 429 Too Many Requests with a retry-after header in seconds, plus ratelimit-limit, ratelimit-remaining and ratelimit-reset headers so clients can back off.
#Platform protection
Independently of your limits, Wisp caps very high request rates per project to protect the platform. Typical APIs never reach it.