Support Tickets
4 API calls in this section.
Support operations endpoints for managing support tickets in a shared queue. Tickets start unassigned, can be claimed manually, and may auto-assign on first reply if enabled in customer portal settings.
List Support Tickets
/messaging/support/ticketsLists support tickets from the shared support queue. Access requires the current user to be included in customer portal support_user_ids. Each ticket row includes source (customer_portal | storefront | restaurant), related_delivery_id, related_order_id, and assigned_to_user (when assigned). Use source and order_id to filter by ticket origin / specific order. Use search to filter by subject. assignment_scope narrows to claimed/unassigned tickets. Elevated support users who are also configured support users may optionally filter by assigned_to.
Query parameters
| Parameter | Type | Description |
|---|---|---|
tenant_id | string | Tenant context (required if not in token) Example: |
page | string | Example: |
limit | string | Example: |
statusOptional | string | open | closed Example: |
assignment_scopeOptional | string | all | mine | unassigned Example: |
assigned_toOptional | string | Exact assignee filter for elevated support users who are also configured support users Example: |
searchOptional | string | Search tickets by subject (case-insensitive substring match) |
sourceOptional | string | Filter by ticket origin: Example: |
order_idOptional | string | Filter to tickets linked to a specific storefront order (only meaningful for source=storefront) Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
Content-Type | string | Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/messaging/support/tickets?tenant_id=${TENANT_ID}&page=1&limit=20&status=open&assignment_scope=all" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3 --header "Content-Type: application/json"Response examples
No saved response example. Use Try it to inspect a staging response.
Get Support Ticket
/messaging/support/tickets/:idGets a support ticket including conversation summary and assigned_to_user details when the ticket is assigned. Access requires the current user to be included in customer portal support_user_ids.
Path parameters
| Parameter | Type | Description |
|---|---|---|
idRequired | string | Support ticket ID Example: |
Query parameters
| Parameter | Type | Description |
|---|---|---|
tenant_id | string | Tenant context (required if not in token) Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/messaging/support/tickets/${ID}?tenant_id=${TENANT_ID}" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
No saved response example. Use Try it to inspect a staging response.
Assign Support Ticket To Me
/messaging/support/tickets/:id/assign-to-meClaims an unassigned support ticket for the current support user and adds them to the ticket conversation as an admin participant. Access requires the current user to be included in customer portal support_user_ids.
Path parameters
| Parameter | Type | Description |
|---|---|---|
idRequired | string | Support ticket ID Example: |
Query parameters
| Parameter | Type | Description |
|---|---|---|
tenant_id | string | Tenant context (required if not in token) Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/messaging/support/tickets/${ID}/assign-to-me?tenant_id=${TENANT_ID}" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
No saved response example. Use Try it to inspect a staging response.
Close Support Ticket
/messaging/support/tickets/:id/closeCloses the support ticket and emits a system message in the conversation.
Path parameters
| Parameter | Type | Description |
|---|---|---|
idRequired | string | Support ticket ID Example: |
Query parameters
| Parameter | Type | Description |
|---|---|---|
tenant_id | string | Tenant context (required if not in token) Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
Content-Type | string | Example: |
Body parameters
| Parameter | Type | Description |
|---|---|---|
metadata | object | — |
metadata.note | string | — |
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/messaging/support/tickets/${ID}/close?tenant_id=${TENANT_ID}" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3 --header "Content-Type: application/json" \4 --data-raw '{5 "metadata": {6 "note": "Issue resolved"7 }8}'Response examples
No saved response example. Use Try it to inspect a staging response.