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

Respond to Approval Request

POST https://api.sfox.com/v1/approvals/:request_id

Approve or deny a request.

Path Parameters

Parameter
Type
Description

request_id required

int

ID of the approval request generated by sFOX you wish to respond to

Body Parameters

Parameter
Type
Description

approve required

boolean

Approves the request if true, denies the request if false

Example Requests

curl -X POST \
  -H 'Content-type: application/json' \
  -H 'Authorization: Bearer <API_TOKEN>' \
  --data '{ "approve": true}'  \
  'https://api.sfox.com/v1/approvals/1'
import requests

data = requests.post(
  "https://api.sfox.com/v1/approvals/1",
  headers={
    "Authorization": "Bearer <API_KEY>",
  },
  data={
    "approve": True
  }
)
print(data)
import requests

data = requests.patch(
  "https://api.sfox.com/v1/approval-rules/1",
  headers={
    "Authorization": "Bearer <API_KEY>",
  },
  data={
   "required_approvals": 3,
   "threshold": 500
  }
)
print(data)

Last updated