Skip to main content
POST
/
api
/
v1
/
email-accounts
/
tag-manager
curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/tag-manager?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": 1, "name": "VIP", "color": "#FF5733"}'
{
  "ok": true,
  "data": {
    "id": 1,
    "name": "VIP",
    "color": "#FF5733"
  }
}
Tags are created at the account level and can be used to organize both email accounts and leads. This is the same endpoint used for email account tag creation.

Query Parameters

api_key
string
required
Your SmartLead API key

Request Body

id
number
required
Tag ID. Use an existing ID to update.
name
string
required
Tag name
color
string
required
Hex color code (e.g., #FF5733)
curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/tag-manager?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": 1, "name": "VIP", "color": "#FF5733"}'

Response Codes

200
Success
Request successful
400
Bad Request
Invalid request parameters or malformed request body
401
Unauthorized
Invalid or missing API key
422
Validation Error
Request validation failed. Check parameter types and constraints.
{
  "ok": true,
  "data": {
    "id": 1,
    "name": "VIP",
    "color": "#FF5733"
  }
}