Developers
Quickstart
Send your first Travel Rule transfer in the sandbox. It takes about five minutes and three steps.
Before you start: you need a login to the Ospree sandbox Dashboard. If you don’t have one, contact sales@ospree.io.
1
Create API keys
Create a sandbox key from Settings > Developer > API Keys in the Dashboard.

Sample data.
Click “Create API key”.
Give it a Label, for example
quickstart.Pick an Expiry date, up to one year from today.
Under Access, set Travel Rule to “Read & write”. Leave the rest on “No access”.
Click “Create key”, then “Copy API key”. The key is shown once and can’t be retrieved later.
Add it to your
.env:.env
OSPREE_API_KEY="your-key"OSPREE_BASE_URL="https://sandbox.ospree.io/api/v2"To replace or revoke a key, see Authentication.
2
Send your first transfer
One call creates both accounts and sends the transfer to a test counterparty. Run this in a terminal where your
.envvalues are loaded.Shell · Sample data
curl -X POST "$OSPREE_BASE_URL/travelrule/transfers" \-H "Authorization: Bearer $OSPREE_API_KEY" \-H "Content-Type: application/json" \-d '{"amount": 0.25,"dti": "4H95J0R2X","protocol": "flow","reference_id": "wd-20261203-000482","beneficiary_vasp_id": "MLESJF","originator_address": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy","originator_address_is_self_hosted": false,"originator_account_reference_id": "cust-104582","originator_account": {"account_type": "individual","account_category": "customer","customer_id": "cust-104582","individual": { "individual_name": {"name_type": "LEGL", "name_first": "Daniel", "name_last": "Okafor" } }},"beneficiary_address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa","beneficiary_address_is_self_hosted": false,"beneficiary_account_reference_id": "ben-207731","beneficiary_account": {"account_type": "individual","account_category": "non-customer","customer_id": "ben-207731","individual": { "individual_name": {"name_type": "LEGL", "name_first": "Sofia", "name_last": "Lindgren" } }}}'What the request says:
Field
Meaning
amount,dtiHow much, and which asset.
4H95J0R2Xis Bitcoin.protocolThe Travel Rule network the message travels over.
reference_idYour own ID for the transfer, such as a withdrawal number.
beneficiary_vasp_idThe counterparty receiving the message.
MLESJFis the sandbox test counterparty. [CONFIRM: sandbox VASP ID]originator_*Your customer and the wallet address they send from.
beneficiary_*The recipient and the wallet address they receive at.
customer_idIdentifies each person. An individual needs a customer ID, full birth information, an address or a national ID.
What you should see: a
201response with the new transfer.JSON · Sample data
{"status": "success","data": {"transfer_id": "01a23e4f-9c2b-7d4a-8f31-6b0e5a927c14","reference_id": "wd-20261203-000482","amount": 0.25,"chain": "bitcoin","symbol": "BTC","protocol": "flow","beneficiary_vasp_id": "MLESJF","transfer_status": "INITIATED","transfer_type": "INSTRUCTION"}}If it fails:
Response
Meaning
Fix
401The key is missing, expired or revoked
Check
OSPREE_API_KEYand theBearerprefix403The key lacks Travel Rule write access [CONFIRM: cause of 403]
Replace the key with Travel Rule set to Read & write
422The payload was refused
Read
data[].msgin the response; it names the field and the problem200instead of201The
reference_idwas used before, so you got the earlier transfer backChange the
reference_idand send again3
Track the transfer
Look the transfer up with the
reference_idyou sent. Thetransfer_idfrom the response works too.Shell · Sample data
curl "$OSPREE_BASE_URL/travelrule/transfers/wd-20261203-000482" \-H "Authorization: Bearer $OSPREE_API_KEY"The status is under
data.transfer_data.transfer_status. The same response includes the originator and beneficiary records and both VASPs.API status
In the Dashboard
Meaning
INITIATEDIn review
Ospree has the transfer and is sending it
REVIEWIn review
The counterparty has received it and is deciding
ACCEPTEDAccepted
The counterparty confirmed the beneficiary
A new transfer reaches
REVIEWwithin a second or two. That means your first Travel Rule message has been delivered. It moves toACCEPTEDwhen the counterparty responds.Or watch it in the Dashboard: open Travel Rule and paste your
reference_idinto the search box.For every status, see Transfer Status.
Next steps
Complete the transfer. Once the funds move on-chain, call the complete action with the transaction hash.
Stop polling. Set up a webhook under Settings > Developer > Webhooks to be told when a status changes.
Handle a rejection. Send a transfer the counterparty refuses and read the reason.
Go live. Create a production key and switch
OSPREE_BASE_URL.