Xuda Ticketing API Reference
Xuda Ticketing API Reference
This reference covers the full method surface of Xuda Tickets: the nine methods an account API key can reach, the thirty-three dashboard session methods behind the Tickets screens and the Support screens, the three public endpoints behind a published ticket form and the website contact-sales form, and the one operator method. It is written for developers driving a ticket desk from their own software, wiring outbound webhooks, or working out exactly which part of the surface a key can and cannot touch. Every method key, parameter name, type and required flag below is taken from the shipped method contract.
How To Call These Methods
Every method here is a CPI method. CPI methods are dispatched by name over the Xuda API and MCP layer, and the normal credential for that layer is the account API key. For the transport-level detail, including how requests are framed and how the MCP layer exposes methods, see /api-mcp-integration. Every method returns the standard { code, data } envelope, and a negative code is a failure with the reason carried in data.
Ticketing registers 47 methods and 38 of them are flagged private, which is the hard wall an account API key is checked against: a key with api_access: 'full' may call any non-private method, and nothing else. That leaves nine methods reachable with a key, and all nine are clearance: 'user', meaning an authenticated caller.
Eight of those nine are the ticket_api_* family, and for them the API key's owning account is the desk. There is no tenant parameter and there is no way to address another account's tickets. Each of the eight passes through one plan gate before it does anything:
- Read methods (
ticket_api_get,ticket_api_list,ticket_api_team,ticket_api_topics) need the plan'sapiflag to bereadorfull, so they work on the Free tier. - Write methods (
ticket_api_submit,ticket_api_reply,ticket_api_assign,ticket_api_close) needapi: full, so ontickets_freethey are refused with code-402. - The per-minute call rate from the plan is charged on any call that passes the mode check: 10 a minute on Free, 60 on Starter, 300 on Grow, 1,200 on Scale.
The ninth, get_support_tickets, is the legacy method behind the customer-facing My Tickets list. It carries no Tickets plan gate and no per-minute rate limit.
What The Availability Labels Mean
Every method below carries one explicit availability line. Read it first, because it tells you whether you can call the method from your own code today.
- Availability: API key means an external developer API key or the MCP layer can call it. Nine ticketing methods carry this label.
- Availability: Dashboard session means a signed-in user in the Xuda dashboard can call it, and an API key cannot. The account identity comes from the session, never from a parameter. These methods are documented because they define the product's behavior and because any future API tier would expose them, but do not build against them with a key. They will be refused.
- Availability: Public endpoint means no authentication at all. It is called from a browser, from a server-rendered page or from the public website. Where a credential is involved, such as the one-time form token, it is carried in the body rather than in a session.
- Availability: Operator only means Xuda staff, listed for completeness. One ticketing method carries this label.
Because the 38 private methods are not part of the external contract, their field lists are not published. Their sections below describe what each one does and state that plainly rather than guessing at an argument shape.
Method Index
| Method | What It Does |
|---|---|
| ticket_api_submit | Opens a ticket on the desk owned by the API key. |
| ticket_api_get | Returns one ticket with its public interactions. |
| ticket_api_list | Lists tickets on your desk with the dashboard filter grammar and bookmark paging. |
| ticket_api_reply | Appends a public reply to a ticket as the desk, or as the requester. |
| ticket_api_close | Closes a ticket, with an optional reason shown to the customer. |
| ticket_api_assign | Assigns a ticket to someone on the desk's workspace team, by account uid or email. |
| ticket_api_team | Lists the desk's workspace team, the people a ticket can be assigned to. |
| ticket_api_topics | Returns the desk's topics and sub topics so you can render your own picker. |
| get_support_tickets | Returns the calling account's own tickets, newest first. |
| ticket_submit | The single submit path every entry point calls to open a ticket. |
| ticket_list | Lists the queue behind the Tickets screen. |
| ticket_get | Reads one ticket with its full interaction thread. |
| ticket_reply | Sends a reply to the customer or leaves an internal note. |
| ticket_update | Retriages a ticket: topic, sub topic and reference id. |
| ticket_set_status | Closes or reopens a ticket. |
| ticket_assign | Hands a ticket to someone on the desk's workspace team, charged against the seat ceiling. |
| ticket_team_get | Lists the desk's workspace team, the people its tickets may be assigned to. |
| ticket_apply_action | Runs one of the desk's actions on a ticket by hand. |
| ticket_topics_get | Reads the desk's topics bank. |
| ticket_topic_save | Creates or edits a topic and its sub topics. |
| ticket_topic_delete | Retires a topic. |
| ticket_actions_get | Reads the desk's actions bank. |
| ticket_action_save | Creates or edits an action and its five template values. |
| ticket_action_delete | Retires an action. |
| ticket_settings_get | Reads desk defaults, business hours, webhook setup and the auto-close rule. |
| ticket_settings_save | Saves those settings. |
| ticket_forms_get | Lists the desk's published ticket forms. |
| ticket_form_save | Creates or edits a public ticket form. |
| ticket_form_delete | Retires a public ticket form. |
| ticket_usage_get | Reads the desk's tier, its monthly allowance and its usage. |
| tickets_set_plan | Chooses the Tickets tier and moves the billing line for it. |
| ticket_auto_close_sweep | Sweeps quiet tickets, warning and then closing them. |
| ticket_form_bootstrap | Renders one published form's wording, fields and one-time token. |
| ticket_form_submit | Accepts a submission from a published form. |
| submit_support_ticket | Raises a ticket with Xuda support from the dashboard. |
| submit_sales_ticket | Files the website contact-sales form as a ticket. |
| update_support_ticket | Updates one of your own Xuda support tickets. |
| get_support_ticket_interactions | Reads the thread on one of your own Xuda support tickets. |
| get_support_articles | Reads the help articles shown on the Support screen. |
| submit_feedback | Files a studio feedback note with an optional screenshot. |
| get_devices_data | Reads device data for the app module's device support panels. |
| reload_active_devices | Runtime utility registered alongside ticketing. |
| get_client_error_data | Runtime utility registered alongside ticketing. |
| runtime_delete_docs | Runtime utility registered alongside ticketing. |
| update_session_peer_status | Runtime utility registered alongside ticketing. |
| update_session_peer_region | Runtime utility registered alongside ticketing. |
ticket_api_submit
API: Submit Ticket
Opens a ticket on the desk owned by the API key. A contact is created or reused from the email supplied, the topic (if given) is resolved against that desk's topics bank, and the mapped bank action fires. The email can be left out when an integration or an agent files the ticket for itself: the requester is then a name only. An assignee can be named on the same call. The response is the narrow external view of the new ticket: ticket number, id, source, channel, status, stage, subject, details, topic, sub topic, requester, reference id, priority, type, assignee uid, due timestamp, created timestamp, last activity timestamp and status timestamp. Owner ids, contact ids and internal automation state are deliberately not returned. The ticket is filed with source: api and channel: api, and it counts against the desk's monthly allowance.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Name of the person the ticket is about. |
email |
string | No | Their email. A contact is created or reused from it. Optional when an integration or an agent files the ticket for itself: give a name only, and no contact is made and nothing is mailed to the requester. |
details |
string | Yes | The body of the request. |
subject |
string | No | One line summary. |
phone |
string | No | Their phone number. |
company |
string | No | Their company. |
topic_id |
string | No | Topic from the desk topics bank. |
subtopic_id |
string | No | Sub topic under that topic. |
reference_id |
string | No | Your own reference for this ticket. |
priority |
number | No | 1 (highest) to 4. |
attachments |
array | No | Files to attach to the new ticket, as an array. |
type |
string | No | Ticket type: issue, bug, feature or task. Leave empty for no type. |
assignee_uid |
string | No | Account to assign the new ticket to: someone on the desk's workspace team: the owner, or an accepted member of the workspace (ticket_api_team lists them). Give this or assignee_email, not both. A refused assignee files no ticket. |
assignee_email |
string | No | Email of a team member to assign the new ticket to, under the same rule as assignee_uid. Refused with -409 when more than one member of this desk's team has that email: pass assignee_uid then. |
Notes
- Auth: authenticated account or API key. The key's own account is the desk, so there is no way to file onto another tenant.
- Only the fields above reach the ticket. Anything else in the body, such as an
account_id, is ignored. - A requester with no email must have a name, and an email that is given must be valid. With no email the ticket is linked to no account: no account lookup, no phone filled in from an account, no contact, no mirrored conversation, and no email to the requester. The desk owner is still notified.
- An assignee is resolved and checked before the ticket is written, by uid or by email (never by name), with the same seat ceiling as the dashboard. A refusal files nothing and is not billed:
-1for both fields or a malformed email,-403for anyone not on this desk's workspace team (whether or not such an account exists, so the call reveals nothing about accounts outside the team),-404for a team member whose account no longer exists,-409for an email held by more than one team member or a closed account,-402at the seat ceiling. An explicit assignee wins over a bank action's hand-off. If the assignment itself fails after the ticket was filed, the call still answers code1with the ticket and anassign_errorstring, so do not retry it as a new ticket. - The assignee is emailed (
ticket_assigned) unless it is the key owner, who already gets the new ticket email. - Plan requirement: a plan with
api: full, which means Starter and above. Ontickets_freethis method answers-402. There is nomin_plangate. - The plan's per-minute API rate is charged on every call that passes the mode check.
- The monthly allowance is checked before anything is written, so a refused ticket leaves nothing behind. The Free tier hard-stops with code
-429; every paid tier keeps accepting and records the overage. - The usage counter is incremented only after the ticket save succeeded, so a failed write is never billed.
- Length caps:
detailsis truncated at 20,000 characters andsubjectat 250. - Side effects: the requester is registered as a contact on the desk owner's profile before the ticket is written, the thread is mirrored into the desk owner's CRM as a conversation, a system interaction is recorded, and the
ticket.createdwebhook fires when the plan carries thewebhooksflag. - A first-time requester pays the contact enrichment cost inline on submit, because that step is not backgrounded. A requester with no email has no contact, so there is no enrichment.
ticket_api_get
API: Get Ticket
Returns one ticket with its public interactions. Internal notes and AI drafts are never returned on this path. Each interaction is reduced to direction, from, channel, body and timestamp.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticket_id |
string | Yes | Identifier of the ticket. |
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
apiofreadorfull, so it works on Free. Nomin_plan. - The plan's per-minute API rate is charged on every call.
- Reads are clamped to the plan's history retention window: 90 days on Free, 365 days on Starter, 1,095 days on Grow, unlimited on Scale. Nothing is deleted, and the tickets come back the moment the plan does.
- The person who raised a ticket always keeps their own copy of it, whatever the desk's retention window says.
ticket_api_list
API: List Tickets
Lists tickets on the desk owned by the API key, using the same filter grammar as the dashboard manager, and returns each row in the same narrow external view as ticket_api_submit. Paging is by bookmark: the response carries a bookmark to pass to the next call. Results are clamped to the plan's history retention window.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
status |
string | No | open or closed. |
source |
string | No | Restrict to one entry point. |
topic_id |
string | No | Restrict to one topic. |
reference_id |
string | No | Restrict to one of your references. |
search |
string | No | Free text over subject, details and ticket number. |
created_from |
number | No | Lower bound on the created timestamp. |
created_to |
number | No | Upper bound on the created timestamp. |
sort |
string | No | date_created_ts, last_activity_ts, status_ts or priority. |
dir |
string | No | asc or desc. |
limit |
number | No | Page size, up to 500. |
bookmark |
string | No | Page bookmark from the previous call. |
type |
string | No | Restrict to one ticket type: issue, bug, feature, task, or none for tickets with no type. |
assignee_uid |
string | No | Restrict to tickets assigned to this account. |
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
apiofreadorfull. Nomin_plan. - Each row carries
assignee_uid, null when nobody has the ticket. - The plan's per-minute API rate is charged on every call.
- Paging defaults to 50 rows and caps at 500. Pass the returned
bookmarkback to walk the next page. - The
sourcevalues you can filter on are the nine declared entry points:platform_support,ambassador_appeal,human_review,verify_review,verify_appeal,website,profile_contact_form,tickets_formandapi.
ticket_api_reply
API: Reply To Ticket
Appends a reply to a ticket as the desk. The reply is always public and never an internal note. It records the first response timestamp if none was set, moves the stage to waiting_customer, emails the requester when the ticket is linked to an account, mirrors the message under the contact, and fires the ticket.replied webhook.
With as_requester: true the reply is posted as the requester's own message instead, for an integration or an agent reporting on a ticket it filed. It is recorded as inbound from the requester (the interaction still names the key owner as the poster), moves the stage the way a customer reply does, reopens a closed ticket inside the reopen window, notifies the assignee (or the desk owner when nobody has it), never sets the first response timestamp, and sends nothing to the requester.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticket_id |
string | Yes | Identifier of the ticket. |
body |
string | Yes | Text of the reply. |
as_requester |
boolean | No | true posts the reply as the requester's own message rather than the desk's. The assignee (or the desk owner) is notified, and it does not count as the desk's first response. |
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
api: full. Ontickets_freethis method answers-402. Nomin_plan. - The plan's per-minute API rate is charged on every call.
- Interaction bodies are truncated at 20,000 characters.
- Delivery caveat: the customer email needs an account to deliver against, so a purely anonymous requester whose email matches no Xuda account gets no notification. The reply is still recorded on the ticket and mirrored to the contact.
- The
ticket.repliedwebhook is gated on the plan'swebhooksflag, which Free does not carry.
ticket_api_close
API: Close Ticket
Closes a ticket and records the change as a system interaction. The optional reason is shown to the customer as the "Outcome" paragraph of the closing email. A customer reply inside the desk's reopen window (14 days by default) still brings the ticket back. Fires the ticket.closed webhook.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticket_id |
string | Yes | Identifier of the ticket. |
reason |
string | No | Why it was closed. Shown to the customer. |
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
api: full. Ontickets_freethis method answers-402. Nomin_plan. - The plan's per-minute API rate is charged on every call.
- A close is not final. A customer reply inside the reopen window reopens the ticket automatically, so treat
closedas a state you may see revert. - The
ticket.closedandticket.status_changedwebhooks are gated on the plan'swebhooksflag.
ticket_api_assign
API: Assign Ticket
Assigns a ticket to a person, named by account uid or by email, and records an internal note naming them. The response is the narrow external view of the ticket, with assignee_uid and an unchanged flag.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticket_id |
string | Yes | Identifier of the ticket. |
assignee_uid |
string | No | Account to assign the ticket to. Give this or assignee_email, exactly one. |
assignee_email |
string | No | Email of a team member to assign the ticket to. Refused with -409 when more than one member of this desk's team has that email: pass assignee_uid then. |
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
api: full. Ontickets_freethis method answers-402. Nomin_plan. - The plan's per-minute API rate is charged on every call.
- Who can be assigned: someone on the desk's workspace team: the owner, or an accepted member of the workspace (
ticket_api_teamlists them). Anyone else is refused with-403, including a pending invitation, a member of another of the owner's workspaces, and a past assignee who has left the team. A person is never looked up by name. - Refusals:
-1when neither or both assignee fields are given or the email is malformed,-403for anyone not on the team (whether or not the account exists),-404for a team member whose account no longer exists,-409for an email held by more than one team member or a closed account,-402at the seat ceiling (the same derived seats as the dashboard). - Naming the person who already has the ticket changes nothing: no write, no note, no email, and
unchanged: true. - The assignee is emailed (
ticket_assigned) unless it is the key owner assigning themselves.
ticket_api_team
API: Get Team
Returns the people this desk's tickets can be assigned to: its workspace team, the owner and every accepted member of the workspace. Each entry is { uid, name, email }, owner first. These are the only valid values for assignee_uid and assignee_email.
Availability: API key
Parameters
None.
Notes
- Auth: authenticated account or API key. The key's own account is the desk.
- Plan requirement: a plan with
apiset toreadorfull, so it works on the Free tier. - The plan's per-minute API rate is charged on every call.
- A member is someone who accepted the owner's share of this workspace. A pending invitation, a share of another of the owner's workspaces, or a past assignee who has left the team is not on it.
ticket_api_topics
API: Get Topics
Returns the desk's topics and their sub topics so a third-party interface can render its own picker. Each topic is reduced to topic_id, name and a sub_topics array of { id, name }, with retired sub topics filtered out. Responses are cached for 300 seconds.
Availability: API key
Parameters
This method takes no parameters.
Notes
- Auth: authenticated account or API key.
- Plan requirement: a plan with
apiofreadorfull, so it works on Free. Nomin_plan. - The plan's per-minute API rate is charged on every call.
- The 300 second cache means a topic you just created through the dashboard can take up to five minutes to appear here.
- The topics bank has exactly two levels. A topic with no sub topics fires its own action; with sub topics, the picked sub topic's action fires and falls back to the topic's action.
get_support_tickets
Get Support Tickets
Returns the tickets belonging to the calling account, newest first, each annotated with an interactions_count. This is the legacy method behind the customer-facing "My Tickets" list in the dashboard. It selects on uid and docType: 'ticket' in the tickets database and returns whole ticket documents rather than the narrow external view. It accepts an optional _id to fetch one ticket. It is registered with no fields block in either config, so no field is declared mandatory.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_id |
string | No | Not declared in cpi_methods; the implementation narrows the result to a single ticket when supplied. |
Notes
- Auth: authenticated account. No
min_planand nomin_support_plan. - Unlike the
ticket_api_*family, no Tickets plan gate and no per-minute rate limit is applied to this method. - It answers with the requester's own view, which is the tickets that account raised, not the queue of a desk that account owns. For a desk, use
ticket_api_list.
ticket_submit
Submit Ticket
The single submit path behind all nine declared entry points. Dashboard support, ambassador and mentor appeals, marketplace human review, identity review, identity appeals, the website contact-sales form, profile contact forms, your own published forms and the API all end up here, which is why status, topics, actions, SLA and auto close are one implementation rather than nine. It registers the requester as a contact, writes the ticket, issues the human reference, mirrors the thread into the desk owner's CRM, records the creation interaction and fires the topic's mapped action.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and to the Xuda modules that file tickets through it, and it is not published as an external surface. The API-key equivalent is ticket_api_submit.
Notes
- Auth: session user. Refused for API-key callers.
- The five platform sources (
platform_support,ambassador_appeal,human_review,verify_review,verify_appeal) always resolve to the Xuda supervisor account whatever the caller passes, so a customer cannot file onto Xuda's desk under their own tenancy or the reverse. - The human reference is monotonic per desk:
XD-000123on the platform desk, the tenant's own prefix otherwise, defaulting toTK. It is issued from a strict-save counter with six conflict retries and a time-based fallback, so a lost race never blocks the ticket. - The monthly allowance is checked before anything is written. Free hard-stops with
-429; paid tiers accept and record the overage. - The Xuda platform desk is exempt from every plan gate in this module.
- Length caps: details 20,000 characters, subject 250.
- Side effect: the
ticket.createdwebhook fires when the desk's plan carries thewebhooksflag and a webhook URL is set.
ticket_list
List Tickets
Lists the queue behind the Tickets screen, with the filter grammar the manager exposes: search, status, source, topic, sub topic, stage, action, reference id, created-from and created-to, sort field and direction, and the Overdue, SLA breached and Has reference toggles. It also drives the desk switcher, including the "Submitted by me" view through as_requester.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_list, which uses the same filter grammar.
Notes
- Auth: session user. Refused for API-key callers.
- Pages at 50 rows by default and caps at 500.
- Results are clamped to the plan's history retention window. Nothing is deleted; rows return when the plan does.
as_requesterswitches the view from the desk you own to the tickets you raised elsewhere.- The additional desk views (Xuda platform, All tenants) are superuser only.
ticket_get
Get Ticket
Reads one ticket with its full metadata block and interaction thread: the twelve fields the detail dialog shows, the triage state, the verification evidence panel for review tickets, and every interaction in order.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_get.
Notes
- Auth: session user. Refused for API-key callers.
- Returns up to 2,000 interactions on one ticket.
- Internal notes are stripped from anyone who is not the desk, so a requester reading their own ticket never sees them.
- Reads are clamped to the plan's history retention window, except for the person who raised the ticket, who always keeps their own copy.
ticket_reply
Reply To Ticket
Sends the contents of the Resolution box to the customer, or keeps it on the desk as an internal note. A public reply records the first response timestamp if none was set, moves the stage to waiting_customer, emails the requester when the ticket is linked to an account, and mirrors the message under the contact. An internal note does none of that.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_reply, which can only send public replies.
Notes
- Auth: session user. Refused for API-key callers.
- Internal notes carry
visibility: internaland are stripped from anyone who is not the desk. - Interaction bodies are truncated at 20,000 characters.
- A customer reply inside the reopen window (14 days by default) reopens a closed ticket automatically.
- Side effect: a public reply fires the
ticket.repliedwebhook when the plan carries thewebhooksflag.
ticket_update
Update Ticket
Retriages a ticket from the detail dialog: topic, sub topic and your own reference id. Changing the topic refires the mapped bank action once.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Idempotency: action firing is idempotent per
(action_id, trigger)pair, so correcting a topic twice does not double-notify. - With sub topics present, the picked sub topic's action fires and falls back to the topic's action.
- Every change writes a system interaction, so retriage is visible in the thread.
- This is also the method behind the "Set topic" bulk control. The selection bar updates each ticket one at a time and reports partial failure rather than rolling back.
ticket_set_status
Set Ticket Status
Closes or reopens a ticket and records the change as a system interaction. Text left in the Resolution box travels with a close and is quoted as the "Outcome" paragraph in the customer's closing email. This is also the method behind the bulk "Close N" control.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent for closing is ticket_api_close.
Notes
- Auth: session user. Refused for API-key callers.
- Status is
openorclosed; the finer state isstatus_stage, one ofnew,in_progress,waiting_customerorresolved. - A bulk run is not transactional. A partial result reads "Closed 5 of 6. 1 failed" with the first reason, and the selection stays so you can retry.
- A close is not final. A customer reply inside the reopen window brings the ticket back.
- Side effect: fires the
ticket.status_changedwebhook, andticket.closedon a close, when the plan carries thewebhooksflag.
ticket_assign
Assign Ticket
Hands a ticket to a person by writing the assignee block and notifying them. The assignment notification delivers as a banner as well as an email.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_assign. Both accept only someone on the desk's workspace team, the list ticket_team_get gives the dashboard's people picker.
Notes
- Auth: session user. Refused for API-key callers.
- The internal note names the person assigned, and assigning yourself sends no email.
- Seats are derived, not stored: the owner plus every assignee on a ticket plus every action hand-off target. A new person at the seat ceiling is refused with code
-402. The ceilings are 1 seat on Free, 3 on Starter, 10 on Grow and unlimited on Scale. - The board's people picker (a card's face, its Assign ring, or Assign in its menu) calls this method, and offers exactly the people
ticket_team_getreturns. Anyone else is refused with code-403. An action's hand-off target is held to the same team, when the action is saved and when it fires.
ticket_team_get
Get Ticket Team
Returns the people a desk's tickets may be assigned to: its workspace team, the owner and everyone who accepted a share of one of the owner's profiles in that workspace. Each entry is { uid, name, email }, owner first. The Xuda support desk's team is the platform staff.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_team.
Notes
- Auth: session user. The desk owner reads their own desk's team; a superuser may read another tenant's desk or the Xuda support desk.
- A pending invitation, a member of another of the owner's workspaces, and a past assignee who has left the team are not on it.
ticket_apply_action
Apply Ticket Action
Runs one of the desk's bank actions against a ticket out of band, from the "Run an action" control in the detail dialog. An action fires its five template values in a fixed order: assign to a profile and notify them, compute a due date, send the customer a templated message, hand off to an AI agent, then record the run.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Idempotency: firing is idempotent per
(action_id, trigger). - Deadlines are computed against the desk's business hours by walking forward one hour at a time and counting only working hours, capped at 400 days. A four hour deadline taken on a Friday afternoon lands Monday rather than Friday night.
- AI autonomy is re-capped at run time as well as at save time, so an action saved on Grow stops replying the moment the desk drops to Free.
- The AI hand-off calls the AI module with the desk owner's uid, so whatever that path charges applies. This module charges no AI credit of its own.
- The AI agent can draft, reply or reply and mark resolved. It can never close a ticket. Only a person or the auto-close rule does that.
- Action notification bodies are truncated at 8,000 characters and AI prompts at 4,000.
- Delivery caveat: a customer notification needs an account to deliver against, so a purely anonymous requester whose email matches no account gets nothing.
ticket_topics_get
Get Ticket Topics
Reads the desk's topics bank for the Topics tab and for every topic picker in the product. Topics have exactly two levels, and each level can map to a bank action.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface. The API-key equivalent is ticket_api_topics.
Notes
- Auth: session user. Refused for API-key callers.
- The Xuda platform desk seeds its topics once from the static support topics tree and then never reads config again.
- Retired topics carry
stat: 4rather than being deleted.
ticket_topic_save
Save Ticket Topic
Creates or edits one topic: its name, its order, the action it fires, and its list of sub topics, each with its own name, order and action.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Plan gate: topics are capped by tier at 5 on Free and 25 on Starter, and are unlimited on Grow and Scale. Creating past the ceiling is refused;
-1in the plan object means unlimited. - Per-topic auto-close overrides are refused on plans without the per-topic auto-close flag, which Free does not carry. Existing overrides stop applying on a downgrade.
- A topic with no sub topics fires its own action. With sub topics, the picked sub topic's action fires and falls back to the topic's action.
ticket_topic_delete
Delete Ticket Topic
Retires a topic so it stops appearing in pickers. Retirement is a status change, not a document deletion, so tickets already filed under it keep their topic name.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Retired topics and retired sub topics are filtered out of the topics returned to public forms and to
ticket_api_topics. - Retiring a topic frees a slot against the plan's topic ceiling.
ticket_actions_get
Get Ticket Actions
Reads the desk's actions bank for the Actions tab and for the topic editor's action picker. An action is the automation a topic fires.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Each action carries five template values:
process_name, ahandofftarget, adeadline(value, unit and whether to count business hours only), anotify_customerblock (enabled, channel, subject, body) and anai_agentblock (enabled, agent id, prompt, autonomy). - The stored
ai_agent.agent_idis not used today. The AI hand-off calls a generic chat prompt.
ticket_action_save
Save Ticket Action
Creates or edits one bank action: the process name shown on the ticket, the account it hands off to, the deadline it computes, the templated message it sends the customer, and the AI agent it can involve.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Plan gate: actions are capped by tier at 3 on Free and 15 on Starter, and are unlimited on Grow and Scale.
- Plan gate: AI autonomy is capped at save time to what the tier allows, none on Free, draft on Starter, reply on Grow and resolve on Scale, and it is re-capped again at run time.
- A hand-off target that is a new person counts against the derived seat ceiling and is refused with
-402at the limit. - A deadline set with business hours on counts only working hours, walking forward one hour at a time, capped at 400 days.
ticket_action_delete
Delete Ticket Action
Retires an action so it stops appearing in the action pickers.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Retirement is a status change. Tickets that already recorded a run of this action keep their
action_nameand theiraction_firedhistory. - Retiring an action frees a slot against the plan's action ceiling.
ticket_settings_get
Get Ticket Settings
Reads the desk's settings document: the reference prefix, the default priority, the business hours block, whether a webhook is configured, and the whole auto-close rule (enabled, warn days, idle days, eligible stages, reopen days and any per-topic overrides).
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- The webhook secret is write only and is never returned by this method. If you lose it, set a new one.
- Shipped defaults: warn after 5 days, close after 7 days, a reply reopens for 14 days, eligible stages
waiting_customerandresolved, and auto close itself off.
ticket_settings_save
Save Ticket Settings
Saves the desk defaults and the automation rule from the Automation tab: reference prefix, default priority, business hours, the outbound webhook URL and secret, and the auto-close block.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- The reference prefix is up to 6 characters and is uppercased. The default priority is 1 to 4. Business hours are a start and an end hour in UTC.
- Auto close is off by default because it closes people's tickets. Turning it on sends the customer a "Still need help?" email at the warning point and a "closed automatically" email at the close.
- Eligible stages are picked from
new,in progress,waiting customerandresolved. - Plan gate: per-topic auto-close overrides need a plan carrying that flag, which Free does not.
- The webhook secret is stored write only. Setting it turns on the
X-Xuda-Signatureheader on every outbound webhook. - Configuring the rule does not schedule it. See
ticket_auto_close_sweep.
ticket_forms_get
Get Ticket Forms
Lists the desk's public ticket forms for the Forms tab, with the public link for each one.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- The public link is always
https://<domain>/ticket-form/<owner_uid>.<profile_id>.<form_id>on a Xuda domain. Thecustom_form_domainplan flag has nothing behind it today.
ticket_form_save
Save Ticket Form
Creates or edits one published request form: its internal name, the heading and intro visitors read, the button text, the success message, the accent color, which of Phone, Company, Subject and Reference are shown and which of those are required, which topics it may file into, and whether a topic is mandatory.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Plan gate: forms are capped by tier at 1 on Free, 3 on Starter and 20 on Grow, and are unlimited on Scale.
- Two saved fields are stored but not enforced today.
captcha_requiredis written to the form document, but the rendered page has no captcha and the submit path never checks it.originsis written but not enforced: the form page shipsContent-Security-Policy: frame-ancestors *and removesX-Frame-Options, so any site may embed any form. - Bot defense on a published form is the honeypot, the HMAC token, the 2 second minimum fill time and the two rate-limit buckets.
- If you do not force a topic, the form offers visitors a "Not sure" option.
ticket_form_delete
Delete Ticket Form
Retires a published form. Its public link stops serving.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Tickets already filed through that form keep their
source: tickets_formand their thread. Only the form goes away. - Retiring a form frees a slot against the plan's form ceiling.
ticket_usage_get
Get Ticket Usage
Reads the desk's current tier, its monthly ticket allowance, how much of it has been used, any recorded overage, and the tier ladder itself. It is the first call the Tickets screen makes, and until the desk has been activated it is what makes the screen show the module landing page instead of the queue.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Usage lives in one counter document per desk per month,
tkuse_<owner_uid>_<YYYYMM>, incremented only after a ticket save succeeded. - The owner is emailed and bannered once at 80 percent of the allowance and once at the ceiling.
- The plan chip in the page header and its allowance warning are both driven from this call.
tickets_set_plan
Set Tickets Plan
Chooses the account's Tickets tier, and it is the only place billing for this feature is ever attached. Paid tiers attach a single line item to the one consolidated subscription per account, under the tickets category, the same way Commerce, Shipping and Finance do. Moving back to Free reprices that item rather than skipping the call.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- The four tiers are
tickets_free,tickets_starter,tickets_growthandtickets_scale, read fromaccount.tickets_planand defaulting totickets_free. - A downgrade is refused up front if it would strand more forms, topics, actions or seats than the lower tier holds, and the refusal names how many to remove.
- Downgrades are scheduled to the end of the paid period. The account field only moves when the Stripe webhook transitions the schedule.
- Production prices are not minted. The production plan object carries no
price_idon any of the four tiers, so a paid tier answers-402as "Theplan is not billable yet". Free is selectable and works. - Changing tier immediately changes the caps that every other method enforces, including API mode, API rate, AI autonomy, history retention and the seat, topic, action and form ceilings.
ticket_auto_close_sweep
Ticket Auto Close Sweep
Walks a desk's quiet tickets and applies the auto-close rule: warn after warn_days, close after idle_days, and only for the stages the desk marked eligible. Both the warning and the close write a system interaction and send the customer an email, and a customer reply inside reopen_days brings the ticket straight back.
Availability: Operator only
Parameters
This method is flagged private and registered with clearance: admin. Its field contract is not part of the published surface.
Notes
- Auth: admin clearance. It is not reachable with an API key and not reachable from a normal dashboard session.
- Scans 500 tickets by default and caps at 2,000 per run.
- Plan gate: the sweep honors the per-topic auto-close overrides only on plans carrying that flag, and it is gated on the SLA tracking flag for the SLA part of its work.
- Nothing runs this on a timer. The method is registered in both configs and exported from the module, but no cron anywhere in the repository invokes it. The rule can be configured and the sweep can be invoked by an operator, so auto close does not currently happen by itself.
ticket_form_bootstrap
Ticket Form Bootstrap
Supplies one published form to the page that renders it: the heading, the intro, the button text, the accent color, which optional fields are shown and which are required, the scoped topic list and its sub topics, and the one-time token the submission must carry back. It is used by the server-rendered form page at /ticket-form/<owner_uid>.<profile_id>.<form_id>, not over CPI.
Availability: Public endpoint
Parameters
This method is flagged private in the method registry while carrying clearance: public. Its arguments are supplied by the router that renders the form page, and there is no published external contract for it. To collect tickets from your own front end, use ticket_api_submit.
Notes
- Auth: none. The form key in the URL is the only addressing.
- The token it mints is an HMAC with a 2 hour TTL. A submission older than that is refused.
- The page it feeds shows only the topics the form was scoped to, and offers "Not sure" when a topic is not forced.
- The rendered page includes a hidden honeypot field and does not include a captcha, whatever the form's stored
captcha_requiredvalue says.
ticket_form_submit
Ticket Form Submit
Accepts a submission from a published ticket form and files it as a ticket with source: tickets_form. The requester is created or matched as a contact and the topic's mapped action fires. On success the visitor sees the desk's own success message with their ticket number, and never an account id or a ticket id.
Availability: Public endpoint
Parameters
This method is flagged private in the method registry while carrying clearance: public. Its arguments are posted by the server-rendered form page, and there is no published external contract for it. To open tickets from your own software, use ticket_api_submit.
Notes
- Auth: none. The one-time token from
ticket_form_bootstrapis the credential. - A submission is refused when the token is older than 2 hours, when it arrives faster than 2 seconds after the page rendered, past 5 submissions per IP in 10 minutes, or past 200 for that form in 24 hours.
- A filled honeypot field is answered with a silent success, so a bot cannot tell it was caught.
- Message length is capped at 5,000 characters and the endpoint caps the JSON body at 32 kb.
- The submission counts against the desk's monthly allowance like any other ticket, and the Free tier hard-stops at the ceiling.
submit_support_ticket
Submit Support Ticket
Raises a ticket with Xuda support from the dashboard Support screen. The customer picks a topic, a sub topic and a third-level detail, gives a subject, says where the error is, and writes a description. The ticket always lands on the Xuda supervisor desk with source: platform_support, whatever tenancy the caller has, and the customer gets an acknowledgement email quoting their ticket number and the response time their support plan promises.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- The support ladder it declares,
min_support_planof enterprise for a call, business for chat and starter for a ticket, is client-side only. The dashboard uses it to grey out the Chat and Call options. No server-side check formin_support_planexists in the platform, so it is a UI gate rather than an enforced one. - The support plan is what sets the SLA first-response target on Xuda platform tickets. The plan's response time string is parsed into milliseconds at submit.
- Choosing "Have us call you" instead returns two six-digit codes, the agent code your agent reads to you and the user code you read back.
- The Xuda platform desk is exempt from every Tickets plan gate, allowance and cap in this module.
- Every ticket notification links to
/dashboard/support/tickets/<ticket_id>, which is the requester's view, not the desk.
submit_sales_ticket
Submit Sales Ticket
Files the website contact-sales form as a ticket with source: website. It is called anonymously from the public site, so the submitter needs no account, and the submission is linked to an existing account by email when one matches.
Availability: Public endpoint
Parameters
This method is flagged private in the method registry while carrying clearance: public. Its arguments come from the website contact form and there is no published external contract for it.
Notes
- Auth: none.
- It resolves to the Xuda supervisor desk, not to the caller's own tenancy.
- An anonymous submission is matched to an existing account by email through the account email view, which is what links a sales inquiry to a customer who already has a Xuda login.
- If no account matches, the notification templates have nothing to deliver against, so a purely anonymous submitter may get no email even though the ticket was filed.
update_support_ticket
Update Support Ticket
Updates one of the calling account's own Xuda support tickets from the My Tickets screen, including adding attachments to the thread.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- It is the requester's path, not the desk's. To work a desk you own, use
ticket_update,ticket_replyandticket_set_status, or their API equivalents. - Interaction bodies are truncated at 20,000 characters.
get_support_ticket_interactions
Get Support Ticket Interactions
Reads the interaction thread on one of the calling account's own Xuda support tickets, which is what the ticket timeline and the per-channel message list on My Tickets are built from.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Interactions carry direction (
inorout), who wrote them (requester,agent,systemorai), the channel, the body and the timestamp. - Internal notes are stripped from anyone who is not the desk, so a requester never sees them here.
- Every state change writes an interaction, including creation, replies, status changes, action runs, auto-close warnings and the auto close itself, all with
from: 'system'. That is what makes a ticket auditable without a separate audit log.
get_support_articles
Get Support Articles
Reads the help articles shown in the Popular articles column on the Support screen, filterable by topic.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- It reads
docType: 'article'documents from the tickets database. Nothing in this module writes such a document, so the article set is populated elsewhere.
submit_feedback
Submit Feedback
Files a studio feedback note, optionally with a screenshot. It writes a studio_feedback document rather than a ticket, so it does not enter the queue, does not get a ticket number and does not count against any allowance.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- Feedback is not a ticket. It has no lifecycle, no topic, no action and no SLA.
get_devices_data
Get Devices Data
Reads device data for the app module's device support panels. It shares this module's registration for historical reasons and is not part of the ticket lifecycle.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal to the dashboard and is not published as an external surface.
Notes
- Auth: session user. Refused for API-key callers.
- It is called by the app module's device panels, not by any ticket screen, and it opens no ticket.
reload_active_devices
Reload Active Devices
An adjacent runtime utility that happens to live in the same module. It is not part of the ticket lifecycle and it opens, reads or changes no ticket.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal and is not published as an external surface.
Notes
- Auth: refused for API-key callers.
- Listed here only because it is one of the 47 methods registered to this module. Do not plan an integration around it.
get_client_error_data
Get Client Error Data
An adjacent runtime utility that happens to live in the same module. It is not part of the ticket lifecycle and it opens, reads or changes no ticket.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal and is not published as an external surface.
Notes
- Auth: refused for API-key callers.
- Listed here only because it is one of the 47 methods registered to this module. Do not plan an integration around it.
runtime_delete_docs
Runtime Delete Docs
An adjacent runtime utility that happens to live in the same module. It is not part of the ticket lifecycle and it is not the way to remove a ticket, a topic, an action or a form. Those retire through their own methods.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal and is not published as an external surface.
Notes
- Auth: refused for API-key callers.
- Listed here only because it is one of the 47 methods registered to this module. Do not plan an integration around it.
update_session_peer_status
Update Session Peer Status
An adjacent runtime utility that happens to live in the same module. It is not part of the ticket lifecycle and it opens, reads or changes no ticket.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal and is not published as an external surface.
Notes
- Auth: refused for API-key callers.
- Listed here only because it is one of the 47 methods registered to this module. Do not plan an integration around it.
update_session_peer_region
Update Session Peer Region
An adjacent runtime utility that happens to live in the same module. It is not part of the ticket lifecycle and it opens, reads or changes no ticket.
Availability: Dashboard session
Parameters
This method is flagged private. Its field contract is internal and is not published as an external surface.
Notes
- Auth: refused for API-key callers.
- Listed here only because it is one of the 47 methods registered to this module. Do not plan an integration around it.
The Plan Ladder And What It Gates
The tickets_* ladder has four tiers, read from account.tickets_plan and defaulting to tickets_free. Almost every limit in this reference comes from this table, so read it before you design against the API.
tickets_free |
tickets_starter |
tickets_growth |
tickets_scale |
|
|---|---|---|---|---|
| Display name | Free | Starter | Grow | Scale |
| Tagline | Run a small desk | A real desk | A desk with a team | A desk at volume |
| Declared price per month (USD) | 0 | 19 | 49 | 149 |
| Tickets per month | 100 | 1,000 | 10,000 | 100,000 |
| Overage per ticket | none, hard stop | $0.02 | $0.01 | $0.005 |
| Agent seats | 1 | 3 | 10 | unlimited |
| Public forms | 1 | 3 | 20 | unlimited |
| Topics | 5 | 25 | unlimited | unlimited |
| Actions | 3 | 15 | unlimited | unlimited |
| API mode | read only | full | full | full |
| API rate | 10/min | 60/min | 300/min | 1,200/min |
| Webhooks | no | yes | yes | yes |
| AI autonomy | none | draft | reply | resolve |
| Per-topic auto close | no | yes | yes | yes |
| SLA tracking flag | no | yes | yes | yes |
| History retention | 90 days | 365 days | 1,095 days | unlimited |
| Custom form domain flag | no | no | yes | yes |
Three honest caveats before you plan around this ladder:
- The declared price is not a purchasable price in production today. The production plan object carries no Stripe
price_idon any of the four tiers, sotickets_set_plansurfaces a-402reading "Theplan is not billable yet". Free works. Development carries test prices and a paid tier has been activated there. custom_form_domainhas nothing behind it. There is no field to put a custom domain in and every form URL is on a Xuda domain. It is documented in code as under-delivery.sla_trackingcannot fire on a tenant desk. Only the Xuda platform desk gets a first-response target, taken from the requester's support plan, so no tenant ticket can breach today. Also documented in code as under-delivery.
How the gates behave:
- The monthly allowance is checked before anything is written, so a refused ticket leaves nothing behind. Counters live one document per desk per month and are incremented only after the save succeeded.
- Topics, actions and forms are capped by one shared helper. A value of
-1in the plan object means unlimited. - Seats are derived rather than stored: the owner, plus every assignee on a ticket, plus every action hand-off target.
- AI autonomy is capped at save time and re-capped at run time.
- API mode and the per-minute rate are charged in one gate before every
ticket_api_*call. - History retention clamps both the list query and single-ticket reads. Nothing is deleted, and rows come back when the plan does. The person who raised a ticket always keeps their own copy.
- A downgrade is refused up front when it would strand more forms, topics, actions or seats than the lower tier holds, and the refusal names how many to remove.
- The Xuda platform desk is exempt from all of it.
There is no min_plan gate on any of the 47 ticketing methods. Every entitlement decision is made inside the module.
Errors
Every method answers the standard { code, data } envelope. A negative code is a failure and data carries the reason.
| Code | Meaning |
|---|---|
-402 |
Entitlement refusal. The API mode gate on a ticket_api_* write from Free, the seat ceiling, a topic, action or form cap, a per-topic auto-close override on a plan without the flag, a downgrade that would strand things, or a paid tier that has no Stripe price yet. |
-429 |
The Free tier's monthly ticket allowance is exhausted. Free hard-stops; every paid tier keeps accepting and records billable overage instead. |
-403 |
Not authorized for that ticket, or an assignee who is not on this desk's workspace team. |
-404 |
No such ticket, or a team member named as assignee whose account no longer exists. |
-409 |
An assignee email held by more than one team member (pass assignee_uid), or a closed assignee account. |
An API key calling any of the 38 private methods is refused before the method runs, because a private method is excluded from the API-key catalog entirely rather than failing inside the module.
Rate Limits
| Scope | Limit |
|---|---|
ticket_api_* calls, tickets_free |
10 per minute |
ticket_api_* calls, tickets_starter |
60 per minute |
ticket_api_* calls, tickets_growth |
300 per minute |
ticket_api_* calls, tickets_scale |
1,200 per minute |
| Public form submissions per IP | 5 per 10 minutes |
| Public form submissions per form | 200 per 24 hours |
| Public form minimum fill time | 2 seconds |
| Public form token lifetime | 2 hours |
The per-minute ceiling is charged on any call that passes the API mode check, so a read on Free spends from the same 10 calls a minute that a rejected write would not.
Sizes, Paging And Other Limits
| Setting | Limit |
|---|---|
| Ticket details | 20,000 characters |
| Ticket subject | 250 characters |
| Interaction body | 20,000 characters |
| Action notification body | 8,000 characters |
| AI prompt | 4,000 characters |
| Public form message | 5,000 characters |
| Public form request body | 32 kb |
ticket_list and ticket_api_list page size |
50 by default, 500 maximum |
Interactions returned by ticket_get |
up to 2,000 |
ticket_auto_close_sweep scan |
500 by default, 2,000 maximum |
| Deadline computation walk | capped at 400 days |
ticket_api_topics response cache |
300 seconds |
| Reference prefix | up to 6 characters, uppercased |
| Priority | 1 (highest) to 4 |
Auto-close defaults, all changeable through ticket_settings_save: warn after 5 days, close after 7 days, a reply reopens for 14 days, eligible stages waiting_customer and resolved, and the rule itself off.
Webhooks
Four outbound events, sent from the desk to any HTTPS endpoint you configure:
| Event | When it fires |
|---|---|
ticket.created |
A ticket is opened, from any of the nine entry points. |
ticket.replied |
A public reply is added to a ticket. |
ticket.status_changed |
The status or stage of a ticket moves. |
ticket.closed |
A ticket is closed, by a person, by the API or by the auto-close rule. |
Delivery contract:
- POST with a JSON body. The event name also travels in the
X-Xuda-Eventheader. - When a webhook secret is set, the body is signed HMAC-SHA256 and the signature travels as
X-Xuda-Signature: sha256=<hmac>. Verify it over the raw body. - The secret is set through
ticket_settings_saveand is write only. No method ever returns it. - HTTPS endpoints only.
- Delivery is fire and forget with a hard 5 second abort, so a slow or failing endpoint never holds up the ticket that triggered it. Treat webhooks as a fast path, not as a ledger, and reconcile with
ticket_api_listwhen it matters. - Plan gate: the
webhooksflag, whichtickets_freedoes not carry. On Free, nothing is sent.
Notifications
Ticketing sends its own customer and agent messages through the platform notification layer rather than expecting your integration to send them. Eleven templates ship with the product: ticket_opened_customer, ticket_opened_verify_review, ticket_opened_agent, ticket_replied_customer, ticket_replied_agent, ticket_assigned, ticket_closed_customer, ticket_auto_close_warning, ticket_auto_closed, ticket_allowance_warning and ticket_allowance_reached. The assignment message and both allowance messages deliver as an in-app banner as well as an email.
Two delivery facts worth designing around:
- A customer notification needs an account to deliver against. A purely anonymous requester whose email matches no Xuda account gets no email, even though the ticket, the reply and the interaction row are all recorded correctly.
- Every ticket notification links to
/dashboard/support/tickets/<ticket_id>, which is the requester's own view of the ticket, not the desk at/dashboard/tickets.
A Note On The Rest Of The Surface
Ticketing registers 47 methods and 38 of them are private. They are documented above because they define the product's behavior, but a private method is excluded from the API-key catalog and refused for API-key callers, so nine methods are what an integration can actually reach: the eight ticket_api_* methods and get_support_tickets.
One method, ticket_auto_close_sweep, is registered with admin clearance and is operator only. Nothing schedules it: there is no cron for ticketing anywhere in the platform, so the auto-close rule can be configured and can be run by an operator, but it does not currently run by itself. If your product depends on quiet tickets closing on a timer, close them yourself with ticket_api_close.
Beyond the registered methods, other Xuda modules open tickets through the same internal submit path: the profile contact form, marketplace human review, ambassador and mentor appeals, identity review and identity appeals. Those are internal module-to-module calls with no HTTP route of their own, and they are not part of any documented or supported surface.