Mint WebSocket token
curl --request POST \
--url https://api.sand.etherfuse.com/ramp/ws-api-token \
--header 'Authorization: <api-key>'const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.sand.etherfuse.com/ramp/ws-api-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/ws-api-token"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"token": "<string>"
}WebSocket
Mint WebSocket token
Mints a short-lived, org-scoped WebSocket authentication token. Use it to authenticate a WebSocket connection for live order and status updates. The org is taken from your verified API key, so the token is org-scoped and user-less.
POST
/
ramp
/
ws-api-token
Mint WebSocket token
curl --request POST \
--url https://api.sand.etherfuse.com/ramp/ws-api-token \
--header 'Authorization: <api-key>'const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.sand.etherfuse.com/ramp/ws-api-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/ws-api-token"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"token": "<string>"
}