Categories help organize leads by response type. Common categories: Interested, Not Interested, Meeting Request, Do Not Contact. Get category IDs from the categories endpoint.
Query Parameters
Request Body
The ID of the lead-campaign mapping to update. This is the campaign_lead_map_id from inbox or campaign leads endpoints.
The category ID to assign. Use null to remove category assignment. Common Categories :
1 - Interested
2 - Meeting Request
3 - Not Interested
4 - Do Not Contact
5 - Information Request
Custom categories (your defined IDs)
curl -X PATCH "https://server.smartlead.ai/api/v1/master-inbox/update-category?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"email_lead_map_id": 2433664091,
"category_id": 1
}'
Response Codes
Category updated successfully
Invalid category_id or email_lead_map_id
200 - Success
404 - Not Found
422 - Validation Error
{
"success" : true ,
"message" : "Lead category updated successfully"
}
Common Use Cases
Mark as Interested
update_category(lead_map_id, category_id = 1 ) # Interested
Mark as Not Interested
update_category(lead_map_id, category_id = 3 ) # Not Interested
Mark as Meeting Request
update_category(lead_map_id, category_id = 2 ) # Meeting Request
Remove Category
update_category(lead_map_id, category_id = None ) # Unassign
Getting email_lead_map_id
The email_lead_map_id is returned as campaign_lead_map_id from inbox endpoints:
{
"campaign_lead_map_id" : "2433664091" , // Use this as email_lead_map_id
"lead" : { ... }
}