Authorize Withdrawal
curl --request POST \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/"
payload = { "token": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Private
Authorize Withdrawal
Request a withdrawal to a saved address book entry and review past withdrawals.
The destination must be provided as the ID of a confirmed address book entry rather than a raw address. Two-factor authentication is required, and first-time addresses require email confirmation before the withdrawal is released.
POST
/
api
/
private
/
v2
/
wallet
/
{asset}
/
withdrawals
/
{id}
/
authorize
/
Authorize Withdrawal
curl --request POST \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/"
payload = { "token": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/{id}/authorize/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Required string length:
1 - 1024Response
200
No response body