Create a new account
curl --request POST \
--url https://api.venlyfinance.com/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "user-12345",
"name": "Jane Doe — Main",
"chain": "BASE",
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"partyId": "7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22"
}
'import requests
url = "https://api.venlyfinance.com/v1/accounts"
payload = {
"externalId": "user-12345",
"name": "Jane Doe — Main",
"chain": "BASE",
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"partyId": "7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: 'user-12345',
name: 'Jane Doe — Main',
chain: 'BASE',
address: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
partyId: '7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22'
})
};
fetch('https://api.venlyfinance.com/v1/accounts', 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.venlyfinance.com/v1/accounts",
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([
'externalId' => 'user-12345',
'name' => 'Jane Doe — Main',
'chain' => 'BASE',
'address' => '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
'partyId' => '7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.venlyfinance.com/v1/accounts"
payload := strings.NewReader("{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.venlyfinance.com/v1/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venlyfinance.com/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"result": {
"id": "b2a1f0e9-8c7d-4e3a-9f21-0a1b2c3d4e5f",
"externalId": "user-12345",
"name": "Jane Doe — Main",
"kycStatus": "VERIFICATION_PENDING",
"status": "ACTIVE",
"createdAt": "2026-01-15T09:30:00",
"version": 0
}
}{
"success": false,
"errors": [
{
"code": "invalid-request",
"message": "The request contains invalid parameters."
}
]
}{
"success": false,
"errors": [
{
"code": "unauthenticated",
"message": "Please authenticate to perform this action."
}
]
}{
"success": false,
"errors": [
{
"code": "forbidden",
"message": "You do not have permission to access this resource."
}
]
}{
"success": false,
"errors": [
{
"code": "concurrent-modification",
"message": "This request has been modified by another user. Please refresh and try again."
}
]
}{
"success": false,
"errors": [
{
"code": "internal-error",
"message": "An unexpected error occurred. Please try again later."
}
]
}Accounts
Create an account
Open an account and provision its wallet on the chosen chain.
POST
/
accounts
Create a new account
curl --request POST \
--url https://api.venlyfinance.com/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "user-12345",
"name": "Jane Doe — Main",
"chain": "BASE",
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"partyId": "7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22"
}
'import requests
url = "https://api.venlyfinance.com/v1/accounts"
payload = {
"externalId": "user-12345",
"name": "Jane Doe — Main",
"chain": "BASE",
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"partyId": "7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: 'user-12345',
name: 'Jane Doe — Main',
chain: 'BASE',
address: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
partyId: '7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22'
})
};
fetch('https://api.venlyfinance.com/v1/accounts', 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.venlyfinance.com/v1/accounts",
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([
'externalId' => 'user-12345',
'name' => 'Jane Doe — Main',
'chain' => 'BASE',
'address' => '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
'partyId' => '7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.venlyfinance.com/v1/accounts"
payload := strings.NewReader("{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.venlyfinance.com/v1/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venlyfinance.com/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"user-12345\",\n \"name\": \"Jane Doe — Main\",\n \"chain\": \"BASE\",\n \"address\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\n \"partyId\": \"7e3b9c2a-1f4d-4a8b-9c11-2d6e8f0a1b22\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"result": {
"id": "b2a1f0e9-8c7d-4e3a-9f21-0a1b2c3d4e5f",
"externalId": "user-12345",
"name": "Jane Doe — Main",
"kycStatus": "VERIFICATION_PENDING",
"status": "ACTIVE",
"createdAt": "2026-01-15T09:30:00",
"version": 0
}
}{
"success": false,
"errors": [
{
"code": "invalid-request",
"message": "The request contains invalid parameters."
}
]
}{
"success": false,
"errors": [
{
"code": "unauthenticated",
"message": "Please authenticate to perform this action."
}
]
}{
"success": false,
"errors": [
{
"code": "forbidden",
"message": "You do not have permission to access this resource."
}
]
}{
"success": false,
"errors": [
{
"code": "concurrent-modification",
"message": "This request has been modified by another user. Please refresh and try again."
}
]
}{
"success": false,
"errors": [
{
"code": "internal-error",
"message": "An unexpected error occurred. Please try again later."
}
]
}Creates an account and its wallet. Link an existing party with
partyId, or create one inline with the party object. Self-custody accounts also supply the wallet address — see Venly-managed vs self-custody. A new account starts unverified and can’t move money until it is verified.Authorizations
OAuth2 client credentials flow. Token endpoints:
Body
application/json
Create a new account. You can either:
- Reference an existing party by providing
partyId - Create a new party inline by providing the
partyobject
SELF_CUSTODY companies must also supply the wallet address.
Unique external reference for this account
Minimum string length:
1Supported blockchain network
Available options:
AVALANCHE, BASE, POLYGON Display name for the account
Required string length:
1 - 255Wallet address. Required for SELF_CUSTODY companies
ID of an existing party to associate as account holder
Show child attributes
Show child attributes
Example:
{ "partyType": "INDIVIDUAL", "firstName": "John", "lastName": "Doe", "address": { "addressLine1": "123 Main Street", "city": "Amsterdam", "postalCode": "1012AB", "country": "NL" } }
Show child attributes
Show child attributes
Was this page helpful?
⌘I

