Query and manage Datto Autotask PSA tickets, companies, contacts, time entries, projects, tasks and opportunities through the Autotask REST API.
Autotask PSA ships in the w6w first-party pack. It declares 21 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.autotaskDatto Autotask PSA is the professional services automation platform many managed service providers run their business on: service desk tickets, companies and contacts, time entries, projects and tasks, contracts, configuration items and the sales pipeline all live in one database.
This app gives a workflow the whole of that surface through the Autotask REST API. Three generic actions (query, count, get by id) reach every entity the API exposes, with Autotask’s own filter grammar passed through untouched, and typed create and update actions cover the entities a workflow most often writes: tickets and ticket notes, companies, contacts, time entries, projects, project tasks and opportunities.
Autotask is split into numbered zones, and a tenant’s data lives on exactly one of them. The connection asks for the zone (it is the number in your Autotask web address) and the app only ever talks to that zone’s host. Health checks follow the vendor’s published status page and the account’s own hourly API request budget, which Autotask caps at 10,000 requests per hour per database across every integration.
Three routes to the same 21 actions. The Workflow tab is generated from Autotask PSA's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
company-create Create a company. `companyType` is a picklist id and `ownerResourceID` the account manager's resource id; `phone` is required by the vendor's entity page.
company-update Change the fields you send on a company (PATCH — everything else is left alone).
contact-create Create a contact under a company. `isActive` is an integer on this entity (1 = active).
contact-update Change the fields you send on a contact (PATCH). The contact's company id is needed because the vendor only exposes contact writes under the parent company.
entity-count Count the rows of an Autotask entity that match a filter, without fetching them.
entity-fields The fields of an Autotask entity with their types, required/read-only flags and picklist values — the only way to learn a database's status, priority and queue ids.
entity-get Read one Autotask record by id. A missing id returns `found: false` (the API answers 200 with a null item).
entity-query Query any Autotask entity (tickets, companies, contacts, time entries, contracts, configuration items, ...) with Autotask's own JSON filter. Up to 500 rows per call; pass `nextPageUrl` back as `pageUrl` for the next page.
opportunity-create Create a sales opportunity. `stage` and `status` are picklist ids; amount, cost, probability and the quote-totals flag are required by the vendor's entity page.
opportunity-update Change the fields you send on an opportunity (PATCH — the rest is left alone).
project-create Create a project for a company. `projectType` and `status` are picklist ids; start and end are required.
project-task-create Add a task to a project. `status` and `taskType` are picklist ids; a billing code and department are required once a resource is assigned.
project-task-update Change the fields you send on a project task (PATCH). Needs the task's project id.
project-update Change the fields you send on a project (PATCH — everything else is left alone).
threshold-info Requests used against the database's rolling hourly API threshold, shared by every integration on the database.
ticket-create Open a ticket. `status` and `priority` are per-database picklist ids (read them with `entity-fields`); the ticket category can additionally require `queueID` or `dueDateTime`.
ticket-note-create Add a note to a ticket. `noteType` and `publish` (who can see it) are picklist ids from `entity-fields`; a title is required only if the ticket category demands one.
ticket-note-list The notes on a ticket, each with its `publish` visibility — filter on it before forwarding notes outside the service desk.
ticket-update Change the fields you send on a ticket (PATCH — everything else is left alone). To complete a ticket set `status` to the database's Complete picklist id.
time-entry-create Log time on a ticket or task. Needs `resourceID` and `roleID`, plus `dateWorked` or `startDateTime`; summary notes are required on task time.
time-entry-delete Permanently delete a time entry. Idempotent in effect: a second delete of the same id fails with the API's own error rather than deleting anything else.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Autotask PSA's real ids.
{
"manifestVersion": "2",
"name": "autotask-example",
"steps": [
{
"id": "company-create",
"uses": {
"app": "io.w6w.autotask",
"action": "company-create",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"companyName": "<companyName>",
"companyType": "<companyType>",
"ownerResourceID": "<ownerResourceID>"
}
}
]
}company-create company-update contact-create contact-update entity-count +16 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Autotask PSA, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Autotask PSA. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "company-create",
payload: {
companyName: "<value>",
companyType: "<value>",
ownerResourceID: "<value>",
phone: "<value>",
// address1: "<value>",
// address2: "<value>",
// city: "<value>",
// state: "<value>",
// postalCode: "<value>",
// countryID: "<value>",
// webAddress: "<value>",
// companyNumber: "<value>",
// classification: "<value>",
// companyCategoryID: "<value>",
// parentCompanyID: "<value>",
// isActive: "<value>",
// fields: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action company-create --payload '{"companyName":"<value>","companyType":"<value>","ownerResourceID":"<value>","phone":"<value>"}' Give an AI agent Autotask PSA — without giving it Autotask PSA's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.autotask#company-create",
"input": {
"companyName": "<companyName>",
"companyType": "<companyType>",
"ownerResourceID": "<ownerResourceID>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Autotask PSA connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Autotask PSA's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Autotask PSA itself is MIT, and the runtime that executes it is source-available (FSL).
Autotask PSA declares its own checks, so its health is a property of the app rather than something the host guesses at.
The regional components of the "Autotask PSA" group on status.kaseya.com. A single affected region is degraded because the feed does not say which zone it is; only every region in a major outage is down.
Unauthenticated GET zoneInformation on webservices.autotask.net. Autotask's own `{"errors": [...]}` envelope (even on a 500) proves the API tier is answering. Credential validity is the derived `auth:*` check's job.
Requests used against the database's rolling request threshold, from GET /ThresholdInformation. The budget is shared by every integration on the database.