curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"tickets": [
{
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma",
"status": "open",
"email": "[email protected]",
"newsletter": "the news",
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T10:00:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
}
],
"anexos": []
},
{
"id": 12344,
"main": "Financeiro",
"issue": "Cobrança duplicada",
"description": "Fui cobrado duas vezes este mês",
"status": "in_progress",
"email": "[email protected]",
"newsletter": "the bizness",
"createdAt": "2024-01-13T15:30:00Z",
"updatedAt": "2024-01-14T08:00:00Z",
"tags": [],
"anexos": [
{
"id": 1,
"nomeArquivo": "comprovante.pdf",
"tamanhoArquivo": 524288
}
]
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 20,
"totalPages": 3
}
}
}
Lista tickets de suporte com filtragem e paginação
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"tickets": [
{
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma",
"status": "open",
"email": "[email protected]",
"newsletter": "the news",
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T10:00:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
}
],
"anexos": []
},
{
"id": 12344,
"main": "Financeiro",
"issue": "Cobrança duplicada",
"description": "Fui cobrado duas vezes este mês",
"status": "in_progress",
"email": "[email protected]",
"newsletter": "the bizness",
"createdAt": "2024-01-13T15:30:00Z",
"updatedAt": "2024-01-14T08:00:00Z",
"tags": [],
"anexos": [
{
"id": 1,
"nomeArquivo": "comprovante.pdf",
"tamanhoArquivo": 524288
}
]
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 20,
"totalPages": 3
}
}
}
open - Tickets abertosin_progress - Em atendimentoclosed - Fechadosdeleted - Excluídosasc - Crescente (mais antigos primeiro)desc - Decrescente (mais recentes primeiro)Show Dados da resposta
Show Estrutura do ticket
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"tickets": [
{
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma",
"status": "open",
"email": "[email protected]",
"newsletter": "the news",
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T10:00:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
}
],
"anexos": []
},
{
"id": 12344,
"main": "Financeiro",
"issue": "Cobrança duplicada",
"description": "Fui cobrado duas vezes este mês",
"status": "in_progress",
"email": "[email protected]",
"newsletter": "the bizness",
"createdAt": "2024-01-13T15:30:00Z",
"updatedAt": "2024-01-14T08:00:00Z",
"tags": [],
"anexos": [
{
"id": 1,
"nomeArquivo": "comprovante.pdf",
"tamanhoArquivo": 524288
}
]
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 20,
"totalPages": 3
}
}
}