Lewati ke konten

Helpdesk API

Konten ini belum tersedia dalam bahasa Anda.

Tickets: open, read, reply, update and close. Every endpoint below is part of the stable v1 contract. Base URL https://app.aio.opexcg.com; send your key in X-API-Key.

  • GET /api/helpdesk/tickets: List tickets
  • GET /api/helpdesk/tickets/:id: Get a ticket
  • POST /api/helpdesk/tickets: Open a ticket
  • PATCH /api/helpdesk/tickets/:id: Update a ticket
  • POST /api/helpdesk/tickets/:id/events: Reply or add a note
  • POST /api/helpdesk/tickets/:id/close: Close a ticket

List tickets

GET /api/helpdesk/tickets

Tickets visible to the caller, newest first by default. Without ticket:read the page is empty. The workspace-wide queue needs helpdesk:tickets:browse; without it, pass mine=1 to list your own tickets. Client users see their own tickets, and client admins their company’s.

Sort keys: created_at (default), modified_at, priority, status, number, title, sla_due (soonest first).

  • Product: Helpdesk (helpdesk)
  • Permission (any of): ticket:read

Query parameters

Field Type Required Description
page string no 1-based page number. Default 1.
pageSize string no Rows per page, 1 to 100. Larger values are clamped. Default 20.
search string no Free-text filter (trimmed, first 200 characters).
sort string no Sort key. Unknown keys fall back to the endpoint’s default sort.
dir string no asc or desc (default).
mine string no Only tickets you requested, created or the requester cc’d you on (collaborators). Follower assignments made by admins or support managers are not included. 1 or true to enable. Callers without helpdesk:tickets:browse need it to see anything.
status string no Status code, e.g. new, in_progress, resolved.
priority string no Priority: low, normal, high or urgent.
category string no Category text.
from string no Created at or after this time (epoch milliseconds).
to string no Created at or before this time (epoch milliseconds).

Response 200

One page of tickets.

Field Type Description
items object[]
items[].id string
items[].number string Human-facing number, e.g. SUP-2026-000011.
items[].title string
items[].body string HTML.
items[].status string Current status code.
items[].priority string
items[].category string | null
items[].module string | null
items[].product string | null
items[].project_id string | null
items[].product_id string | null
items[].requester_id string | null
items[].requester_name string | null
items[].assignee_id string | null
items[].assignee_name string | null
items[].company_name string | null
items[].sla_due number | null Resolution deadline, epoch milliseconds.
items[].ai_answered number 1 when the AI answered the ticket.
items[].created_at number
items[].modified_at number | null
items[].resolved_at number | null
items[].masters object Display data of the status, priority and category.
items[].masters.status object
items[].masters.status.id string | null
items[].masters.status.code string
items[].masters.status.name string
items[].masters.status.color string | null
items[].masters.status.final boolean Status only: whether this status ends the ticket.
items[].masters.priority object
items[].masters.priority.id string | null
items[].masters.priority.code string
items[].masters.priority.name string
items[].masters.priority.color string | null
items[].masters.priority.final boolean Status only: whether this status ends the ticket.
items[].masters.category object
items[].masters.category.id string | null
items[].masters.category.code string
items[].masters.category.name string
items[].masters.category.color string | null
items[].masters.category.final boolean Status only: whether this status ends the ticket.
total number
page number
pageSize number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Example

Terminal window
curl -X GET 'https://app.aio.opexcg.com/api/helpdesk/tickets?pageSize=2&search=CSV' \
-H "X-API-Key: $OPEX_API_KEY"

Response 200:

