Use this API to submit new client leads into The Claim System.
POST
/api/leads/{key}
The {key} is your unique endpoint key provided by The Claim System.
Authentication is handled using the endpoint key in the URL.
| Field | Required | Example |
|---|---|---|
| reference | No | EXT-123 |
| title | Yes | Mr |
| first_name | Yes | John |
| middle_name | No | Edward |
| last_name | Yes | Smith |
| preferred_name | No | Johnny |
| dob | Yes | 1985-05-20 |
| No | john@example.com | |
| phone | Yes | +447123456789 |
{
"reference": "EXT-123",
"title": "Mr",
"first_name": "John",
"middle_name": null,
"last_name": "Smith",
"preferred_name": null,
"dob": "1985-05-20",
"email": "john@example.com",
"phone": "+447123456789"
}
Status: 201 Created
{
"success": true,
"message": "Client and claim created successfully.",
"data": {
"client_id": 123,
"claim_id": 456,
"reference": "EXT-123"
}
}
Status: 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"phone": [
"The phone format is invalid."
]
}
}
curl -X POST https://your-domain.com/api/leads/YOUR_ENDPOINT_KEY \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"reference": "EXT-123",
"title": "Mr",
"first_name": "John",
"last_name": "Smith",
"dob": "1985-05-20",
"email": "john@example.com",
"phone": "+447123456789"
}'
solicitor_id, lead_source_id, or lead_source_endpoint_id.