First-party app
Datto Autotask PSA

Autotask PSA

Query and manage Datto Autotask PSA tickets, companies, contacts, time entries, projects, tasks and opportunities through the Autotask REST API.

stable Customer SupportCustomer Relationship ManagementProject Management

About

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.

App id
io.w6w.autotask
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Customer Support · Customer Relationship Management · Project Management

Overview

Datto 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.

Build with Autotask PSA

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.

Create company

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.

Update company

company-update

Change the fields you send on a company (PATCH — everything else is left alone).

Create contact

contact-create

Create a contact under a company. `isActive` is an integer on this entity (1 = active).

Update contact

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.

Count entities

entity-count

Count the rows of an Autotask entity that match a filter, without fetching them.

Get entity fields and picklists

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.

Get entity by id

entity-get

Read one Autotask record by id. A missing id returns `found: false` (the API answers 200 with a null item).

Query entities

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.

Create opportunity

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.

Update opportunity

opportunity-update

Change the fields you send on an opportunity (PATCH — the rest is left alone).

Create project

project-create

Create a project for a company. `projectType` and `status` are picklist ids; start and end are required.

Create project task

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.

Update project task

project-task-update

Change the fields you send on a project task (PATCH). Needs the task's project id.

Update project

project-update

Change the fields you send on a project (PATCH — everything else is left alone).

Get API request budget

threshold-info

Requests used against the database's rolling hourly API threshold, shared by every integration on the database.

Create ticket

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`.

Add ticket note

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.

List ticket notes

ticket-note-list

The notes on a ticket, each with its `publish` visibility — filter on it before forwarding notes outside the service desk.

Update ticket

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.

Log time entry

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.

Delete time entry

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>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create company

    perform
    company-create
  • Update company

    perform
    company-update
  • Create contact

    perform
    contact-create
  • Update contact

    perform
    contact-update
  • Count entities

    read
    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.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { 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);
Install the CLI
npm install -g @w6w/cli
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.

What the agent gets

Credentials it can't read

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.

A tool surface scoped to the caller

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.

A durable workflow in one call

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.

Health-aware discovery

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).

Request MCP access

Health checks

Autotask PSA declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Autotask PSA platform status

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.

dependency

REST API reachable

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.

quota

Hourly API request budget

Requests used against the database's rolling request threshold, from GET /ThresholdInformation. The budget is shared by every integration on the database.