ticket
Get a ticket
/v1/tickets/{ticketId}Reads one ticket by id from the caller's tenant, with its note history, the time charged to it, and its sentiment reading. The sentiment reading is null when the ticket has not been analyzed, and always null for a workspace on the Free plan, which does not include ticket sentiment. Notes the PSA marks internal or internal-analysis are never returned, and a time entry's free-text notes are not served at all. Both collections carry the 100 most recent rows, oldest first, and truncated says whether that cap was reached. An id belonging to another tenant, to a hidden client, or to a ticket the PSA no longer backs answers not_found alike; existence is never leaked.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| ticketId | path | Yes | string | — |
Request body
No request body.
Responses and errors
200
Get a ticket
- id (required): string
- clientId (required): object
- siteId (required): object
- contactId (required): object
- agreementId (required): object
- recordType (required): object
- summary (required): object
- status (required): object
- priority (required): object
- board (required): object
- ownerName (required): object
- dateEntered (required): object
- requiredDate (required): object
- dateResolved (required): object
- closedDate (required): object
- closedFlag (required): boolean
- isInSla (required): object
- slaStatus (required): object
- respondMinutes (required): object
- resolveMinutes (required): object
- actualHours (required): object
- createdAt (required): string
- updatedAt (required): string
- notes (required): array
- timeEntries (required): array
- truncated (required): object
- sentiment (required): object
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
404
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- NotFoundError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request GET \
--url 'https://api.scopable.io/v1/tickets/{ticketId}' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …