Skip to main content
POST
Create Agent

Request Headers

string
required
Your live or test API key.

Path Parameters

string
required
The Avenue wallet ID.

Request Body

string
required
A descriptive name for the agent (e.g. Auto-Sweep).
string
required
The condition: BALANCE_ABOVE, BALANCE_BELOW, ON_CREDIT, or ON_CREDIT_AMOUNT_ABOVE.
integer
The amount in kobo that fires the trigger (if applicable).
string
required
What the agent does: SWEEP, PARTIAL_SWEEP, WEBHOOK_NOTIFY, LOCK_WALLET.
string
The wallet to receive funds (required for SWEEP actions).
integer
The amount in kobo to sweep (required for PARTIAL_SWEEP actions).

Response

All amounts and balances in this endpoint are represented in kobo (e.g., 500000 = ₦5,000.00). Ensure you do not send or expect Naira values.