For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Approval Rules

GET https://api.sfox.com/v1/approval-rules

Retrieve a list of the approval rules you have created in your account.

sFOX SAFE Custody is available all sFOX users. However, access is not granted by default. Learn more and request access here.

Responses

200
{
    "data": [
      {
        "id": 3,
        "available_approver_count": 2,
        "date_added": "2021-03-17T16:19:47.000Z",
        "required_approvals": 2,
        "rule_type": "WITHDRAW",
        "status": "Pending Approval",
        "threshold": 20
      }
    ]
}

Example Requests

curl -H 'Authorization: Bearer <API_TOKEN>' \
'https://api.sfox.com/v1/approval-rules'
const axios = require('axios');

axios({
  method: 'get',
  url: 'https://api.sfox.com/v1/approval-rules',
  headers: {
    'Authorization': 'Bearer <API_KEY>'
  }
}).then(response => {
  console.log(response)
}).catch(err => {
  console.error(err)
});
import requests

data = requests.get(
  "https://api.sfox.com/v1/approval-rules",
  headers={
    "Authorization": "Bearer <API_KEY>",
  }
)
print(data)

Last updated