POST /api/tags
Creates a new tag that can be applied to tasks. Any authenticated user can create tags, subject to a rate limit.
This endpoint is rate-limited to 20 requests per hour per user.
Authentication
Requires a valid Bearer access token.Request Body
The name for the new tag. Must be unique across all tags. Maximum 50 characters.
A hex color code to visually identify the tag. Must match the pattern
^#[0-9A-Fa-f]{6}$ (e.g. #FF5733). Defaults to #808080 if not provided.An optional description of the tag’s purpose. Maximum 255 characters.
Response
Returns201 Created on success.
true when the tag is created successfully.Human-readable confirmation message.
The newly created tag object.
Errors
| Status | Description |
|---|---|
400 | Missing required name field, or color does not match the required hex pattern. |
401 | Missing or invalid access token. |
409 | A tag with the given name already exists. |
429 | Rate limit exceeded (20 requests per hour). |