Allocate funds in a wallet without automatic rebalancing
curl --request POST \
--url https://sandbox.groundtech.co/v2/wallets/{id}/allocate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}
'import requests
url = "https://sandbox.groundtech.co/v2/wallets/{id}/allocate"
payload = {
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}
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({
requestId: 'c3d4e5f6-0000-4000-8000-000000000001',
allocations: [{from: 'cash:base:usdc', to: 'morpho-gauntlet-usdc', amountUsd: '1000.000000'}]
})
};
fetch('https://sandbox.groundtech.co/v2/wallets/{id}/allocate', 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://sandbox.groundtech.co/v2/wallets/{id}/allocate",
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([
'requestId' => 'c3d4e5f6-0000-4000-8000-000000000001',
'allocations' => [
[
'from' => 'cash:base:usdc',
'to' => 'morpho-gauntlet-usdc',
'amountUsd' => '1000.000000'
]
]
]),
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://sandbox.groundtech.co/v2/wallets/{id}/allocate"
payload := strings.NewReader("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\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://sandbox.groundtech.co/v2/wallets/{id}/allocate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v2/wallets/{id}/allocate")
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 \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"rebalanceId": "f6a7b8c9-0000-4000-8000-000000000001",
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"status": "created",
"createdAt": "2026-08-09T22:15:30.000Z",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}{
"error": "<string>"
}{
"error": "Unauthenticated request",
"message": "Missing or invalid bearer token"
}{
"error": "<string>"
}{
"error": "Portfolio wallet not found",
"code": "wallet_not_found"
}{
"error": "This wallet has autoRebalance set to true. Use PATCH /v2/wallets/{id}/strategy instead.",
"code": "operation_not_supported"
}{
"error": "Rate limit exceeded",
"code": "rate_limited"
}{
"error": "Internal server error",
"code": "internal_error"
}Wallets
Allocate wallet funds
Creates an idempotent rebalance that moves explicit dollar amounts between positions. Only organization owners and admins may create it.
POST
/
v2
/
wallets
/
{id}
/
allocate
Allocate funds in a wallet without automatic rebalancing
curl --request POST \
--url https://sandbox.groundtech.co/v2/wallets/{id}/allocate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}
'import requests
url = "https://sandbox.groundtech.co/v2/wallets/{id}/allocate"
payload = {
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}
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({
requestId: 'c3d4e5f6-0000-4000-8000-000000000001',
allocations: [{from: 'cash:base:usdc', to: 'morpho-gauntlet-usdc', amountUsd: '1000.000000'}]
})
};
fetch('https://sandbox.groundtech.co/v2/wallets/{id}/allocate', 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://sandbox.groundtech.co/v2/wallets/{id}/allocate",
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([
'requestId' => 'c3d4e5f6-0000-4000-8000-000000000001',
'allocations' => [
[
'from' => 'cash:base:usdc',
'to' => 'morpho-gauntlet-usdc',
'amountUsd' => '1000.000000'
]
]
]),
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://sandbox.groundtech.co/v2/wallets/{id}/allocate"
payload := strings.NewReader("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\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://sandbox.groundtech.co/v2/wallets/{id}/allocate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v2/wallets/{id}/allocate")
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 \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": [\n {\n \"from\": \"cash:base:usdc\",\n \"to\": \"morpho-gauntlet-usdc\",\n \"amountUsd\": \"1000.000000\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"rebalanceId": "f6a7b8c9-0000-4000-8000-000000000001",
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"status": "created",
"createdAt": "2026-08-09T22:15:30.000Z",
"allocations": [
{
"from": "cash:base:usdc",
"to": "morpho-gauntlet-usdc",
"amountUsd": "1000.000000"
}
]
}{
"error": "<string>"
}{
"error": "Unauthenticated request",
"message": "Missing or invalid bearer token"
}{
"error": "<string>"
}{
"error": "Portfolio wallet not found",
"code": "wallet_not_found"
}{
"error": "This wallet has autoRebalance set to true. Use PATCH /v2/wallets/{id}/strategy instead.",
"code": "operation_not_supported"
}{
"error": "Rate limit exceeded",
"code": "rate_limited"
}{
"error": "Internal server error",
"code": "internal_error"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Wallet ID
Body
application/json
Response
Allocation workflow created or replayed
Available options:
created, processing, completed, failed, cancelled Canonical allocation instructions accepted by Ground.
Minimum array length:
1Show child attributes
Show child attributes
⌘I