List my support tickets
Lists only support tickets opened by the acting PAT/OAuth user, ordered by newest message first. Tickets opened by workspace colleagues are never returned.
GET
/support/ticketsAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredResponses
200The acting user’s support tickets.
Array of
SupportTicketDtocreatedAtstring<date-time>requiredWhen the ticket was opened.
idstringrequiredSupport ticket UUID.
lastMessageAtstring<date-time>requiredWhen the newest message was created.
lastMessageAuthorSidestringrequiredWhich side wrote the newest message.
Allowed:
UserAdminlastMessageTextBodystringrequiredPlain-text preview of the newest message.
statusstringrequiredCurrent ticket status.
Allowed:
OpenClosedtitlestringrequiredGenerated ticket title, or the immediate first-message fallback while generation is running.
titleIsGeneratingbooleanrequiredWhether a generated title is still being prepared.
unreadbooleanrequiredWhether the acting opener has an unread message from the Leadtime team.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/support/tickets" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/support/tickets", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/support/tickets",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
[
{
"createdAt": "2019-08-24T14:15:22Z",
"id": "5532b85e-bef7-48c9-9272-9de7c63a1234",
"lastMessageAt": "2019-08-24T14:15:22Z",
"lastMessageAuthorSide": "User",
"lastMessageTextBody": "The project page stays blank after I select it.",
"status": "Open",
"title": "Project page stays blank",
"titleIsGenerating": true,
"unread": true
}
]Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions