Create Approval Rule

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

Add a new crypto address to your account's whitelisted withdrawal addresses.

Body Parameters

Parameter
Type
Description

rule_type required

string

The type of approval rule to create. Possible values:

  • WITHDRAW: Approval rule for withdrawals.

  • ADD_ALTER_COLL: Adding/editing users in your account.

  • ALTER_SAFE: Adding/editing approval rules in your account.

required_approvals required

int

Number of approvals needed for the action to be approved.

threshold

number

The withdrawal amount (USD) required for the action to require approvals. Required if rule_type = WITHDRAW

Responses

200
{
  id: 1,
  rule_type: "WITHDRAW",
  date_added: "2021-03-17T16:19:47.000Z",
  status: "Pending",
  available_approver_count: 2,
  required_approvals: 2,
  threshold: 0,
}

Example Requests

curl -X POST \
  -H 'Content-type: application/json' \
  -H 'Authorization: Bearer <API_TOKEN>' \
  --data '{ "rule_type":  "WITHDRAW", 
            "required_approvals":  2, 
            "threshold":  100 }'  \
  'https://api.sfox.com/v1/approval-rules'

Last updated