Moonborn — Developers
Authentication
Authentifiziere Requests an die Moonborn-API
API-Keys
Alle API-Requests müssen einen Authorization-Header mit einem
Bearer-Token enthalten:
Authorization: Bearer sk_live_...
API-Keys sind auf einen Workspace gescoped. Jeder Key hat:
- Scopes —
personas:read,personas:write,chat:read,chat:write,config:read,config:write - IP-Allowlist (Enterprise) — beschränke Nutzung auf spezifische IP-Bereiche
- Expiry — optionales Ablaufdatum
Einen API-Key erstellen
Navigiere zu Settings → API Keys → New key im Dashboard oder nutze die API:
curl -X POST https://api.moonborn.co/v1/keys \
-H "Authorization: Bearer $MOONBORN_API_KEY" \
-d '{ "name": "production", "scopes": ["personas:read", "personas:write", "chat:write"] }'Key-Präfixe
Keys werden präfigiert, um ihre Umgebung anzuzeigen:
| Präfix | Umgebung |
|---|---|
sk_live_ | Produktion |
sk_test_ | Test / Sandbox |
Rate-Limits
| Plan | Rate-Limit |
|---|---|
| Free | 60 req / min |
| Pro | 600 req / min |
| Team | 3.000 req / min |
| Enterprise | Custom |
Rate-Limit-Header sind in jeder Response enthalten:
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 597
X-RateLimit-Reset: 1715432400