Skip to main content
POST
Create API key

Authorizations

aropay_session
string
cookie
required

Browser session cookie minted by POST /auth/login (or passkey login). httpOnly, SameSite=Lax, 24 h TTL. Endpoints marked Session-only accept only this credential and return 403 session_required for API keys.

Body

application/json
name
string
required

Label identifying the consumer, e.g. "CI integration".

expiresInDays
integer

Optional expiry. Omit for a non-expiring key.

Required range: 1 <= x <= 365

Response

Key created. Store plaintext now; it is never shown again.

ok
any
required
data
object
required