curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"externalCustomerId": "usr_01J7H8Q4K67Y8E",
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions"
payload = {
"externalCustomerId": "usr_01J7H8Q4K67Y8E",
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalCustomerId: 'usr_01J7H8Q4K67Y8E',
smartAccount: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions', 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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions",
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([
'externalCustomerId' => 'usr_01J7H8Q4K67Y8E',
'smartAccount' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions"
payload := strings.NewReader("{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}"
response = http.request(request)
puts response.read_body{
"externalCustomerId": "<string>",
"token": "<string>",
"expiresAt": "2026-08-13T12:15:00.000Z"
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Create or resume a compliance customer and mint a scoped session
Called by the integrator backend. Creates or resumes the provider-neutral compliance customer for the given opaque external customer id, optionally binds a registered smart account, and returns a short-lived browser session bearer. The project API key must never be forwarded to the browser — hand the returned token to the modal instead.
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"externalCustomerId": "usr_01J7H8Q4K67Y8E",
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions"
payload = {
"externalCustomerId": "usr_01J7H8Q4K67Y8E",
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalCustomerId: 'usr_01J7H8Q4K67Y8E',
smartAccount: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions', 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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions",
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([
'externalCustomerId' => 'usr_01J7H8Q4K67Y8E',
'smartAccount' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions"
payload := strings.NewReader("{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-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://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/compliance/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalCustomerId\": \"usr_01J7H8Q4K67Y8E\",\n \"smartAccount\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\"\n}"
response = http.request(request)
puts response.read_body{
"externalCustomerId": "<string>",
"token": "<string>",
"expiresAt": "2026-08-13T12:15:00.000Z"
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Headers
API key for authentication
"your-api-key"
Body
The integrator's stable, opaque end-user identifier. Must reveal no identity data (no email/name/wallet). Stored verbatim within the authenticated project.
1 - 200"usr_01J7H8Q4K67Y8E"
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Response
Scoped session token
The opaque external customer reference, returned only to the authenticated integrator backend.
Short-lived scoped session bearer for the browser.
ISO-8601 absolute expiry of the session token.
"2026-08-13T12:15:00.000Z"
Was this page helpful?