A ticket is the unit of work on the AlgaPSA service desk. Use this API to create tickets, move them through your boards and statuses, assign them to technicians, and log comments, time, and files.
A ticket references a board, a status, a priority, and a client — all by ID. Resolve those first: statuses and priorities have their own lookups (GET /api/v1/tickets/statuses and GET /api/v1/tickets/priorities), while board and client IDs come from their own APIs. The Create a ticket guide walks through the full lookup-then-create flow.
The priority must belong to the same family as the board. Each board uses either ITIL priorities or custom priorities, and a ticket that pairs an ITIL priority with a custom-priority board (or the reverse) is refused with 400 VALIDATION_ERROR on priority_id. The same check runs on POST /tickets/from-asset and on PUT /tickets/{id} whenever the update changes board_id or priority_id, so when you move a ticket to a board of the other type, send a compatible priority_id in the same request.
curl https://algapsa.com/api/v1/tickets \
-H "X-API-Key: $ALGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "VPN down at the Northwind branch",
"client_id": "cl_3f9a2c",
"board_id": "bd_support",
"status_id": "st_new",
"priority_id": "pr_high"
}'Once a ticket exists, the rest happens through the sub-resources under /tickets/{id}: add notes with POST /comments, change where it sits with PUT /status, hand it off with PUT /assignment, add additional technicians via POST /agents, assign a team with PUT /team, and read logged effort from GET /time-entries. Files, documents, and materials hang off the same ticket.
Beyond the primary assignee set via PUT /api/v1/tickets/{id}/assignment, you can attach multiple additional technicians and a team to a ticket. These sub-resources were previously only accessible through the Alga PSA UI and are now available via REST.
To add a technician as an additional agent, call POST /api/v1/tickets/{id}/agents with an agent_id in the request body. Retrieve the full list with GET /api/v1/tickets/{id}/agents, and remove one with DELETE /api/v1/tickets/{id}/agents/{userId}. The userId path segment is validated as a UUID — malformed values return a 400 error rather than a server error.
Team assignment works the same way: PUT /api/v1/tickets/{id}/team with a team_id assigns the team, and DELETE /api/v1/tickets/{id}/team removes it. All five routes require ticket:update permission.
If you update the primary assignee on a ticket that already has additional agents, PUT /assignment handles the transition atomically — the internal resource rows are cleared and re-keyed before the assignee field is updated, so the call succeeds even when additional agents are present.
Any ticket mutation that would normally trigger notifications — status changes, reassignments, new comments, or team and agent changes — can skip them for a single operation. Add either or both of these optional fields to the JSON request body:
suppressContactNotifications — suppresses customer-facing email and portal notifications.suppressInternalNotifications — additionally suppresses agent, watcher, in-app, and push notifications. Only valid when suppressContactNotifications is also true.Both flags are accepted by POST /tickets, POST /tickets/from-asset, PUT /tickets/{id}, PUT /tickets/{id}/status, PUT /tickets/{id}/assignment, POST /tickets/{id}/comments, POST /tickets/{id}/agents, and PUT /tickets/{id}/team. On create, setting suppressContactNotifications prevents the “Your ticket has been created” email. Silent updates still produce audit records, activity entries, workflow triggers, and webhook deliveries — only the notification emails and pushes are suppressed.
When you migrate from another PSA, you can keep each ticket's original dates instead of stamping everything with the time of the import. Pass entered_at on POST /tickets as an ISO 8601 timestamp with an explicit offset (Z or +hh:mm; date-only values and future times are rejected). The ticket is then recorded as history rather than new work: it is stored with source=api_import, no SLA clock starts, and no notifications, webhooks, or workflows run for it. The one exception: inline external_links still publish link-added events, so omit them on historical writes.
curl https://algapsa.com/api/v1/tickets \
-H "X-API-Key: $ALGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Printer offline in accounting",
"client_id": "cl_3f9a2c",
"board_id": "bd_support",
"status_id": "st_closed",
"priority_id": "pr_medium",
"entered_at": "2025-03-04T14:20:00Z",
"closed_at": "2025-03-05T09:10:00Z"
}'To import a ticket that was already closed, add closed_at and, optionally, closed_by (defaults to the API user). Both require entered_at; closed_at is required for a closed status, rejected for an open one, and must fall between entered_at and now.
Import the conversation the same way: pass a historical created_at on POST /tickets/{id}/comments. The comment keeps that timestamp, appears in chronological order, and publishes nothing — no notifications, webhooks, workflows, or SLA first-response credit. It must not be earlier than the ticket's entered_at (or, for a reply, its parent comment) and cannot be combined with scheduled publishing or cc/bcc recipients.
To fix the open date of a ticket that already exists, send entered_at on PUT /tickets/{id}. It must not be in the future or later than the ticket's closure or earliest comment. A request that changes only entered_at is treated as bookkeeping: it does not fire a ticket-updated event or change SLA state. Historical writes require an internal MSP user with ticket:create (new tickets) or ticket:update (comments and corrections).
When posting a public comment with POST /api/v1/tickets/{id}/comments, an MSP agent can Cc or Bcc one-off external email addresses that are not on the ticket's ongoing watch list. AlgaPSA delivers a copy of the comment email to those addresses as real Cc/Bcc headers, then discards them — they do not become ticket watchers and will not receive future notifications.
Supply either or both of these optional arrays in the request body:
cc — email addresses copied visibly on this comment.bcc — email addresses copied blind on this comment.Both arrays are validated: addresses are trimmed and deduplicated, a single address appearing in both lists is promoted to cc, the combined count must not exceed 20 recipients, and one-off recipients are rejected on internal notes. The resolved list is persisted in the comment's email_recipients metadata field and returned on comment read responses. Client-portal contacts can see cc addresses but not bcc addresses on comments they can read.
If the ticket has no requester email or the requester is the comment author, AlgaPSA sends a direct email to the one-off recipients rather than dropping them. A one-off recipient who replies to the thread is recognized on that conversation, but their address is never added to the ticket's permanent watch list.
A ticket's watch list is the set of users, contacts, and external email addresses that receive its notifications regardless of assignment. All four operations live on /api/v1/tickets/{id}/watchers. A watcher is identified by its email address, matched case-insensitively; internal row ids are never exposed.
GET lists the current watchers. Requires ticket:read.POST adds one, idempotently. Supply exactly one of contact_id, user_id, or email, plus optional name and active.PATCH toggles a watcher on or off. The body takes email and a required active boolean.DELETE removes the watcher named by the ?email= query parameter.Each write accepts an optional silent flag (a body field on POST and PATCH, a query parameter on DELETE) that suppresses the notification that write would otherwise send. It applies to that request only and is never stored on the watcher. The three mutations require ticket:update.
List and filter with GET /api/v1/tickets. Supported query parameters include status, client, board, priority, assignee, and more. To narrow results to tickets carrying specific tags, pass the tags parameter with a comma-separated list of tag names (e.g. ?tags=vip,urgent); tag values are matched case-insensitively. Run a text query with GET /api/v1/tickets/search, or pull counts for a dashboard from GET /api/v1/tickets/stats. To open a ticket straight from a piece of hardware, use POST /api/v1/tickets/from-asset.
By default, GET /api/v1/tickets omits tag information to keep responses lean. Add fields=tags to the query string to include each ticket's tag array in the response. Each tag entry contains tag_id, tag_text, background_color, and text_color. The parameter works alongside any other filter — for example, GET /api/v1/tickets?fields=tags&status_id=st_open returns all open tickets with their tags attached.
GET /api/v1/tickets accepts a sort query parameter to control result order. The value is validated against an explicit allowlist; passing an unrecognised sort key returns 400 Bad Request with a machine-readable error rather than a database error.
Pass sort=latest_activity_at (combined with order=asc or order=desc) to sort tickets by their most recent visible activity — the newest of the ticket's own timestamps and its latest published, non-deleted comment. This surfaces tickets that have had recent conversation even when the underlying ticket record has not otherwise changed, and it matches the ordering the “Last Activity” column in the UI uses, so API results and the list view stay in sync when you apply the same filters.
created_at is accepted as a sort alias for the underlying entered_at column. To include the latest_activity_at timestamp in each response object, add it to the fields parameter alongside any other fields you need. For client-portal callers the value is computed from non-internal comments only, so internal notes do not expose their timing to portal contacts.
When several tickets describe the same underlying issue, group them under one master ticket. Create the bundle with POST /api/v1/tickets/{id}/bundle, choosing a sync mode of link_only to just link the children or sync_updates to propagate the master's changes to them. Adjust membership later with POST /api/v1/tickets/{id}/bundle/children and DELETE /api/v1/tickets/{id}/bundle/children/{childId}, hand the master role to another ticket with POST /api/v1/tickets/{id}/bundle/promote, and change the sync mode through PUT /api/v1/tickets/{id}/bundle/settings. Read a ticket's role (master, child, or standalone) and its full membership from GET /api/v1/tickets/{id}/bundle, or break the whole group apart with DELETE /api/v1/tickets/{id}/bundle.
Service tickets can be linked to the hardware they affect. Use GET /api/v1/tickets/{id}/assets to list all assets currently associated with a ticket; each row includes full asset details and the relationship type describing why it is linked. Create a link with POST /api/v1/tickets/{id}/assets (supply asset_id; optionally pass relationship_type, default affected, and notes), and remove it with DELETE /api/v1/tickets/{id}/assets/{assetId}. Reading linked assets requires ticket:read and asset:read; creating or removing a link also requires ticket:update. The same associations are readable and writable from the asset side — see Assets API.
A support ticket is often blocked on or related to a project task — an upgrade scheduled for next week, a hardware procurement in flight. Rather than scanning every project to find a ticket's dependencies, call GET /api/v1/tickets/{id}/project-links to retrieve all the project tasks this ticket is linked to.
Each result includes the project, phase, and task the link points to, along with the task's resolved status (custom mapping name, then project status, then standard status), an is_closed flag, and the last time the task changed. Links to projects you don't have project:read access to are silently omitted, so the response always stays within your permission scope. Requires both ticket:read and project:read.
A ticket template bundles a predefined title, description, board, category, priority, ITIL values, tags, custom fields, and a full checklist into a reusable starting point. Templates are now a first-class REST resource, so automations can create, maintain, and apply them without rebuilding a checklist item by item every time.
Manage templates under /api/v1/tickets/templates: list (with optional client_id, is_active, or search filters), create, read, update, and delete. Deleting a template returns 409 Conflict when a non-archived recurring schedule still uses it.
To create a ticket from a template in a single call, use POST /api/v1/tickets/templates/{templateId}/instantiate. Pass client_id (required) plus optional contact_name_id, location_id, asset_ids, assigned_to, status_id, and due_date. The resulting ticket carries the template's tags, custom fields, and checklist items, and records created_from_template_id for traceability. Use instantiate rather than POST /tickets followed by per-item checklist calls — the two-step approach is slower and more error-prone.
Title tokens. A template title may contain {{client}}, {{contact}}, {{due_date}}, {{month}}, and {{year}}. These are filled in per ticket from what you pass to instantiate; any other {{token}} is rejected when the template is saved.
Client-specific templates. client_id is null by default, meaning the template is available for every client. Set it to restrict the template to one client: it then only appears in that client's list and is refused with 400 when instantiated for anyone else. When a client is deleted, its scoped templates are deactivated and detached rather than deleted; merging clients moves them to the surviving client.
Permissions. List and read require ticket_template:read. Create, update, and delete require the matching ticket_template:create/update/delete permissions. instantiate requires both ticket:create and ticket_template:read. The entire template surface is internal (MSP) only and is not available through the client portal.
Documentation links. A template can carry a links array (up to 50) of documentation links, such as Hudu articles or a vendor runbook. Each entry takes a system (a built-in key such as hudu, or one of your custom systems), external_id, and optional url, title, realm, and metadata. Every ticket created from the template — through instantiate, a recurring schedule, or the app — gets its own copy of those links as reference external links, hidden from the client portal. The copy is taken when the ticket is created, so editing the template's links later leaves existing tickets alone. PUT replaces the stored list, and listing the same system and external_id twice returns 400. Hudu runs on your own host, so a hudu link needs an explicit url.
A recurring ticket definition — a recurring schedule in the app — creates a ticket from a template on a schedule, one ticket per client on the definition. Use it for work that comes due on a calendar, such as a yearly certificate renewal or a monthly maintenance check across every managed client. Definitions are now available over REST (and to the MCP integration) under /api/v1/tickets/recurring, so you can set up and monitor schedules from your own tooling instead of the app.
POST /api/v1/tickets/recurring creates a definition. The body names the ticket_template_id that supplies the ticket content, the recurrence rule and start_date, the create_time and due_time in your tenant's time zone, lead_days (how many days before the due date the ticket is created), what to do when the due date falls on a non-business day, whether to skip an occurrence while the previous ticket is still open, and optional board, priority, category, status, and assignment overrides. PUT /api/v1/tickets/recurring/{definitionId} replaces the whole definition, so omitted fields return to their defaults. DELETE /api/v1/tickets/recurring/{definitionId} archives it; there is no unarchive, and later writes to an archived definition return 409. List definitions with GET /api/v1/tickets/recurring, filtering by status (active, paused, archived, or all) and a name search.
A definition only generates tickets for the clients on it. Add clients with POST /api/v1/tickets/recurring/{definitionId}/clients and a { "client_ids": [...] } body. For one client, PUT .../clients/{clientId} sets its own overrides, contact, location, and linked assets, and DELETE .../clients/{clientId} takes it off the schedule while keeping its history. {clientId} is the client's ordinary client_id. Pause and resume the whole schedule with .../pause and .../resume, or one client with .../clients/{clientId}/pause and /resume.
To check a schedule before or after you save it, POST /api/v1/tickets/recurring/preview computes the dates for an unsaved draft and GET .../{definitionId}/upcoming returns the next five due dates together with definition_status — the dates are shown even when the schedule is paused, so check the status. The run history is at GET .../{definitionId}/occurrences, one row per generation attempt, filterable by status (created, skipped, missed, failed) and client_id.
Permissions. These endpoints use the recurring_ticket permission: read for list, read, preview, upcoming, and occurrences; create; update for replace, pause, resume, and every client operation; and delete to archive. Because a definition decides where its future tickets land and who they are assigned to, a write that sets the board, status, or assignment, or that adds clients, must also pass the ticket:create check for each affected client. A refusal returns 403 and nothing is saved.
DELETE /api/v1/tickets/{id} permanently removes a ticket and all its owned child records — comments, attachments, SLA notification history, email reply tokens, and project links are cleaned up automatically. If the ticket has records that cannot be removed automatically, such as logged time entries or schedule entries, the call returns 409 Conflict with a details.dependencies array that lists each blocking item so you know exactly what to remove or reassign first. Once the blocking records are cleared, retry the DELETE and it will succeed. A successful delete returns 204 No Content and the ticket is removed from the search index.
Every endpoint links through to its full parameters, request and response schemas, and code samples.
GET/api/tickets/{id}/email-htmlAlgaPSAGET ticketsGET/api/v1/ticketsAlgaPSAAlgaDeskList ticketsPOST/api/v1/ticketsAlgaPSAAlgaDeskCreate ticketGET/api/v1/tickets/{id}AlgaPSAAlgaDeskGet ticketPUT/api/v1/tickets/{id}AlgaPSAAlgaDeskUpdate ticketDELETE/api/v1/tickets/{id}AlgaPSAAlgaDeskDelete ticketGET/api/v1/tickets/{id}/agentsAlgaPSAAlgaDeskList ticket agentsPOST/api/v1/tickets/{id}/agentsAlgaPSAAlgaDeskAdd a ticket additional agentDELETE/api/v1/tickets/{id}/agents/{userId}AlgaPSAAlgaDeskRemove a ticket additional agentGET/api/v1/tickets/{id}/assetsAlgaPSAList assets linked to a ticketPOST/api/v1/tickets/{id}/assetsAlgaPSALink an asset to a ticketDELETE/api/v1/tickets/{id}/assets/{assetId}AlgaPSAUnlink an asset from a ticketPUT/api/v1/tickets/{id}/assignmentAlgaPSAAlgaDeskUpdate ticket assignmentGET/api/v1/tickets/{id}/bundleAlgaPSAAlgaDeskGet ticket bundlePOST/api/v1/tickets/{id}/bundleAlgaPSAAlgaDeskCreate ticket bundleDELETE/api/v1/tickets/{id}/bundleAlgaPSAAlgaDeskUnbundle ticketPOST/api/v1/tickets/{id}/bundle/childrenAlgaPSAAlgaDeskAdd bundle childrenDELETE/api/v1/tickets/{id}/bundle/children/{childId}AlgaPSAAlgaDeskRemove bundle childPOST/api/v1/tickets/{id}/bundle/promoteAlgaPSAAlgaDeskPromote bundle masterPUT/api/v1/tickets/{id}/bundle/settingsAlgaPSAAlgaDeskUpdate ticket bundle settingsGET/api/v1/tickets/{id}/checklistAlgaPSAAlgaDeskList ticket checklist itemsPOST/api/v1/tickets/{id}/checklistAlgaPSAAlgaDeskAdd a ticket checklist itemPATCH/api/v1/tickets/{id}/checklist/{itemId}AlgaPSAAlgaDeskSet ticket checklist item completionGET/api/v1/tickets/{id}/commentsAlgaPSAAlgaDeskList ticket commentsPOST/api/v1/tickets/{id}/commentsAlgaPSAAlgaDeskAdd ticket commentPUT/api/v1/tickets/{id}/comments/{commentId}AlgaPSAAlgaDeskUpdate a ticket commentPOST/api/v1/tickets/{id}/comments/{commentId}/reactionsAlgaPSAAlgaDeskToggle a comment reactionDELETE/api/v1/tickets/{id}/comments/{commentId}/scheduleAlgaPSAAlgaDeskCancel a scheduled commentGET/api/v1/tickets/{id}/documentsAlgaPSAAlgaDeskList ticket documentsPOST/api/v1/tickets/{id}/documentsAlgaPSAAlgaDeskUpload a ticket documentGET/api/v1/tickets/{id}/documents/{documentId}AlgaPSAAlgaDeskDownload a ticket documentDELETE/api/v1/tickets/{id}/documents/{documentId}AlgaPSAAlgaDeskDelete a ticket documentGET/api/v1/tickets/{id}/documents/{documentId}/previewAlgaPSAAlgaDeskGet a ticket document preview imageGET/api/v1/tickets/{id}/documents/{documentId}/thumbnailAlgaPSAAlgaDeskGet a ticket document thumbnail imageGET/api/v1/tickets/{id}/external-linksAlgaPSAAlgaDeskList ticket external linksPOST/api/v1/tickets/{id}/external-linksAlgaPSAAlgaDeskAdd a ticket external linkPATCH/api/v1/tickets/{id}/external-links/{linkId}AlgaPSAAlgaDeskUpdate a ticket external linkDELETE/api/v1/tickets/{id}/external-links/{linkId}AlgaPSAAlgaDeskRemove a ticket external linkGET/api/v1/tickets/{id}/materialsAlgaPSAList ticket materialsPOST/api/v1/tickets/{id}/materialsAlgaPSAAdd a ticket materialGET/api/v1/tickets/{id}/project-linksAlgaPSAAlgaDeskList the project tasks a ticket is linked toPUT/api/v1/tickets/{id}/statusAlgaPSAAlgaDeskUpdate ticket statusPUT/api/v1/tickets/{id}/teamAlgaPSAAlgaDeskAssign a team to a ticketDELETE/api/v1/tickets/{id}/teamAlgaPSAAlgaDeskRemove a ticket team assignmentGET/api/v1/tickets/{id}/time-entriesAlgaPSAList ticket time entriesGET/api/v1/tickets/{id}/watchersAlgaPSAAlgaDeskList ticket watchersPOST/api/v1/tickets/{id}/watchersAlgaPSAAlgaDeskAdd a ticket watcherPATCH/api/v1/tickets/{id}/watchersAlgaPSAAlgaDeskPause or resume a ticket watcherDELETE/api/v1/tickets/{id}/watchersAlgaPSAAlgaDeskRemove a ticket watcherGET/api/v1/tickets/by-external-linkAlgaPSAAlgaDeskFind a ticket by external linkGET/api/v1/tickets/categoriesAlgaPSAAlgaDeskList ticket categoriesGET/api/v1/tickets/from-assetAlgaPSACreate ticket from asset (POST only)POST/api/v1/tickets/from-assetAlgaPSACreate ticket from assetGET/api/v1/tickets/prioritiesAlgaPSAAlgaDeskList ticket prioritiesGET/api/v1/tickets/recurringAlgaPSAAlgaDeskList recurring ticket definitionsPOST/api/v1/tickets/recurringAlgaPSAAlgaDeskCreate a recurring ticket definitionGET/api/v1/tickets/recurring/{definitionId}AlgaPSAAlgaDeskGet a recurring ticket definitionPUT/api/v1/tickets/recurring/{definitionId}AlgaPSAAlgaDeskReplace a recurring ticket definitionDELETE/api/v1/tickets/recurring/{definitionId}AlgaPSAAlgaDeskArchive a recurring ticket definitionPOST/api/v1/tickets/recurring/{definitionId}/clientsAlgaPSAAlgaDeskAdd clients to a recurring ticket definitionPUT/api/v1/tickets/recurring/{definitionId}/clients/{clientId}AlgaPSAAlgaDeskReplace a client’s settings on a recurring ticket definitionDELETE/api/v1/tickets/recurring/{definitionId}/clients/{clientId}AlgaPSAAlgaDeskRemove a client from a recurring ticket definitionPOST/api/v1/tickets/recurring/{definitionId}/clients/{clientId}/pauseAlgaPSAAlgaDeskPause one client on a recurring ticket definitionPOST/api/v1/tickets/recurring/{definitionId}/clients/{clientId}/resumeAlgaPSAAlgaDeskResume one client on a recurring ticket definitionGET/api/v1/tickets/recurring/{definitionId}/occurrencesAlgaPSAAlgaDeskList the occurrence history of a recurring ticket definitionPOST/api/v1/tickets/recurring/{definitionId}/pauseAlgaPSAAlgaDeskPause a recurring ticket definitionPOST/api/v1/tickets/recurring/{definitionId}/resumeAlgaPSAAlgaDeskResume a recurring ticket definitionGET/api/v1/tickets/recurring/{definitionId}/upcomingAlgaPSAAlgaDeskGet the next due dates of a recurring ticket definitionPOST/api/v1/tickets/recurring/previewAlgaPSAAlgaDeskPreview the next due dates of an unsaved recurring scheduleGET/api/v1/tickets/searchAlgaPSAAlgaDeskSearch ticketsGET/api/v1/tickets/statsAlgaPSAAlgaDeskGet ticket statsGET/api/v1/tickets/statusesAlgaPSAAlgaDeskList ticket statusesGET/api/v1/tickets/templatesAlgaPSAAlgaDeskList ticket templatesPOST/api/v1/tickets/templatesAlgaPSAAlgaDeskCreate a ticket templateGET/api/v1/tickets/templates/{templateId}AlgaPSAAlgaDeskGet a ticket templatePUT/api/v1/tickets/templates/{templateId}AlgaPSAAlgaDeskUpdate a ticket templateDELETE/api/v1/tickets/templates/{templateId}AlgaPSAAlgaDeskDelete a ticket templatePOST/api/v1/tickets/templates/{templateId}/instantiateAlgaPSAAlgaDeskCreate a ticket from a ticket template