Sweep to Vault
curl --request POST \
--url https://api.example.com/v1/orgs/{organization_id}/transfers/sweepimport requests
url = "https://api.example.com/v1/orgs/{organization_id}/transfers/sweep"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/orgs/{organization_id}/transfers/sweep', 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.example.com/v1/orgs/{organization_id}/transfers/sweep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/orgs/{organization_id}/transfers/sweep"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/orgs/{organization_id}/transfers/sweep")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/orgs/{organization_id}/transfers/sweep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTreasury
Sweep to Vault
POST /v1/orgs/:organization_id/transfers/sweep — move USDC from a pocket wallet back to the vault
POST
/
v1
/
orgs
/
{organization_id}
/
transfers
/
sweep
Sweep to Vault
curl --request POST \
--url https://api.example.com/v1/orgs/{organization_id}/transfers/sweepimport requests
url = "https://api.example.com/v1/orgs/{organization_id}/transfers/sweep"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/orgs/{organization_id}/transfers/sweep', 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.example.com/v1/orgs/{organization_id}/transfers/sweep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/orgs/{organization_id}/transfers/sweep"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/orgs/{organization_id}/transfers/sweep")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/orgs/{organization_id}/transfers/sweep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySweeps USDC from a pocket wallet back into the organization vault.
This is an operator-surface route. Wallet-scoped runtime keys are rejected before body validation.
Request
POST /v1/orgs/<ORG_ID>/transfers/sweep
Authorization: Bearer <token>
Content-Type: application/json
{
"vault_wallet_id": "uuid",
"pocket_wallet_id": "uuid",
"amount_usdc": 10,
"memo": "Reclaim unused balance"
}
Response
The response uses the same transfer contract as Allocate from Vault:{
"transfer_id": "uuid",
"status": "confirmed",
"settlement_mode": "gasless",
"tx_hash": "0xabc123...",
"from_wallet_id": "uuid",
"to_wallet_id": "uuid",
"from_address": "0xpocket...",
"to_address": "0xvault...",
"amount_usdc": 10,
"network": "eip155:8453",
"block_number": 12345678,
"completed_at": "2026-05-03T12:00:00.000Z"
}