Developers
POST/v1/api-keys

Create API key

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/api-keys" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example"}'

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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/api-keysBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissiondeveloper:manage
Held by 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.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
name*Name
Length1 <= length <= 120
scopes?array<string>
expires_in_days?|null

Response Body

Success.

application/json
  1. response
api_key*
secret*Secret

Secret shown once. Store it; Abazi keeps only a hash.

[key: string]?any