Skip to main content
GET
https://sac-waffle-v2.theo-110.workers.dev
/
support
/
tags
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support/tags" \
  -H "Authorization: Bearer seu_token_jwt"
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Aguardando Cliente",
      "color": "#FFA500",
      "isDefault": false,
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedAt": "2024-03-20T10:00:00Z"
    },
    {
      "id": 2,
      "name": "Novo",
      "color": "#00FF00",
      "isDefault": true,
      "createdAt": "2024-03-20T10:01:00Z",
      "updatedAt": "2024-03-20T10:01:00Z"
    },
    {
      "id": 3,
      "name": "Urgente",
      "color": "#FF0000",
      "isDefault": false,
      "createdAt": "2024-03-20T10:02:00Z",
      "updatedAt": "2024-03-20T10:02:00Z"
    }
  ]
}

Descrição

Retorna uma lista de todas as tags de suporte cadastradas, ordenadas alfabeticamente pelo nome. Requer autenticação.

Headers

Authorization
string
required
Bearer token JWT para autenticação

Response

success
boolean
required
Indica se a operação foi bem-sucedida
data
array
Lista de tags cadastradas
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support/tags" \
  -H "Authorization: Bearer seu_token_jwt"
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Aguardando Cliente",
      "color": "#FFA500",
      "isDefault": false,
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedAt": "2024-03-20T10:00:00Z"
    },
    {
      "id": 2,
      "name": "Novo",
      "color": "#00FF00",
      "isDefault": true,
      "createdAt": "2024-03-20T10:01:00Z",
      "updatedAt": "2024-03-20T10:01:00Z"
    },
    {
      "id": 3,
      "name": "Urgente",
      "color": "#FF0000",
      "isDefault": false,
      "createdAt": "2024-03-20T10:02:00Z",
      "updatedAt": "2024-03-20T10:02:00Z"
    }
  ]
}