AI credit client wallets
Create a wallet
Returns the id you use from then on. The body and every field in it are optional, so no body or {} creates an empty wallet to fund and assign in separate calls. Not idempotent: a retry creates a second wallet. Errors: no_credit_pool (your account has no AI credit pool yet), invalid_value.
post/api/ai-credits/wallets
Request
- Base URLhttps://api.duda.co
- URLhttps://api.duda.co/api/ai-credits/wallets
- AuthHTTP basic
Request body
Example request
{
"name": "Acme Corp",
"recurrence_amount": "500.0",
"recurrence_day": 15,
"topup_balance": "100.0"
}Response
OK
Example response
{
"assigned_accounts": [
{
"account_name": "acme-corp"
}
],
"id": "3f9c1a7e-4b21-4d9a-9f0e-8c2d1a5b7e33",
"name": "Acme Corp",
"recurrence_amount": "500.0",
"recurrence_balance": "320.0",
"recurrence_day": 15,
"topup_balance": "100.0"
}Changes
No recorded changes to this operation across all 1 revision of this API.