Endpoint
POST
/backend/tagsBody Parameters
string
required
Tag name
string
required
Color in hexadecimal (e.g., #F59E0B)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a new tag
/backend/tagscurl -X POST "https://api.leavo.ai/backend/tags" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Priority",
"color": "#EF4444"
}'
const response = await fetch('https://api.leavo.ai/backend/tags', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Priority',
color: '#EF4444'
})
});
{
"success": true,
"data": {
"id": "new-tag-uuid",
"name": "Priority",
"color": "#EF4444",
"created_at": "2024-01-15T10:30:00Z"
}
}