proxyapi. från Hugo & Friends AB
← All examples

06 / cURL

Health validator for a target

Create a scheduled check and track latency, status code, and observed IP.

You will build

Early signals when an exit or destination degrades

OperationsHealth
cURL
curl --fail --request POST https://api.proxyapi.se/v1/customer/validators   --header "Authorization: Bearer ${PROXYAPI_KEY}"   --header "Content-Type: application/json"   --data '{
    "code": "check-egress",
    "url": "https://httpbin.org/ip",
    "expected_status": 200,
    "run_interval_sec": 300
  }'

Before production

  • Validator traffic counts as usage when the check is customer-scoped.
  • Delete validators that are no longer used.