Get one of the authenticated caller's support tickets and its thread.
GET
/v1/support/{id}
const url = 'https://api.share2.us/v1/support/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.share2.us/v1/support/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”Ticket detail and thread.
Media typeapplication/json
object
ticket
required
object
id
required
string format: uuid
account_id
string format: uuid
email
string format: email
subject
required
string
message
string
status
required
string
merged_into
string format: uuid
closed_by
string
closed_at
string format: date-time
resolution_note
string
satisfaction_rating
integer
resolution_feedback
string
created_at
required
string format: date-time
updated_at
required
string format: date-time
message_count
integer
last_message_preview
string
last_author_type
string
messages
required
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
author_type
required
string
author_email
required
string format: email
body
required
string
created_at
required
string format: date-time
activity
Array<object>
object
event_type
required
string
occurred_at
required
string format: date-time
share_public_id
string
description
string
attachments
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
message_id
string format: uuid
uploader_type
required
string
file_name
required
string
content_type
required
string
size_bytes
required
integer
created_at
required
string format: date-time
attachments
Ticket-level attachments without an associated message.
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
message_id
string format: uuid
uploader_type
required
string
file_name
required
string
content_type
required
string
size_bytes
required
integer
created_at
required
string format: date-time
Example
{ "ticket": { "status": "open", "closed_by": "user", "last_author_type": "user" }, "messages": [ { "author_type": "user", "attachments": [ { "uploader_type": "user", "content_type": "text/plain" } ] } ], "attachments": [ { "uploader_type": "user", "content_type": "text/plain" } ]}Ticket not found or not owned by the caller.
default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}