AI credit client wallets

List wallets

Your wallets, newest first; deleted wallets never appear. Page with limit (default 100, max 500) and cursor, passing back the next_page of the previous response; next_page is null once a page comes back with fewer than limit wallets. With account_name, only the wallet that client draws from - one result or none, never an error. Errors: invalid_value.

get/api/ai-credits/wallets

Request

  • Base URL
    https://api.duda.co
  • URL
    https://api.duda.co/api/ai-credits/wallets
  • Auth
    HTTP basic

Query parameters

account_namestring

Only the wallet whose assigned_accounts holds this account_name.

cursorstring

The next_page of the previous response: the id of its last wallet. The page continues after that wallet.

limitinteger

Page size: default 100, max 500.

Response

OK

cursorstring nullable

Cursor provided in request

limitinteger

Paging limit evaluated for request

next_pagestring nullable

Cursor value for querying next page

site_namestring

Owning site

total_responsesinteger

Total number of entities in for given query

Example response

{
  "cursor": "eyJjdXJzb3IiOiJjdXJzb3IiLCAiY3JlYXRpb25faWQiOiIxNWY0YjNiNGUtNGIzYi00YjNiLTRiM2ItNGIzYi00YjNiNGU0YjNiNGUifQ==",
  "next_page": "eyJjcmVhdGlvbl9pZCI6IjE1ZjRiM2I0ZS00YjNiLTRiM2ItNGIzYi00YjNiLTRiM2I0ZTRiM2I0ZSIsImN1cnNvciI6ImN1cnNvciJ9",
  "results": [
    {
      "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.