{
"items": [
{
"id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"tenant_id": "opexcg-tenant",
"company_id": "comp-xyzind",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"product_id": "prod-epicor",
"scope": null,
"impact": null,
"complexity": null,
"service_contract_id": null,
"number": "SUP-2026-000013",
"title": "Export to CSV times out",
"body": "Exporting more than 5,000 rows times out after 30 seconds.",
"module": null,
"product": null,
"epicor_environment": null,
"priority": "high",
"status": "new",
"category": null,
"triage_confidence": null,
"triage_reasoning": null,
"triage_completed_at": null,
"triage_completed_by": null,
"triage_completed_reason": null,
"triage_completed_manually": 0,
"ai_answered": 0,
"suggested_assignee_id": null,
"assignee_id": null,
"assigned_product_group_id": null,
"assigned_project_group_id": null,
"requester_id": "usr-fitri-handayani",
"external_requester_email": null,
"external_requester_name": null,
"email_route_id": null,
"source": "web",
"external_id": null,
"duplicate_of_id": null,
"dup_score": null,
"resolution_text": null,
"sla_due": 1794138449198,
"sla_policy_id": "slp-default",
"sla_response_mins": 240,
"sla_resolution_mins": 1440,
"sla_business_hours": "24x7",
"effort_hours": null,
"week_start": null,
"created_at": 1794052049198,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052049198,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"resolved_at": null,
"last_client_reply_at": 1794052049198,
"last_agent_reply_at": 1794052049198,
"last_status_change_at": 1794052049198,
"external_updated_at": null,
"ticket_category_id": null,
"ticket_priority_id": null,
"ticket_status_id": "st-NEW",
"masters": {
"category": {
"id": null,
"code": "",
"name": "—",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"priority": {
"id": null,
"code": "high",
"name": "High",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"status": {
"id": "st-NEW",
"code": "NEW",
"name": "New",
"color": "blue",
"group": "OPEN",
"group_name": "Open",
"rank": null,
"active": true,
"resolved": false,
"final": false,
"isFallback": false
}
},
"company_name": "XYZ Industries",
"requester_name": "Fitri Handayani",
"product_name": "Epicor",
"assignee_name": null,
"assignee_avatar_url": null,
"assignee_active": null,
"sla_policy_name": "Workspace Default",
"triage": {
"locked": true,
"lockReason": "Complete the triage review before assigning a consultant."
}
}
],
"total": 1,
"page": 1,
"pageSize": 2
}

Get a ticket

GET /api/helpdesk/tickets/:id

One ticket with its conversation (events). Internal notes are included only for internal staff.

  • Product: Helpdesk (helpdesk)
  • Permission (any of): ticket:read

Path parameters

Field Type Required Description
id string yes Ticket id (not the SUP- number).

Response 200

The ticket.

Field Type Description
ticket object
ticket.id string
ticket.number string Human-facing number, e.g. SUP-2026-000011.
ticket.title string
ticket.body string HTML.
ticket.status string Current status code.
ticket.priority string
ticket.category string | null
ticket.module string | null
ticket.product string | null
ticket.project_id string | null
ticket.product_id string | null
ticket.requester_id string | null
ticket.requester_name string | null
ticket.assignee_id string | null
ticket.assignee_name string | null
ticket.company_name string | null
ticket.sla_due number | null Resolution deadline, epoch milliseconds.
ticket.ai_answered number 1 when the AI answered the ticket.
ticket.created_at number
ticket.modified_at number | null
ticket.resolved_at number | null
ticket.masters object Display data of the status, priority and category.
ticket.masters.status object
ticket.masters.status.id string | null
ticket.masters.status.code string
ticket.masters.status.name string
ticket.masters.status.color string | null
ticket.masters.status.final boolean Status only: whether this status ends the ticket.
ticket.masters.priority object
ticket.masters.priority.id string | null
ticket.masters.priority.code string
ticket.masters.priority.name string
ticket.masters.priority.color string | null
ticket.masters.priority.final boolean Status only: whether this status ends the ticket.
ticket.masters.category object
ticket.masters.category.id string | null
ticket.masters.category.code string
ticket.masters.category.name string
ticket.masters.category.color string | null
ticket.masters.category.final boolean Status only: whether this status ends the ticket.
events object[] The conversation, oldest first.
events[].id string
events[].kind string comment, internal_note, status_change, …
events[].author_kind "human" | "ai" | "system"
events[].author_id string | null
events[].author_name string | null
events[].body string | null HTML.
events[].created_at number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X GET 'https://app.aio.opexcg.com/api/helpdesk/tickets/8defe6e2-afcd-46ba-a041-da8fdd7665ff' \
-H "X-API-Key: $OPEX_API_KEY"

Response 200:

{
"ticket": {
"id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"tenant_id": "opexcg-tenant",
"company_id": "comp-xyzind",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"product_id": "prod-epicor",
"scope": null,
"impact": null,
"complexity": null,
"service_contract_id": null,
"number": "SUP-2026-000013",
"title": "Export to CSV times out",
"body": "Exporting more than 5,000 rows times out after 30 seconds.",
"module": null,
"product": null,
"epicor_environment": null,
"priority": "high",
"status": "new",
"category": null,
"triage_confidence": null,
"triage_reasoning": null,
"triage_completed_at": null,
"triage_completed_by": null,
"triage_completed_reason": null,
"triage_completed_manually": 0,
"ai_answered": 0,
"suggested_assignee_id": null,
"assignee_id": null,
"assigned_product_group_id": null,
"assigned_project_group_id": null,
"requester_id": "usr-fitri-handayani",
"external_requester_email": null,
"external_requester_name": null,
"email_route_id": null,
"source": "web",
"external_id": null,
"duplicate_of_id": null,
"dup_score": null,
"resolution_text": null,
"sla_due": 1794138449198,
"sla_policy_id": "slp-default",
"sla_response_mins": 240,
"sla_resolution_mins": 1440,
"sla_business_hours": "24x7",
"effort_hours": null,
"week_start": null,
"created_at": 1794052049198,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052049198,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"resolved_at": null,
"last_client_reply_at": 1794052049198,
"last_agent_reply_at": 1794052049198,
"last_status_change_at": 1794052049198,
"external_updated_at": null,
"ticket_category_id": null,
"ticket_priority_id": null,
"ticket_status_id": "st-NEW",
"requester_name": "Fitri Handayani",
"assignee_name": null,
"assignee_avatar_url": null,
"masters": {
"category": {
"id": null,
"code": "",
"name": "—",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"priority": {
"id": null,
"code": "high",
"name": "High",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"status": {
"id": "st-NEW",
"code": "NEW",
"name": "New",
"color": "blue",
"group": "OPEN",
"group_name": "Open",
"rank": null,
"active": true,
"resolved": false,
"final": false,
"isFallback": false
}
}
},
"events": [
{
"id": "5468efd1-0b36-4e67-9c5e-9abc6b03bd99",
"tenant_id": "opexcg-tenant",
"ticket_id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"author_id": null,
"author_kind": "system",
"kind": "status_change",
"body": "Ticket created — New",
"meta_json": null,
"created_at": 1794052049198,
"created_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"external_id": null,
"synced": 0,
"author_name": null,
"author_avatar_url": null
},
{
"id": "85307395-dee3-48b7-bede-1308e17fe64d",
"tenant_id": "opexcg-tenant",
"ticket_id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"author_id": null,
"author_kind": "system",
"kind": "comment",
"body": "Thank you for contacting OpexCG support. Your ticket has been received and our team will review it shortly. Ticket number: SUP-2026-000013",
"meta_json": "{\"source\":\"automation\",\"kind\":\"auto_reply\"}",
"created_at": 1794052049404,
"created_by": null,
"deleted_at": null,
"deleted_by": null,
"external_id": null,
"synced": 0,
"author_name": null,
"author_avatar_url": null
}
],
"supportWarning": {
"type": "no_agreement",
"message": "Project \"Customer portal rollout\" has no Support Service Agreement. Consider rejecting this ticket.",
"internalMessage": "Project \"Customer portal rollout\" has no Support Service Agreement. Consider rejecting this ticket.",
"clientMessage": "Project \"Customer portal rollout\" has no active Support Service Agreement. This ticket may be rejected.",
"expiryDate": null
},
"collaborators": null,
"journey": {
"visitedCodes": [
"NEW"
],
"currentCategory": "OPEN",
"previousStage": null
},
"triage": {
"complete": false,
"completeWithoutAi": false,
"awaitingReview": false,
"locked": true,
"lockReason": "Complete the triage review before assigning a consultant.",
"phase": "queued"
}
}

Open a ticket

POST /api/helpdesk/tickets

Opens a ticket on a project (projectId), or on a product (productId), in which case the company is resolved from the requester’s email domain. Any member may open a ticket. The response says whether the ticket looks like a duplicate and whether the AI answered it straight away.

  • Product: Helpdesk (helpdesk)
  • Permission: any member

Request body (JSON)

Field Type Required Description
projectId string no min length 1
productId string no min length 1
companyId string no min length 1
companyName string no min length 1, max length 120
title string yes min length 3, max length 200
body string yes min length 1, max length 20000
module string no max length 80
epicorEnvironment string no max length 80
priorityId string no min length 1
categoryId string no min length 1
priority "low" | "normal" | "high" | "urgent" no default "normal"
customFields object no
collaboratorIds string[] no max 20 items
ccCompanyGroup boolean no
ccEmails string[] no max 10 items

Response 201

The new ticket.

Field Type Description
ticket object
ticket.id string
ticket.number string Human-facing number, e.g. SUP-2026-000011.
ticket.title string
ticket.body string HTML.
ticket.status string Current status code.
ticket.priority string
ticket.category string | null
ticket.module string | null
ticket.product string | null
ticket.project_id string | null
ticket.product_id string | null
ticket.requester_id string | null
ticket.requester_name string | null
ticket.assignee_id string | null
ticket.assignee_name string | null
ticket.company_name string | null
ticket.sla_due number | null Resolution deadline, epoch milliseconds.
ticket.ai_answered number 1 when the AI answered the ticket.
ticket.created_at number
ticket.modified_at number | null
ticket.resolved_at number | null
ticket.masters object Display data of the status, priority and category.
ticket.masters.status object
ticket.masters.status.id string | null
ticket.masters.status.code string
ticket.masters.status.name string
ticket.masters.status.color string | null
ticket.masters.status.final boolean Status only: whether this status ends the ticket.
ticket.masters.priority object
ticket.masters.priority.id string | null
ticket.masters.priority.code string
ticket.masters.priority.name string
ticket.masters.priority.color string | null
ticket.masters.priority.final boolean Status only: whether this status ends the ticket.
ticket.masters.category object
ticket.masters.category.id string | null
ticket.masters.category.code string
ticket.masters.category.name string
ticket.masters.category.color string | null
ticket.masters.category.final boolean Status only: whether this status ends the ticket.
duplicate object | null An open ticket this one most likely duplicates.
duplicate.id string
duplicate.number string
duplicate.title string
duplicate.score number
aiAnswered boolean
aiAnswerBody string | null
supportWarning object | null Set when the project’s support service is missing or expired.
supportWarning.type string
supportWarning.message string
supportWarning.expiryDate number | null

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: project_not_found, config_error, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/helpdesk/tickets' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"projectId":"99e5d1dd-334c-4bc3-88c7-7d84558bf7c6","title":"Export to CSV times out","body":"Exporting more than 5,000 rows times out after 30 seconds.","priority":"high"}'

Response 201:

{
"ticket": {
"id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"tenant_id": "opexcg-tenant",
"company_id": "comp-xyzind",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"product_id": "prod-epicor",
"scope": null,
"impact": null,
"complexity": null,
"service_contract_id": null,
"number": "SUP-2026-000013",
"title": "Export to CSV times out",
"body": "Exporting more than 5,000 rows times out after 30 seconds.",
"module": null,
"product": null,
"epicor_environment": null,
"priority": "high",
"status": "new",
"category": null,
"triage_confidence": null,
"triage_reasoning": null,
"triage_completed_at": null,
"triage_completed_by": null,
"triage_completed_reason": null,
"triage_completed_manually": 0,
"ai_answered": 0,
"suggested_assignee_id": null,
"assignee_id": null,
"assigned_product_group_id": null,
"assigned_project_group_id": null,
"requester_id": "usr-fitri-handayani",
"external_requester_email": null,
"external_requester_name": null,
"email_route_id": null,
"source": "web",
"external_id": null,
"duplicate_of_id": null,
"dup_score": null,
"resolution_text": null,
"sla_due": 1794138449198,
"sla_policy_id": "slp-default",
"sla_response_mins": 240,
"sla_resolution_mins": 1440,
"sla_business_hours": "24x7",
"effort_hours": null,
"week_start": null,
"created_at": 1794052049198,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052049198,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"resolved_at": null,
"last_client_reply_at": 1794052049198,
"last_agent_reply_at": 1794052049198,
"last_status_change_at": 1794052049198,
"external_updated_at": null,
"ticket_category_id": null,
"ticket_priority_id": null,
"ticket_status_id": "st-NEW",
"requester_name": "Fitri Handayani",
"assignee_name": null,
"assignee_avatar_url": null,
"masters": {
"category": {
"id": null,
"code": "",
"name": "—",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"priority": {
"id": null,
"code": "high",
"name": "High",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"status": {
"id": "st-NEW",
"code": "NEW",
"name": "New",
"color": "blue",
"group": "OPEN",
"group_name": "Open",
"rank": null,
"active": true,
"resolved": false,
"final": false,
"isFallback": false
}
}
},
"duplicate": null,
"aiAnswered": false,
"aiAnswerBody": null,
"supportWarning": {
"type": "no_agreement",
"message": "Project \"Customer portal rollout\" has no Support Service Agreement. Consider rejecting this ticket.",
"internalMessage": "Project \"Customer portal rollout\" has no Support Service Agreement. Consider rejecting this ticket.",
"clientMessage": "Project \"Customer portal rollout\" has no active Support Service Agreement. This ticket may be rejected.",
"expiryDate": null
}
}

Update a ticket

PATCH /api/helpdesk/tickets/:id

Changes priority, category, product, project or module (staff only). Pass master ids from the workspace’s configured priorities and categories; omitted fields stay as they are.

  • Product: Helpdesk (helpdesk)
  • Permission (any of): helpdesk:ticket:work

Path parameters

Field Type Required Description
id string yes Ticket id (not the SUP- number).

Request body (JSON)

Field Type Required Description
priorityId string no min length 1
categoryId string no min length 1
productId string | null no
projectId string | null no
companyId string no min length 1
module string | null no
requesterId string no min length 1

Response 200

The updated ticket.

Field Type Description
ticket object | null
ticket.id string
ticket.number string Human-facing number, e.g. SUP-2026-000011.
ticket.title string
ticket.body string HTML.
ticket.status string Current status code.
ticket.priority string
ticket.category string | null
ticket.module string | null
ticket.product string | null
ticket.project_id string | null
ticket.product_id string | null
ticket.requester_id string | null
ticket.requester_name string | null
ticket.assignee_id string | null
ticket.assignee_name string | null
ticket.company_name string | null
ticket.sla_due number | null Resolution deadline, epoch milliseconds.
ticket.ai_answered number 1 when the AI answered the ticket.
ticket.created_at number
ticket.modified_at number | null
ticket.resolved_at number | null
ticket.masters object Display data of the status, priority and category.
ticket.masters.status object
ticket.masters.status.id string | null
ticket.masters.status.code string
ticket.masters.status.name string
ticket.masters.status.color string | null
ticket.masters.status.final boolean Status only: whether this status ends the ticket.
ticket.masters.priority object
ticket.masters.priority.id string | null
ticket.masters.priority.code string
ticket.masters.priority.name string
ticket.masters.priority.color string | null
ticket.masters.priority.final boolean Status only: whether this status ends the ticket.
ticket.masters.category object
ticket.masters.category.id string | null
ticket.masters.category.code string
ticket.masters.category.name string
ticket.masters.category.color string | null
ticket.masters.category.final boolean Status only: whether this status ends the ticket.

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, master_invalid, product_not_found, project_not_found, project_inactive, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X PATCH 'https://app.aio.opexcg.com/api/helpdesk/tickets/8defe6e2-afcd-46ba-a041-da8fdd7665ff' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"priorityId":"prio-LOW"}'

Response 200:

{
"ticket": {
"id": "8defe6e2-afcd-46ba-a041-da8fdd7665ff",
"tenant_id": "opexcg-tenant",
"company_id": "comp-xyzind",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"product_id": "prod-epicor",
"scope": null,
"impact": null,
"complexity": null,
"service_contract_id": null,
"number": "SUP-2026-000013",
"title": "Export to CSV times out",
"body": "Exporting more than 5,000 rows times out after 30 seconds.",
"module": null,
"product": null,
"epicor_environment": null,
"priority": "low",
"status": "new",
"category": null,
"triage_confidence": null,
"triage_reasoning": null,
"triage_completed_at": null,
"triage_completed_by": null,
"triage_completed_reason": null,
"triage_completed_manually": 0,
"triage_phase": "queued",
"ai_answered": 0,
"suggested_assignee_id": null,
"assignee_id": null,
"assigned_product_group_id": null,
"assigned_project_group_id": null,
"requester_id": "usr-fitri-handayani",
"external_requester_email": null,
"external_requester_name": null,
"email_route_id": null,
"source": "web",
"external_id": null,
"duplicate_of_id": null,
"dup_score": null,
"resolution_text": null,
"sla_due": 1794138449198,
"sla_policy_id": "slp-default",
"sla_response_mins": 240,
"sla_resolution_mins": 1440,
"sla_business_hours": "24x7",
"effort_hours": null,
"week_start": null,
"created_at": 1794052049198,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052049795,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"resolved_at": null,
"last_client_reply_at": 1794052049198,
"last_agent_reply_at": 1794052049198,
"last_status_change_at": 1794052049198,
"external_updated_at": null,
"ticket_category_id": null,
"ticket_priority_id": "prio-LOW",
"ticket_status_id": "st-NEW",
"requester_name": "Fitri Handayani",
"assignee_name": null,
"assignee_avatar_url": null,
"masters": {
"category": {
"id": null,
"code": "",
"name": "—",
"color": null,
"group": null,
"group_name": null,
"rank": null,
"active": false,
"resolved": false,
"final": false,
"isFallback": true
},
"priority": {
"id": "prio-LOW",
"code": "LOW",
"name": "Low",
"color": "gray",
"group": null,
"group_name": null,
"rank": 4,
"active": true,
"resolved": false,
"final": false,
"isFallback": false
},
"status": {
"id": "st-NEW",
"code": "NEW",
"name": "New",
"color": "blue",
"group": "OPEN",
"group_name": "Open",
"rank": null,
"active": true,
"resolved": false,
"final": false,
"isFallback": false
}
}
}
}

Reply or add a note

POST /api/helpdesk/tickets/:id/events

Adds a public reply, or an internal note with internal: true (staff only). Staff can move the ticket in the same call with statusPurpose (a status code of the workspace’s status workflow). Public staff replies are emailed to the requester.

  • Product: Helpdesk (helpdesk)
  • Permission (any of): ticket:read
  • Also: Requesters may reply to their own tickets; internal notes and status moves need staff access.

Path parameters

Field Type Required Description
id string yes Ticket id (not the SUP- number).

Request body (JSON)

Field Type Required Description
body string yes min length 1, max length 20000
internal boolean no default false
mentions string[] no max 20 items
status "new" | "in_progress" | "awaiting_requester" | "pending_third_party" | "resolved" no
statusPurpose string no min length 1, max length 40
cc string[] no max 10 items
bcc string[] no max 10 items
signature boolean no

Response 200

The new event id.

Field Type Description
ok true
id string The new event’s id.

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, cc_bcc_staff_only, cc_bcc_internal_note, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/helpdesk/tickets/8defe6e2-afcd-46ba-a041-da8fdd7665ff/events' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"body":"Reproduced on 6,200 rows. Looking at the query plan.","internal":true}'

Response 200:

{
"ok": true,
"id": "35cb9a0a-601e-4425-8676-de8e317d3136"
}

Close a ticket

POST /api/helpdesk/tickets/:id/close

Moves the ticket to the closed status of the workspace’s status workflow and emails the requester. Consultants can close only tickets assigned to them. When the workflow still waits for other actions, the ticket stays put and the answer lists them in awaitingTriggers.

  • Product: Helpdesk (helpdesk)
  • Permission (any of): helpdesk:ticket:work

Path parameters

Field Type Required Description
id string yes Ticket id (not the SUP- number).

Response 200

The new status.

Field Type Description
ok true
status string The ticket’s status code after the call.
awaitingTriggers string[] Actions the status workflow still waits for; the ticket did not move.

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/helpdesk/tickets/8defe6e2-afcd-46ba-a041-da8fdd7665ff/close' \
-H "X-API-Key: $OPEX_API_KEY"

Response 200:

{
"ok": true,
"status": "CLOSED"
}