Wallets
List customer addresses
listWallets · GET /api/v1/wallets · scope ledger:read
Filter by external_id and network to find one customer's address.
Query
| Name | Type | Note |
|---|---|---|
cursor | string | Optional. The previous page's next_cursor, passed back as received. Send the same filters with it; limit may change between pages. A cursor never expires. A malformed one answers 400 with invalid_request. |
limit | integer | Optional. The most rows to return. Default 50. |
external_id | string | Optional. |
network | string | Optional. A network's code, in any case, or its id, from listNetworks. A code names the network this install runs for it, so the same code works on a testnet install and a mainnet one. One that names no network of this install answers 400 with error.field. |
sh
curl -sS "$FIATLESS_URL/api/v1/wallets" \
-H "Authorization: Bearer $FIATLESS_KEY"Responses
| Status | Meaning |
|---|---|
200 | One page of customer addresses. |
400 | A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
data | Wallet[] | |
next_cursor | string or null | Pass it back as cursor for the next page; null on the last page. |
Create customer address
createWallet · POST /api/v1/wallets · scope wallets:write
Creates the address for one customer on one network and answers it in the same call.
Only assets listed in asset_ids are credited to the address. A second address for the same external_id on a network answers 409 with resource_conflict. A network this install does not run now answers 503, as does the call while the operator recovers the install's database after a restore. Keys and seeds are never returned.
Headers
| Name | Type | Note |
|---|---|---|
Idempotency-Key | string | Required. Your key for this call, unique among this call's keys: createWallet and createPayout keep separate keys, so the same text sent to each is two keys. The same key with the same body returns the first response. With another body it answers 409 with idempotency_key_conflict. The install keeps a key for 24 hours; after that it is free again. |
Body
| Field | Type | Note |
|---|---|---|
network | string | Required. The network's code, in any case, or its id, from listNetworks. A code is the network this install runs for it; one that names none answers 400 with error.field, an unknown id 404. The address's network_id is the network's id either way, and a replay may name the network either way. |
external_id | string | Required. Your reference for the customer, unique per network. Control, format (such as bidirectional or zero-width) and line separator characters are refused. |
asset_ids | uuid[] | Required. The assets this address accepts; only these are credited. Each must have capabilities.deposit set on this network. |
sh
curl -sS "$FIATLESS_URL/api/v1/wallets" \
-H "Authorization: Bearer $FIATLESS_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
--json @- <<JSON
{
"network": "bitcoin",
"external_id": "$EXTERNAL_ID",
"asset_ids": [
"$ASSET_ID"
]
}
JSONResponses
| Status | Meaning |
|---|---|
201 | The address, or this is a replay of the same request. Headers: Location, Idempotent-Replayed. |
400 | A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
404 | The resource does not exist. The code is resource_not_found. |
409 | The key was used for another request, or the resource's state refuses the call, as for a payout external_id already used with another body. The codes are idempotency_key_conflict and resource_conflict, and on the webhook calls webhook_endpoint_limit_reached, webhook_endpoint_disabled and webhook_delivery_not_failed. |
415 | The body was not sent as application/json. The code is unsupported_media_type. |
422 | The asset cannot be used for this call, the amount has more precision than the asset, or a Bitcoin payout is below its destination's dust limit. The codes are asset_unavailable, invalid_amount_precision and amount_below_dust_limit. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
503 | The network's node did not answer, or what the call reads is unavailable; try again later. The code is service_unavailable. |
201 Created
| Field | Type | Note |
|---|---|---|
id | uuid | |
external_id | string | |
network_id | uuid | |
address | string | The customer's address; its type is the network's address_type. |
asset_ids | uuid[] | |
created_at | date-time |
Example · 201 Created
json
{
"id": "1080986a-b3b8-458c-a9cb-855f77f0189a",
"external_id": "order-48291",
"network_id": "7845483d-e3b5-4754-bcec-cc6c2019ad89",
"address": "tb1p4qhjn9zdvkux4e44uhx8tc55attvtyu358kutcqkudyccelu0wasjpkd5c",
"asset_ids": [
"311d52dc-f56b-40b3-b77d-b68fab806e29"
],
"created_at": "2026-07-11T20:00:00Z"
}Get customer address
getWallet · GET /api/v1/wallets/{id} · scope ledger:read
Reads an address createWallet answered.
Path
| Name | Type | Note |
|---|---|---|
id | uuid | Required. The resource's id. |
sh
curl -sS "$FIATLESS_URL/api/v1/wallets/$WALLET_ID" \
-H "Authorization: Bearer $FIATLESS_KEY"Responses
| Status | Meaning |
|---|---|
200 | The customer address as it is now. |
400 | A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
404 | The resource does not exist. The code is resource_not_found. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
id | uuid | |
external_id | string | |
network_id | uuid | |
address | string | The customer's address; its type is the network's address_type. |
asset_ids | uuid[] | |
created_at | date-time |