List all Labels
GET/api/labels
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| context | String | optional Optional filter by context (project|invoice|ticket|task|client|lead|event|note|to_do|subscription|...) |
curl -X GET "https://yoursite.com/api/labels" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
[
{ "id": "1", "title": "Hourly Project", "color": "#83c340", "context": "project", "user_id": "0", "deleted": "0" }
]