Kontorion Billing API
string[]stringstringstringstring[]string[]stringstringstringstringstringstringstringstring[]
string[]stringstringstringstringstringstringstringstring[]
Create an API key
POST
https://api.kontorion.eu/v1
/api-keys
Mints a new API key. The plaintext token (sk_live_... or sk_test_...) is returned ONCE in the response and never persisted; record it immediately.
Create an API key › Request Body
allowed_ipsnil/empty = unrestricted
expires_atnil = non-expiring
key_typesk_live | sk_test; defaults to mode
namescopesnil/empty = all-access
Create an API key › Responses
Includes the plaintext key - show to user once
allowed_ipscreated_atexpires_atidkeykey_prefixkey_typenamescopesRotate an API key
POST
https://api.kontorion.eu/v1
/api-keys/rotate
Issues a fresh plaintext token for an existing key, atomically revoking the old one. Use to roll keys without losing scopes/IP allowlists/expiry settings. The new token is returned once.
Rotate an API key › Responses
Includes the new plaintext key - show to user once
allowed_ipscreated_atexpires_atidkeykey_prefixkey_typenamescopes