Onboard a new customer
Header Parameters
Partner organization identifier
API authentication key
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/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"
}Overview of Partner API
Partner-facing APIs for customer lifecycle, breach intelligence, analytics, and event delivery.
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.