Dapatkan Detail Tiket
Menyediakan kemampuan untuk melakukan kueri dan mengambil detail tiket berdasarkan ID tiket.
Metode Permintaan
GET
URL Permintaan
https://livedesk-api.engagelab.com/api/v2/accounts/tickets/:ticket_id
Autentikasi
Untuk detailnya, lihat deskripsi metode autentikasi di Ikhtisar API.
Permintaan
Contoh Permintaan
curl -X GET 'https://livedesk-api.engagelab.com/api/v2/accounts/tickets/:ticket_id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic base64(api_key:api_secret)' \
curl -X GET 'https://livedesk-api.engagelab.com/api/v2/accounts/tickets/:ticket_id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic base64(api_key:api_secret)' \
Tampilkan blok kode ini di jendela mengambang
Parameter Path
| Field | Type | Required | Description |
|---|---|---|---|
| ticket_id | String | Yes | ID tiket. |
Respons
Contoh Respons
{
"code": 0,
"message": "Success",
"data": {
"ticket_id": "tk_20251104_789abc",
"title": "打印机卡纸,无法打印",
"description": "客户反映A4纸卡在出纸口,急需处理。",
"attachments": [
{
"file_url": "https://example.com/files/error.jpg"
}
],
"status": "open",
"priority": "high",
"ticket_type": "incident",
"requester": {
"euid": "contact_12345",
"name": "张三",
"email": "zhangsan@example.com",
"phone": "+8613900000000",
"channel_contacts": {
"channel_id": "inbox_100",
"contact_id": "-1001234567890",
"sub_contact_id": "23232323",
"followers": ["u_12345", "u_67890"]
}
},
"submitter": {
"id": "u_99999"
},
"assignment_team": {
"id": 5,
"name": "IT支持"
},
"custom_fields": {
"device_sn": "PRN-2024-001"
},
"conversation_list": [
{
"message_id": "msg_20251104_001",
"sender": {
"id": "u_12345",
"type": "internal_member",
"name": "客服小李"
},
"content": "我们已收到你的反馈,正在处理。",
"content_type": "text",
"attachments": [
{
"file_type": "image/jpeg",
"file_url": "https://example.com/files/progress.jpg"
},
{
"file_type": "application/pdf",
"file_url": "https://example.com/files/report.pdf"
}
],
"sent_at": "2025-11-19T05:55:25Z",
"is_internal": false
}
],
"status_changes": [
{
"to_status": "in_progress",
"changed_at": "2025-11-04T09:25:00+08:00",
"changed_by_type": "user",
"changed_by_id": "u_12345"
},
{
"to_status": "resolved",
"changed_at": "2025-11-04T10:30:00+08:00",
"changed_by_type": "system"
}
],
"tags": ["printer", "hardware"],
"sla": {
"first_response_due": "2025-11-04T10:00:00+08:00",
"resolution_due": "2025-11-05T18:00:00+08:00",
"first_response_at": "2025-11-04T09:20:00+08:00",
"breached": false
},
"followers": [
{ "id": "u_12345" },
{ "id": "u_67890" }
],
"satisfactions": {
"rating": 5,
"feedback": "处理很快",
"submitted_at": "2025-11-05T09:20:00+08:00"
},
"created_at": "2025-11-04T09:15:22+08:00",
"updated_at": "2025-11-04T09:18:45+08:00",
"resolved_at": null,
"closed_at": null
}
}
{
"code": 0,
"message": "Success",
"data": {
"ticket_id": "tk_20251104_789abc",
"title": "打印机卡纸,无法打印",
"description": "客户反映A4纸卡在出纸口,急需处理。",
"attachments": [
{
"file_url": "https://example.com/files/error.jpg"
}
],
"status": "open",
"priority": "high",
"ticket_type": "incident",
"requester": {
"euid": "contact_12345",
"name": "张三",
"email": "zhangsan@example.com",
"phone": "+8613900000000",
"channel_contacts": {
"channel_id": "inbox_100",
"contact_id": "-1001234567890",
"sub_contact_id": "23232323",
"followers": ["u_12345", "u_67890"]
}
},
"submitter": {
"id": "u_99999"
},
"assignment_team": {
"id": 5,
"name": "IT支持"
},
"custom_fields": {
"device_sn": "PRN-2024-001"
},
"conversation_list": [
{
"message_id": "msg_20251104_001",
"sender": {
"id": "u_12345",
"type": "internal_member",
"name": "客服小李"
},
"content": "我们已收到你的反馈,正在处理。",
"content_type": "text",
"attachments": [
{
"file_type": "image/jpeg",
"file_url": "https://example.com/files/progress.jpg"
},
{
"file_type": "application/pdf",
"file_url": "https://example.com/files/report.pdf"
}
],
"sent_at": "2025-11-19T05:55:25Z",
"is_internal": false
}
],
"status_changes": [
{
"to_status": "in_progress",
"changed_at": "2025-11-04T09:25:00+08:00",
"changed_by_type": "user",
"changed_by_id": "u_12345"
},
{
"to_status": "resolved",
"changed_at": "2025-11-04T10:30:00+08:00",
"changed_by_type": "system"
}
],
"tags": ["printer", "hardware"],
"sla": {
"first_response_due": "2025-11-04T10:00:00+08:00",
"resolution_due": "2025-11-05T18:00:00+08:00",
"first_response_at": "2025-11-04T09:20:00+08:00",
"breached": false
},
"followers": [
{ "id": "u_12345" },
{ "id": "u_67890" }
],
"satisfactions": {
"rating": 5,
"feedback": "处理很快",
"submitted_at": "2025-11-05T09:20:00+08:00"
},
"created_at": "2025-11-04T09:15:22+08:00",
"updated_at": "2025-11-04T09:18:45+08:00",
"resolved_at": null,
"closed_at": null
}
}
Tampilkan blok kode ini di jendela mengambang
Parameter Respons
| Field | Type | Required | Description |
|---|---|---|---|
| ticket_id | String | Yes | ID tiket unik. |
| title | String | Yes | Judul tiket. |
| description | String | Yes | Deskripsi detail tiket (mendukung Markdown). |
| attachments | Array | No | Daftar lampiran tingkat tiket. |
| file_name | String | Yes | Nama file. |
| file_type | String | Yes | Tipe MIME. |
| file_url | String | Yes | URL file. |
| file_size | String | Yes | Ukuran file. |
| status | String | Yes | Status tiket: open/in_progress/resolved/closed, dll. |
| priority | String | No | Prioritas: low/medium/high/urgent. |
| ticket_type | String | No | Jenis tiket: incident/question/problem/task. |
| requester | Object | Yes | Informasi peminta. |
| euid | String | No | ID kontak unik. |
| name | String | No | Nama kontak. |
| String | No | Email kontak. | |
| phone | String | No | Nomor ponsel kontak. |
| channel_contacts | Object | No | Pemetaan kontak channel (setidaknya salah satu dari field ini dan euid harus ada). |
| channel_id | String | Yes | ID channel. |
| contact_id | String | Yes | ID kontak channel (seperti chat_id TG). |
| sub_contact_id | String | No | ID sub-kontak channel (seperti topic_id TG atau thread_id email). |
| followers | Array | No | Informasi ID pengikut yang digunakan untuk notifikasi push di dalam channel, mencakup field id dan name. |
| submitter | Object | No | Anggota internal yang mengirim tiket. |
| id | String | Yes | ID pengguna pengirim. |
| assignment_team | Object | No | Informasi tim yang ditugaskan. |
| id | Integer | Yes | ID tim. |
| name | String | Yes | Nama tim. |
| custom_fields | Object | No | Field kustom, seperti nomor seri perangkat atau nomor pesanan. |
| device_sn | String | Yes | Nomor seri perangkat. |
| conversation_list | Array | Yes | Riwayat pesan lengkap dalam tiket. |
| message_id | String | Yes | ID pesan unik. |
| sender | Object | Yes | Informasi pengirim. |
| id | String | Yes | ID pengirim. |
| type | String | Yes | Jenis pengirim: internal_member/system/bot. |
| name | String | No | Nama pengirim. |
| content | String | No | Konten teks pesan. |
| content_type | String | Yes | Jenis konten: text/image/file/audio/video. |
| attachments | Array | No | Daftar lampiran pesan. |
| file_type | String | Yes | Tipe MIME. |
| file_url | String | Yes | URL file. |
| sent_at | String | Yes | Waktu pengiriman (ISO 8601). |
| is_internal | boolean | Yes | Apakah pesan bersifat internal (tidak terlihat oleh pelanggan). |
| status_changes | Array | No | Catatan perubahan status tiket. |
| to_status | String | No | Status setelah perubahan (open/resolved atau kode kustom). |
| changed_at | String | No | Waktu perubahan (ISO 8601). |
| changed_by_type | String | No | Sumber perubahan: user/system/bot. |
| changed_by_id | String | No | Dikembalikan saat changed_by_type adalah user. |
| tags | Array | No | Tag tiket. |
| sla | Object | No | Informasi SLA (service-level agreement). |
| first_response_due | String | No | Batas waktu respons pertama. |
| resolution_due | String | No | Batas waktu penyelesaian. |
| first_response_at | String | No | Waktu respons pertama aktual. |
| breached | boolean | No | Apakah SLA dilanggar. |
| followers | Array | No | Daftar pengikut. |
| satisfactions | Object | No | Hasil survei kepuasan. |
| rating | Integer | No | Penilaian dari 1 hingga 5. |
| feedback | String | No | Umpan balik teks. |
| submitted_at | String | No | Waktu pengiriman. |
| created_at | String | Yes | Waktu pembuatan tiket (ISO 8601). |
| updated_at | String | Yes | Waktu pembaruan tiket terakhir. |
| resolved_at | String | No | Waktu penyelesaian (null jika belum diselesaikan). |
| closed_at | String | No | Waktu penutupan (null jika belum ditutup). |










