curl --request PUT \
--url https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom \
--header 'Content-Type: application/json' \
--header 'X-Monaco-Signature: <api-key>' \
--data '
{
"code": "CryptoKing"
}
'import requests
url = "https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom"
payload = { "code": "CryptoKing" }
headers = {
"X-Monaco-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Monaco-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'CryptoKing'})
};
fetch('https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom', 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://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'CryptoKing'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Monaco-Signature: <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://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom"
payload := strings.NewReader("{\n \"code\": \"CryptoKing\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Monaco-Signature", "<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.put("https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom")
.header("X-Monaco-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"CryptoKing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Monaco-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"CryptoKing\"\n}"
response = http.request(request)
puts response.read_body{
"code": "0x0000000000000000000000000000000000000002",
"createdAt": "2026-07-07T18:00:00Z",
"customCode": "CryptoKing",
"isCustom": true,
"display": "CryptoKing"
}Claim or edit your custom TraderCode (deprecated PitPass path)
Claim or edit your custom TraderCode handle.
Single claim-or-edit entry point: set the authenticated caller’s custom
vanity handle (a [A-Za-z0-9_], letter-first, 5–20-char name), keeping the
permanent wallet-derived code as the reward identity. The first claim is
free; subsequent changes are rate-limited and release the freed handle into
a cooldown before anyone else can reclaim it. Case is preserved on store;
uniqueness is case-insensitive. Gated by the custom_trader_codes_enabled
feature flag. Returns the caller’s updated TraderCode identity.
curl --request PUT \
--url https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom \
--header 'Content-Type: application/json' \
--header 'X-Monaco-Signature: <api-key>' \
--data '
{
"code": "CryptoKing"
}
'import requests
url = "https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom"
payload = { "code": "CryptoKing" }
headers = {
"X-Monaco-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Monaco-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'CryptoKing'})
};
fetch('https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom', 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://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'CryptoKing'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Monaco-Signature: <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://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom"
payload := strings.NewReader("{\n \"code\": \"CryptoKing\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Monaco-Signature", "<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.put("https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom")
.header("X-Monaco-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"CryptoKing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/pitpass/codes/me/custom")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Monaco-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"CryptoKing\"\n}"
response = http.request(request)
puts response.read_body{
"code": "0x0000000000000000000000000000000000000002",
"createdAt": "2026-07-07T18:00:00Z",
"customCode": "CryptoKing",
"isCustom": true,
"display": "CryptoKing"
}Authorizations
Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.
Body
The custom handle to claim or edit to: [A-Za-z0-9_], must start with a letter, 5–20 characters. Case is preserved on store; uniqueness is case-insensitive.
"CryptoKing"
Response
OK
Your TraderCode — your normalized wallet address (clients render it Monaco - <address>). Always present; the permanent reward identity and a public alias even when a custom handle is set.
"0x0000000000000000000000000000000000000002"
RFC 3339 timestamp when the code row was first derived
"2026-07-07T18:00:00Z"
Your custom vanity handle, exactly as entered (case preserved), or an empty string when the wallet-derived default is kept. Use is_custom to disambiguate.
"CryptoKing"
True when a custom handle is set; false when the wallet-derived default is in effect.
true
The single human-facing string to render: the custom handle when set, otherwise the Monaco - <address> default form.
"CryptoKing"
Was this page helpful?

