curl --request POST \
--url https://api-sandbox.endl.io/api/v0/wallets/{userId} \
--header 'API-KEY: <api-key>' \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--data '
{
"network": "Base",
"name": "Primary",
"tags": [
"production"
]
}
'{
"walletId": "wlt_eoGwAJpq8IWq1ZAbAUqz",
"userId": "cus_dgG98G4HjyZaQvPWQmqp",
"network": "Base",
"address": "0x297774861c4985bc3100230fbee9e6865353d467",
"name": "Primary",
"status": "Active",
"currency": "USDC",
"dateCreated": "2026-10-30T09:12:44.512Z",
"type": "CUSTODIAL"
}{
"code": 400,
"message": "Validation failed",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"field": "amount"
}
]
}{
"data": null,
"code": 401,
"message": "Authentication Failed!",
"status": "Error",
"errors": [
{
"code": "401",
"message": "Authentication Failed!",
"field": "Authentication Failed!"
}
]
}{
"data": null,
"code": 403,
"message": "API key does not have the required permission",
"status": "Error",
"errors": [
{
"code": "403",
"message": "API key does not have the required permission",
"field": "API key does not have the required permission"
}
]
}{
"code": 404,
"message": "Resource not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "NOT_FOUND",
"message": "Resource not found",
"field": null
}
]
}{
"code": 409,
"message": "Wallet address already registered",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWLT_1009",
"message": "Wallet address already registered",
"field": "address"
}
]
}{
"data": null,
"code": 429,
"message": "Rate limit exceeded, please retry later",
"status": "Error",
"errors": [
{
"code": "429",
"message": "Rate limit exceeded, please retry later",
"field": "Rate limit exceeded, please retry later"
}
]
}{
"code": 500,
"message": "Unexpected error",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "Unexpected error",
"field": null
}
]
}{
"data": null,
"code": 502,
"message": "Upstream service error",
"status": "Error",
"errors": null
}{
"code": 503,
"message": "Credentials could not be verified right now",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "DIRECTORY_UNAVAILABLE",
"message": "Credentials could not be verified right now",
"field": null
}
]
}Create wallet
Creates a wallet for the user. type picks one of two kinds:
CUSTODIAL(the default whentypeis omitted) — a new wallet that Endl holds the keys for, on the givennetwork.EXTERNAL— an address the customer already holds themselves. Nothing is created at any provider; Endl registers theaddressyou send and returns awlt_…id for it. Use it when the customer wants onramp proceeds settled to their own wallet.
One EVM wallet works across all five EVM networks. Creating an EVM wallet gives you a single wallet ID that works across Ethereum, Polygon, Base, Arbitrum and Optimism. You don’t need to create a separate wallet for each chain — one wallet ID and address is valid on all of them. Tron is separate.
Both kinds are gated on the customer having completed KYC (403 ERRWLT_1005), both answer 201 with the same unwrapped wallet object, and both emit the wallet.created webhook.
An external wallet is a settlement destination only: it can be named as walletId when opening an account, or when moving an existing account to it with Update account, but it has no balance (400 ERRWLT_1011 on Get wallet balance) and cannot fund a transaction or a card.
Duplicates. Registering an address the same customer already has as an active wallet on the same network is 409 ERRWLT_1009 on field address — EVM addresses are compared case-insensitively, TRON addresses exactly. The same address on a different network, or for a different customer, is allowed.
curl --request POST \
--url https://api-sandbox.endl.io/api/v0/wallets/{userId} \
--header 'API-KEY: <api-key>' \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--data '
{
"network": "Base",
"name": "Primary",
"tags": [
"production"
]
}
'{
"walletId": "wlt_eoGwAJpq8IWq1ZAbAUqz",
"userId": "cus_dgG98G4HjyZaQvPWQmqp",
"network": "Base",
"address": "0x297774861c4985bc3100230fbee9e6865353d467",
"name": "Primary",
"status": "Active",
"currency": "USDC",
"dateCreated": "2026-10-30T09:12:44.512Z",
"type": "CUSTODIAL"
}{
"code": 400,
"message": "Validation failed",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"field": "amount"
}
]
}{
"data": null,
"code": 401,
"message": "Authentication Failed!",
"status": "Error",
"errors": [
{
"code": "401",
"message": "Authentication Failed!",
"field": "Authentication Failed!"
}
]
}{
"data": null,
"code": 403,
"message": "API key does not have the required permission",
"status": "Error",
"errors": [
{
"code": "403",
"message": "API key does not have the required permission",
"field": "API key does not have the required permission"
}
]
}{
"code": 404,
"message": "Resource not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "NOT_FOUND",
"message": "Resource not found",
"field": null
}
]
}{
"code": 409,
"message": "Wallet address already registered",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWLT_1009",
"message": "Wallet address already registered",
"field": "address"
}
]
}{
"data": null,
"code": 429,
"message": "Rate limit exceeded, please retry later",
"status": "Error",
"errors": [
{
"code": "429",
"message": "Rate limit exceeded, please retry later",
"field": "Rate limit exceeded, please retry later"
}
]
}{
"code": 500,
"message": "Unexpected error",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "Unexpected error",
"field": null
}
]
}{
"data": null,
"code": 502,
"message": "Upstream service error",
"status": "Error",
"errors": null
}{
"code": 503,
"message": "Credentials could not be verified right now",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "DIRECTORY_UNAVAILABLE",
"message": "Credentials could not be verified right now",
"field": null
}
]
}Authorizations
Your partner API key.
Headers
The API version this request targets. Required on every /api/v0/* call. Format YYYY-MM.<release>; 2026-09.1 is the latest. The version that served the request is echoed back on the response. Missing, malformed or unsupported values are rejected with 400.
^\d{4}-\d{2}\.\d+$Path Parameters
Customer reference id, format cus_<20 chars> — never an internal UUID. Must belong to the authenticated partner.
Body
Network the wallet is on. For a custodial wallet it is matched case-sensitively — Base is accepted, base and BASE are not. For an external wallet the same names are matched case-insensitively.
Production and staging accept the mainnets only: Ethereum, Base, ArbitrumOne, Optimism, Polygon, Tron. Sandbox and QA accept EthereumSepolia, BaseSepolia and TronNile as well. External wallets accept exactly the networks custodial wallets may be created on in that environment.
A network we do not run on is rejected with 400 ERRWLT_1003 (UNSUPPORTED_NETWORK) on field network, and the message lists the networks the environment you are calling actually allows — read it rather than hardcoding this list. A missing network is an ordinary 400 ERRCORE_1001 alongside any other body errors on a custodial create, and 400 ERRWLT_1003 on an external one.
"Base"
Optional label for the wallet. Must be a non-empty string if sent at all.
Optional labels of your own. Must be an array of strings. Custodial wallets only — not used for external wallets.
Which kind of wallet to create. Case-insensitive. Omit it, or send CUSTODIAL, for a wallet Endl holds the keys for. Send EXTERNAL to register an address the customer holds themselves. Any other value is 400 ERRWLT_1007 on field type.
CUSTODIAL, EXTERNAL "CUSTODIAL"
External wallets only, and required for them. The customer's own on-chain address. On EVM networks it must match ^0x[a-fA-F0-9]{40}$; on TRON networks (Tron, TronNile) ^T[A-Za-z1-9]{33}$. Surrounding whitespace is trimmed and the case is preserved — TRON addresses are case-sensitive. Missing or malformed is 400 ERRWLT_1008 on field address.
"0x297774861c4985bc3100230fbee9e6865353d467"
External wallets only, optional. The stablecoin the wallet receives. It matters because it is the settlement asset used for accounts that settle to this wallet. Must be carried by the network: Tron/TronNile carry USDT only; Polygon, Base, ArbitrumOne, Optimism (and their testnets) USDC only; Ethereum both. Defaults to USDC, or USDT on TRON. Anything else is 400 ERRWLT_1010 on field currency.
USDC, USDT "USDC"
Response
Wallet created. Custodial and external creates both answer 201. Unwrapped — the body is the wallet itself; type tells the two kinds apart. No tags come back, even when you sent them.
A wallet, unwrapped — the shape every wallet response returns (create, get, update, list). Custodial and external wallets share this shape; type tells them apart.
Endl's wallet reference id (wlt_…). Never the custody provider's id.
"wlt_eoGwAJpq8IWq1ZAbAUqz"
The customer (cus_…) the wallet belongs to.
"cus_dgG98G4HjyZaQvPWQmqp"
The network the wallet is on, canonically cased (Base, Tron).
"Base"
The on-chain address. Live from creation.
"0x297774861c4985bc3100230fbee9e6865353d467"
The wallet's label, if one was set.
"Primary"
Active on Get wallet, List wallets and every external-wallet response — deleted wallets are never returned. The response to a custodial Create or Update carries the custody provider's status instead, in its own vocabulary. Compare case-insensitively.
"Active"
The stablecoin recorded for the wallet, USDC or USDT. On a custodial wallet it is a local default stamped at creation — USDT on a Tron wallet (Tron or TronNile), USDC on every other network — not a restriction, and not a reading of the chain. On an external wallet it is the value chosen at registration and is the settlement asset for accounts that settle to it.
"USDC"
When the wallet was created or registered.
"2026-10-30T09:12:44.512Z"
CUSTODIAL — Endl holds the keys. EXTERNAL — an address the customer holds themselves, registered as a settlement destination only: no balance, cannot fund a transaction or a card. Always set.
CUSTODIAL, EXTERNAL "CUSTODIAL"