Onboard a new customer
Header Parameters
Partner organization identifier
API authentication key
Request Body
application/json
Name of the customer company
1 <= lengthPrimary contact email address. Will be automatically added to assetsEmails if not already present.
emailUnique customer reference identifier (used for partner's internal tracking)
1 <= lengthArray of domains to monitor for security issues. Optional, but at least one of assetsDomains or assetsEmails must be provided.
Array of email addresses to monitor for breaches. Optional, but at least one of assetsDomains or assetsEmails must be provided. The contactEmail is automatically added if not present.
Array of email addresses that will receive security alerts. At least one is required.
1 <= itemsSubscription price (must be greater than or equal to 0)
double0 <= valueBilling start date in ISO 8601 format. Must be a future date.
date-timeCurrency code for billing
"AUD" | "GBP" | "USD"Service plan tier. Defaults to safeweb-basic if not provided.
"safeweb-basic""safeweb-basic" | "safeweb-plus"Enrollment type for the customer. Defaults to opt-out if not provided.
"opt-out""opt-in" | "opt-out"Whether to send monthly security reports to the customer. Defaults to false.
falseLocale code for customer communications (e.g., en-GB, en-US, da-DK). Defaults to en-GB.
"en-GB"1 <= lengthResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://connect.safeweb.co/api/integrations/customer/onboard" \ -H "SW-PARTNER-ID: string" \ -H "SW-API-KEY: string" \ -H "Content-Type: application/json" \ -d '{ "companyName": "Acme Corporation", "contactEmail": "contact@acme.co", "customerReference": "ACME-001", "assetsDomains": [ "acme.co", "www.acme.co" ], "alertRecipients": [ "alerts@acme.co" ], "price": 49.99, "billedFromDate": "2026-06-01T00:00:00.000Z", "currencyCode": "USD", "planType": "safeweb-basic", "enrolType": "opt-in", "sendMonthlyReport": true, "localeCode": "en-GB" }'{
"success": true,
"message": "Customer onboarded successfully",
"customerId": "550e8400-e29b-41d4-a716-446655440000"
}{
"success": false,
"error": "Invalid JSON in request body"
}{
"success": false,
"error": "Partner ID and API key are required in headers"
}{
"success": false,
"error": "Failed to onboard customer"
}Health Check GET
Returns the current health status of the SafeWeb API. Use this endpoint to verify the service is running and responsive.
Offboard a customer POST
Deactivates an existing customer in the SafeWeb platform. The customer must belong to the authenticated partner organization. Requires valid partner authentication via SW-PARTNER-ID and SW-API-KEY headers.