SafeWeb API

Get customer monitored assets

GET
/api/integrations/customer/{customerId}/assets

Path Parameters

customerId*string

Customer UUID

Formatuuid

Header Parameters

SW-PARTNER-ID*string

Partner organization identifier

SW-API-KEY*string

API authentication key

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://connect.safeweb.co/api/integrations/customer/497f6eca-6276-4993-bfeb-53cbbbba6f08/assets" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string"
{
  "success": true,
  "domains": [
    "example.com",
    "sub.example.com"
  ],
  "emails": [
    "user@example.com",
    "admin@example.com"
  ]
}
{
  "success": false,
  "error": "Customer ID is required"
}
{
  "success": false,
  "error": "Failed to verify org API key"
}
{
  "success": false,
  "error": "Customer not found or does not belong to partner"
}
{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}
{
  "success": false,
  "error": "Failed to retrieve customer assets"
}