status_id: Uses the configured default lead status if not providedsource_id: Uses the configured default lead source if not providedassignee: Uses the configured default assignee if not providedGET /api/v1/{subdomain}/sources - List all available sources with their IDsGET /api/v1/{subdomain}/statuses - List all available statuses with their IDsGET /api/v1/{subdomain}/groups - List all available groups with their IDsGET /api/v1/{subdomain}/{resource}/{id} to get specific detailscurl --location --request POST 'https://whatsapp.qtap.chat/api/v1//contacts' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstname": "John",
"lastname": "Doe",
"company": "Acme Inc",
"type": "lead",
"email": "john.doe@example.com",
"phone": "+919876543210",
"source_id": 2,
"status_id": 1,
"description": "Potential client interested in premium services, contacted via website form",
"country_id": 101,
"assigned_id": 15,
"groups": "VIP Customers,Newsletter Subscribers,Product Updates"
}'{
"status": "success",
"message": "Contact created successfully",
"data": {
"id": 25,
"tenant_id": 13,
"firstname": "John",
"lastname": "Doe",
"company": "Corbital Technologies LLP",
"type": "lead",
"email": "john.doe@example.com",
"phone": "+919925119284",
"source_id": 2,
"status_id": 1,
"description": "Potential client interested in premium services, contacted via website form",
"country_id": 101,
"assigned_id": 15,
"addedfrom": 15,
"created_at": "2024-02-08T14:30:25.000000Z",
"updated_at": "2024-02-08T14:30:25.000000Z",
"group_id": [
1,
2,
3
]
}
}