Skip to main content
Tickets are the central work item in NeetoDesk. For fields and response details, see the API reference.
Sample output on this page is shown as the --json envelope, which is reproducible. Pretty tables depend on your terminal width. See Output formats.
Everywhere a ticket ID is taken, the CLI accepts either the ticket’s UUID or its workspace-scoped number, so neetodesk tickets show 1042 and neetodesk tickets show 0f1e4c9a-6d3b-4f92-8a71-25b0c8d4e6f3 do the same thing. The number is the one shown in the web app, and is usually the easier of the two to type.

List tickets

Lists the tickets you can access. Use it to triage a queue, or narrow it to the statuses you care about with a comma-separated --status.
assignee and customer are left out when the ticket has none, and fields lists the custom ticket fields as field_name and field_value pairs.

Show a ticket

Returns one ticket in full, including its description and the agent, customer, group and tags it is associated with. The record has the same fields as a tickets list entry and sits under a ticket key in data.

Required arguments

  • <id> - the ticket’s number or UUID.

Create a ticket

Opens a ticket on behalf of a customer, identified by their email address. The description becomes the ticket’s first comment. If no customer with that email exists, one is created.
--attach attaches a file to the ticket’s first comment. Repeat the flag for more than one file. Every file is uploaded before the ticket is created, so a file that cannot be read or uploaded fails the command and creates nothing. The CLI does not delete the files it had already uploaded before the failure; they are left unattached and reclaimed automatically, so re-running the command is safe.
The response carries only the new ticket’s identifiers and its URL in the web app. With --quiet just the id is printed.

Update a ticket

Changes a ticket’s subject, description, status, priority, category, assignee or group, and adds files with --attach. Pass only the flags you want to change; the rest are left as they are. The updated ticket comes back in full under a ticket key in data.
--attach adds each file to the ticket’s opening message, beside the files already there, and repeats for more than one file. A ticket that has no opening message cannot take files this way; add them with tickets comments create --attach instead. Attaching applies the workspace attachment limit, 10 MB by default, which is smaller than the 50 MB upload limit, so a file between the two uploads and is then refused.

Required arguments

  • <id> - the ticket’s number or UUID.

List comments

Lists a ticket’s comments in the order they were added, each with its type, author and body.

Required arguments

  • <ticket-id> - the ticket’s number or UUID.
A comment the system wrote has an author of type system with no id or email. Each entry in attachments carries the file’s id, filename and url.

Show a comment

Returns one comment on a ticket, under a comment key in data.

Required arguments

  • <ticket-id> - the ticket’s number or UUID.
  • <comment-id> - the comment’s UUID.

Create a comment

Adds a comment to a ticket. A reply is published on the ticket where the customer reads it; a note stays internal to the workspace. The comment is attributed to you, the signed-in user. The new comment comes back under a comment key in data, and --quiet prints just its id.

Required arguments

  • <ticket-id> - the ticket’s number or UUID.
--attach attaches a file to the comment, and the flag repeats for more than one file. As with tickets create, every file is uploaded first, so a file that cannot be read or uploaded fails the command and adds no comment.
Use attachments upload when the file has to be attached by a later call than the one that uploads it. tickets drafts create --attach keeps a file on a draft until the draft is sent.

Create a draft

Saves an unsent draft on a ticket, replacing whichever draft the ticket already holds of that type. A reply drafted for an agent, named with --author-email, gets that agent’s saved signature appended.

Required arguments

  • <ticket-id> - the ticket’s number or UUID.
The CLI can write drafts but not read them back.