Documentation Index Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
Use this file to discover all available pages before exploring further.
Create tags to organize your email accounts into groups for easy filtering and management. Each tag can have a custom color for visual identification.
Overview
Creates a new tag that can be assigned to email accounts. Unlike the Update Tag endpoint, this does not require an existing tag ID — the system generates one automatically.
Query Parameters
Request Body
Hex color code for the tag (e.g., #FF5733). Must be a valid 6-character hex color with # prefix. If not provided, a default color will be assigned.
curl -X POST "https://server.smartlead.ai/api/v1/tags?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Primary Senders", "color": "#4CAF50"}'
Response Codes
Invalid or missing API key
Request validation failed. Common issues:
Missing name field
Invalid hex color format (must match #RRGGBB)
200 - Success
401 - Unauthorized
422 - Validation Error
{
"ok" : true ,
"data" : {
"id" : 42 ,
"name" : "Primary Senders" ,
"color" : "#4CAF50"
}
}