curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support/12345" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma. Aparece erro 500.",
"status": "in_progress",
"priority": "high",
"email": "[email protected]",
"newsletter": "the news",
"wantReply": true,
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T14:30:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
},
{
"id": 3,
"name": "bug",
"color": "#FFA500"
}
],
"anexos": [
{
"id": 1,
"nomeArquivo": "erro_screenshot.png",
"tipoArquivo": "image/png",
"tamanhoArquivo": 245760,
"createdAt": "2024-01-14T10:00:00Z"
}
],
"mensagens": [
{
"id": 1,
"conteudo": "Estamos analisando o problema reportado.",
"remetente": "suporte",
"createdAt": "2024-01-14T11:00:00Z"
},
{
"id": 2,
"conteudo": "Identificamos o erro. Uma correção está sendo implementada.",
"remetente": "suporte",
"createdAt": "2024-01-14T14:30:00Z"
}
]
}
}
Obtém os detalhes completos de um ticket específico
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support/12345" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma. Aparece erro 500.",
"status": "in_progress",
"priority": "high",
"email": "[email protected]",
"newsletter": "the news",
"wantReply": true,
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T14:30:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
},
{
"id": 3,
"name": "bug",
"color": "#FFA500"
}
],
"anexos": [
{
"id": 1,
"nomeArquivo": "erro_screenshot.png",
"tipoArquivo": "image/png",
"tamanhoArquivo": 245760,
"createdAt": "2024-01-14T10:00:00Z"
}
],
"mensagens": [
{
"id": 1,
"conteudo": "Estamos analisando o problema reportado.",
"remetente": "suporte",
"createdAt": "2024-01-14T11:00:00Z"
},
{
"id": 2,
"conteudo": "Identificamos o erro. Uma correção está sendo implementada.",
"remetente": "suporte",
"createdAt": "2024-01-14T14:30:00Z"
}
]
}
}
Show Dados completos do ticket
curl -X GET "https://sac-waffle-v2.theo-110.workers.dev/support/12345" \
-H "Authorization: Bearer seu_token_jwt"
{
"success": true,
"data": {
"id": 12345,
"main": "Técnico",
"issue": "Erro no login",
"description": "Não consigo fazer login na plataforma. Aparece erro 500.",
"status": "in_progress",
"priority": "high",
"email": "[email protected]",
"newsletter": "the news",
"wantReply": true,
"createdAt": "2024-01-14T10:00:00Z",
"updatedAt": "2024-01-14T14:30:00Z",
"tags": [
{
"id": 1,
"name": "urgente",
"color": "#FF0000"
},
{
"id": 3,
"name": "bug",
"color": "#FFA500"
}
],
"anexos": [
{
"id": 1,
"nomeArquivo": "erro_screenshot.png",
"tipoArquivo": "image/png",
"tamanhoArquivo": 245760,
"createdAt": "2024-01-14T10:00:00Z"
}
],
"mensagens": [
{
"id": 1,
"conteudo": "Estamos analisando o problema reportado.",
"remetente": "suporte",
"createdAt": "2024-01-14T11:00:00Z"
},
{
"id": 2,
"conteudo": "Identificamos o erro. Uma correção está sendo implementada.",
"remetente": "suporte",
"createdAt": "2024-01-14T14:30:00Z"
}
]
}
}