View the full API reference for the collect fees
endpoint.
Usage
- REST API
Make a The
POST request to:wallet_id in the path must be the vault’s admin wallet — find it in the Privy Dashboard or as admin_wallet_id in the get vault details response. A single call collects all available fees for the vault; partial collection is not supported.Parameters
string
required
The ID of the vault to collect fees from. Must be an Aave vault.
This endpoint accepts your app secret or a wallet signer. If the admin wallet was created
automatically when the vault was deployed and has not been modified, your app secret alone
authorizes the request. Admin wallets with an
owner_id must provide an authorization
signature as a request header.Returns
string
The wallet action ID. Use this to poll status with get wallet action.
string
The ID of the admin wallet collecting the fees.
string
The action type. Always
"earn_fee_collect" for this endpoint.'pending' | 'succeeded' | 'rejected' | 'failed'
The current status of the fee collection action.
string
Chain identifier in CAIP-2 format.
string
The ID of the vault fees were collected from.
string
The onchain address of the vault contract.
string
The underlying asset’s token address.
string | null
The collected amount in the underlying asset, as a human-readable decimal.
null while the action is pending; populated after onchain confirmation. This is your app’s share after the revenue split.string | null
The collected amount in the smallest unit of the underlying asset. Populated after onchain confirmation.
string
ISO 8601 timestamp of when the action was created.
Example
Example response
Next steps
Aave integration guide
Deposit, withdraw, read positions, and collect fees for Aave vaults.

