Roll API key
curl -X POST "https://api.52-28-238-205.sslip.io/v1/api-keys/{key_id}/roll" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"overlap_hours":1}'Issues a new key with the same name and scopes and keeps the old one working for overlap_hours (default 24, max 168; 0 revokes it at once). Requires developer:manage and a passkey step-up; a revoked or expired key cannot be rolled. The new secret is shown once.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
key_idstringrequiredAPI key id (key_...).
Body
application/json. Fields are listed under Request body below.
owner, admin, developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403. From the console it also needs a passkey step-up within the last 5 minutes.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
key_id*Key IdAPI key id (key_...).
application/json- body
overlap_hours?Overlap HoursHours the previous API key keeps working after a roll (0 to 168, default 24; 0 revokes it at once).
0 <= value <= 16824Success.
application/json- response
api_key*secret*SecretSecret shown once. Store it; Abazi keeps only a hash.
previous*[key: string]?anyPOSTCreate API key
Creates a test-mode API key (sk_test_...) with the given scopes and optional expiry. Requires developer:manage and a fresh passkey step-up; you cannot grant scopes you do not hold. The secret is shown once.
POSTRevoke API key
Revokes the key immediately; calls with it fail from then on. Requires developer:manage and a passkey step-up. Revoking an already revoked key returns it unchanged.