SafeWeb API
Distributor API

Distributor analytics

GET
/api/v1/distributors/analytics

Header Parameters

SW-DISTRIBUTOR-ID*string

Distributor identifier

SW-API-KEY*string

API authentication key

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/distributors/analytics" \  -H "SW-DISTRIBUTOR-ID: string" \  -H "SW-API-KEY: string"
{
  "partner_count": 4,
  "customer_count": 11
}
{
  "success": false,
  "error": "Failed to verify distributor API key"
}
{
  "success": false,
  "error": "Distributor ID and API key are required in headers"
}
{
  "success": false,
  "error": "Internal server error"
}