Documentation · Endpoints
POST /api/v1/keys
Création, révocation et rotation de clés API — 1000 req/mois, scopes protocol:read / intelligence:read.
Création
Aucun header Authorization requis. Rate-limit IP 5/heure.
Email déjà actif → `already_exists: true` sans rejouer le secret.
{ "email": "developpeur@entreprise.com" }cURL — create
curl -X POST https://getauros.com/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"email":"developpeur@entreprise.com"}'Réponse (create)
La clé brute n'est affichée qu'une fois. Stockez-la dans un secret manager (Vercel, AWS, etc.).
{
"ok": true,
"api_key": "auros_pk_live_...",
"tier": "free",
"monthly_limit": 1000,
"scopes": ["protocol:read", "intelligence:read"],
"status": "active",
"message": "Store this key securely — it will not be shown again."
}Révocation
`POST /api/v1/keys/revoke` avec Bearer. Réponse métadonnées (`status=revoked`, `id`, `prefix`) — jamais `api_key`.
Clé démo interdite. Clé déjà révoquée / invalide → 401 `unauthorized`.
curl -X POST https://getauros.com/api/v1/keys/revoke \ -H "Authorization: Bearer auros_pk_live_..."
Rotation
`POST /api/v1/keys/rotate` révoque la clé Bearer et mint un remplacement (même email / scopes / tier).
Nouveau secret une seule fois ; l'ancien hash est invalide immédiatement.
curl -X POST https://getauros.com/api/v1/keys/rotate \ -H "Authorization: Bearer auros_pk_live_..."