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": "BaseSepolia",
"name": "Primary",
"tags": [
"settlement"
]
}
'import requests
url = "https://api-sandbox.endl.io/api/v0/wallets/{userId}"
payload = {
"network": "BaseSepolia",
"name": "Primary",
"tags": ["settlement"]
}
headers = {
"Api-Version": "<api-version>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({network: 'BaseSepolia', name: 'Primary', tags: ['settlement']})
};
fetch('https://api-sandbox.endl.io/api/v0/wallets/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.endl.io/api/v0/wallets/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network' => 'BaseSepolia',
'name' => 'Primary',
'tags' => [
'settlement'
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Api-Version: <api-version>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.endl.io/api/v0/wallets/{userId}"
payload := strings.NewReader("{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.endl.io/api/v0/wallets/{userId}")
.header("Api-Version", "<api-version>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/wallets/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"walletId": "<string>",
"userId": "<string>",
"network": "<string>",
"address": "<string>",
"name": "<string>",
"status": "<string>",
"currency": "<string>",
"dateCreated": "<string>"
}{
"code": 400,
"message": "Unsupported network",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWLT_1003",
"message": "Unsupported network",
"field": "network"
}
]
}{
"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": "The request conflicts with the current state of the resource",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "CONFLICT",
"message": "The request conflicts with the current state of the resource",
"field": null
}
]
}{
"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 customer. The customer must have completed KYC — otherwise 403 ERRWLT_1005.
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.
Which networks you may name depends on the environment. Production and staging accept the six mainnets — Ethereum, Base, ArbitrumOne, Optimism, Polygon, Tron. Sandbox and QA accept the three test networks — EthereumSepolia, BaseSepolia, TronNile.
network is matched case-sensitively here — Base is accepted, base is not. Every other endpoint treats network names case-insensitively; only creation is strict.
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": "BaseSepolia",
"name": "Primary",
"tags": [
"settlement"
]
}
'import requests
url = "https://api-sandbox.endl.io/api/v0/wallets/{userId}"
payload = {
"network": "BaseSepolia",
"name": "Primary",
"tags": ["settlement"]
}
headers = {
"Api-Version": "<api-version>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({network: 'BaseSepolia', name: 'Primary', tags: ['settlement']})
};
fetch('https://api-sandbox.endl.io/api/v0/wallets/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.endl.io/api/v0/wallets/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network' => 'BaseSepolia',
'name' => 'Primary',
'tags' => [
'settlement'
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Api-Version: <api-version>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.endl.io/api/v0/wallets/{userId}"
payload := strings.NewReader("{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.endl.io/api/v0/wallets/{userId}")
.header("Api-Version", "<api-version>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/wallets/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network\": \"BaseSepolia\",\n \"name\": \"Primary\",\n \"tags\": [\n \"settlement\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"walletId": "<string>",
"userId": "<string>",
"network": "<string>",
"address": "<string>",
"name": "<string>",
"status": "<string>",
"currency": "<string>",
"dateCreated": "<string>"
}{
"code": 400,
"message": "Unsupported network",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWLT_1003",
"message": "Unsupported network",
"field": "network"
}
]
}{
"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": "The request conflicts with the current state of the resource",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "CONFLICT",
"message": "The request conflicts with the current state of the resource",
"field": null
}
]
}{
"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
The network the wallet is created on, spelled exactly as listed — matched case-sensitively. Production and staging accept the six mainnets (Ethereum, Base, ArbitrumOne, Optimism, Polygon, Tron); sandbox and QA accept the three test networks (EthereumSepolia, BaseSepolia, TronNile).
Ethereum, Base, ArbitrumOne, Optimism, Polygon, Tron, EthereumSepolia, BaseSepolia, TronNile Human-readable label for the wallet. Optional, but must be a non-empty string if sent.
Optional labels for the wallet. Must be an array of strings if present.
Response
Wallet created. Unwrapped — the body is the wallet itself. No tags come back, even when you sent them.
A wallet, unwrapped — the shape every wallet response returns (create, get, update, list).
Endl's wallet reference id (wlt_…). Never the custody provider's id.
The customer (cus_…) the wallet belongs to.
The network the wallet was created on.
The on-chain address. Live from creation.
The wallet's label.
The custody provider's status, in its own vocabulary. Compare case-insensitively.
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.
When the wallet was created.