Get tag
Returns the details of a single tag.
Request
GET /api/oauth/v2/resource/todos/tags/{uuid}
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
URL parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string | Yes | Unique tag ID |
Response
Success (200 OK)
json
{
"data": {
"id": "e5f6a7b8-9012-3456-ef01-567890123456",
"name": "Urgent",
"color": "#df3a7f"
}
}Response fields
| Field | Type | Description |
|---|---|---|
data.id | string (UUID) | Unique tag ID |
data.name | string | Name of the tag |
data.color | string | Color of the tag (hex) |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/todos/tags/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope todos not present |
| 404 | not_found | Tag not found |