Tài khoản — ticket hỗ trợ
Support Center dealer (/support) liệt kê ticket, tạo yêu cầu mới, mở thread (View) và reply. Integrator dùng cùng upstream với access_token user.
Dùng domain đăng ký trong mọi form — không phải hostname API.
Playground & Profile
Playground — Home feed → Nền tảng → Ticket hỗ trợ khi chạy npm run docs:stack. Profile → Account có thể tải preview danh sách ticket khi đã đăng nhập.
Id ticket công khai
Dùng ticket_id_base (id SUP-YYYYMMDD-…) cho detail và reply. Trùng ticket_id_hash từ create và ticket.id_base trong detail — không phải ticket.id số nội bộ.
List tickets
POST https://api.gommo.net/api/apps/go-mmo/support/myTickets
Content-Type: application/x-www-form-urlencoded
| Field | Bắt buộc | Ghi chú |
|---|---|---|
access_token | có | Token session user |
domain | có | Domain đăng ký |
language | tùy chọn | vd. EN, VI |
device_id, device_name, device_info | tùy chọn | Giống login |
List rỗng thường:
{ "data": [], "runtime": 0.02 }Khi có dòng, data là mảng tóm tắt — gọi detail để xem thread đầy đủ.
Create ticket
POST https://api.gommo.net/api/apps/go-mmo/support/create
| Field | Bắt buộc | Ghi chú |
|---|---|---|
subject | có | Tiêu đề |
issue_type | có | Capture: bug (UI Bug Report) |
description | có | Nội dung ban đầu |
access_token, domain | có | |
language, device_* | tùy chọn |
Thành công:
{ "ticket_id_hash": "SUP-20260925-7022", "runtime": 0.03 }Dùng ticket_id_hash làm ticket_id_base cho detail/reply.
Detail (View)
POST https://api.gommo.net/api/apps/go-mmo/support/detail
| Field | Bắt buộc | Ghi chú |
|---|---|---|
ticket_id_base | có | vd. SUP-20260925-7022 |
access_token, domain | có | |
language, device_* | tùy chọn |
Response gồm ticket, messages[], attachments[], runtime.
Reply
POST https://api.gommo.net/api/apps/go-mmo/support/reply
| Field | Bắt buộc | Ghi chú |
|---|---|---|
ticket_id_base | có | Giống detail |
content | có | Nội dung reply |
access_token, domain | có | |
language, device_* | tùy chọn |
Thành công: { "success": true, "runtime": … } — gọi lại detail để thấy message mới.
Mode B (gateway tùy chọn)
| Thao tác | Gateway (Bearer + JSON) | Upstream |
|---|---|---|
| List | POST {gateway}/gateway/support/tickets | …/support/myTickets |
| Create | POST {gateway}/gateway/support/tickets/create | …/support/create |
| Detail | POST {gateway}/gateway/support/tickets/detail | …/support/detail |
| Reply | POST {gateway}/gateway/support/tickets/reply | …/support/reply |
Alias JSON cho id ticket: ticket_id_base, ticket_id, ticketId, ticket_id_hash.
OpenAPI: openapi.yaml. SDK: @ai-gateway/client — xem SDK authentication.
→ Chương trình đối tác · Creator Rewards · Thiết bị đăng nhập · Đổi mật khẩu · Endpoint map · Deploy → Self-host (advanced)
