Skip to main content
POST
Regenerate an app API key (invalidates the old one) Or generate initial key if app doesn't have one yet POST /api/apps/:app_id/regenerate-key

Path Parameters

app_id
string
required

Application ID

Body

application/json

Request body for generating a new app API key.

To create an Agent Key (for autonomous wallet-to-wallet payments), set permissions: ["Pay"] and optionally populate the pay_limits block.

name
string | null
pay_limits
null | object

Spend-limit constraints. Only enforced when the key has the Pay permission. All sub-fields default to null (unlimited / no expiry).

permissions
enum<string>[]
Available options:
Read,
Write,
Admin,
Pay

Response

App API key regenerated successfully