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