curl --request POST \
--url https://api.example.com/v1/lists \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"contact_count": 123,
"created_at": "<string>"
}
}Create a new contact list
curl --request POST \
--url https://api.example.com/v1/lists \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"contact_count": 123,
"created_at": "<string>"
}
}Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
curl -X POST \
https://data.leadlex.com/functions/v1/api-gateway/v1/lists \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Outreach Q2 2026",
"description": "Prospects for Q2 campaign"
}'
{
"data": {
"id": "xyz98765-4321-abcd-ef01-234567890xyz",
"name": "Outreach Q2 2026",
"description": "Prospects for Q2 campaign",
"contact_count": 0,
"created_at": "2026-02-24T15:30:00Z"
}
}
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing required field or duplicate name |
| 401 | invalid_key | Invalid API key |
| 403 | insufficient_permissions | Missing write permission |
| 429 | rate_limited | Rate limit exceeded |
{
"error": {
"code": "validation_error",
"message": "A list with this name already exists",
"details": {
"fields": {
"name": "Must be unique"
}
}
}
}