https://api.onswitch.xyz.
Example request
Need Help?
Send us a message
Call
Book a call with us
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authenticate the Switch REST API with your service key (x-service-key) for sandbox and production crypto payment and settlement requests.
https://api.onswitch.xyz.
curl https://api.onswitch.xyz/asset \
-H "x-service-key: $YOUR_SERVICE_KEY" \
-H "Accept: application/json"
const res = await fetch('https://api.onswitch.xyz/asset', {
headers: {
'x-service-key': process.env.YOUR_SERVICE_KEY,
'Accept': 'application/json',
},
});
import os, urllib.request
req = urllib.request.Request(
"https://api.onswitch.xyz/asset",
headers={
"x-service-key": os.environ["YOUR_SERVICE_KEY"],
"Accept": "application/json",
},
)
urllib.request.urlopen(req, timeout=30)