BSE1007.
Enter values in Add API key
When creating a key, use the field IP allowlist (optional) in Add API key and enter comma-separated IP values:Comma-separated IPs. Leave empty to allow all IPs.
| Rule | Detail |
|---|---|
| Match type | Exact string match against the request IP |
| Maximum entries | 50 IP values per key |
| Empty field | All IPs allowed |
How it works
The allowlist is checked before the public/v1 request is allowed to continue:
Compare values
If the key has allowlist entries, BabySea checks whether the request IP exactly matches one of the allowed values.
Dashboard display
In the API keys table, the IP allowlist column shows the configured values:- If one IP is configured, it is shown directly.
- If multiple IPs are configured, the first IP is shown with a
+Nbadge. Hover over the badge to see the full list. - If no IPs are configured, the column shows an empty placeholder.
Error response
When a request comes from an IP not in the allowlist:JSON
Common setups
Single production server
Restrict the key to your server’s static IP:Multiple servers behind a load balancer
List each origin IP that BabySea will see as the client IP:Cloud runtimes without stable egress IPs
If your runtime does not give you a stable egress IP, leave the allowlist empty and rely on scope restriction plus monitoring instead.Development and production keys
Create separate keys for each environment with their own allowlists:| Key name | IP allowlist | Scope |
|---|---|---|
prod-api-worker | 203.0.113.10 | Full Access |
dev-local | empty | Generate Only |
IP allowlist with rotation
When you rotate a key, the replacement key inherits the same allowlist. The current dashboard rotation flow does not ask for a new IP list.Updating an allowlist
The current dashboard does not provide an edit action for the allowlist. To change it:- Create a new key with the IP values you want.
- Update your application to use the new key.
- Revoke or delete the old key when the cutover is complete.