List wallets
Returns all API wallets your business has created, across every network.
GET
https://api-prod.useknit.io/api/v1/wallets
Request
cURL
curl "https://api-prod.useknit.io/api/v1/wallets" \
-H "Authorization: Bearer $KNIT_ACCESS_TOKEN" \
-H "Accept: application/json"Response
200 OK
{
"statusCode": 200,
"message": "Wallets fetched successfully",
"data": [
{
"id": "d95143d2-c076-49da-b121-b3beed054bf3",
"businessId": "a2667393-2c6c-43c9-a288-6167e2b2b591",
"network": "MATIC_MAINNET",
"networkId": "MATIC_MAINNET",
"networks": ["MATIC_MAINNET"],
"address": "0x1adb0a39bde00fa0957e519584cb5c51fefcb37f",
"isActive": true,
"createdAt": "2024-02-26T13:59:19.000000Z",
"updatedAt": "2024-02-26T13:59:19.000000Z"
}
],
"success": true
}This endpoint returns every wallet in one response. Cache the mapping between your customers and wallet IDs on your side rather than calling this on each request.
Errors
| Status | Cause |
|---|---|
401 | Missing or invalid token, IP not allow-listed, or missing wallets:read |