cloud_sync

Autotask Integration Guide

Connect Autotask PSA (Datto) to import companies into MSPDock, or migrate customers, contacts, and contracts.

Prerequisites

Before you begin, make sure you have:

  • checkAn active Autotask PSA account with Administrator access (required to create API users)
  • checkNothing for the zone: MSPDock finds your Autotask zone automatically (details below)
  • checkAn MSPDock account with Owner or Admin role
1

Create an API user in Autotask

Autotask uses dedicated API users (not regular user accounts) for third-party integrations. You will need to create one specifically for MSPDock.

  1. aIn Autotask, go to Admin → Account Settings & Users → Resources/Users (HR) → Resources/Users
  2. bClick the arrow next to New and choose New API User. API users don't use a paid license.
  3. cFill in a name (e.g., "MSPDock") and an email, and set Security Level to API User (system)
  4. dUnder Credentials, click Generate Key for the Username and Generate Secret for the Password. Copy the secret now: Autotask only shows it once.
  5. eUnder API Tracking Identifier, choose Custom (Internal Integration) and name it "MSPDock". The Tracking Identifier Autotask shows is your API Integration Code.
  6. fSave the API user

MSPDock only reads from Autotask; it never creates, changes, or deletes anything there. For a second lock on Autotask's side, you can copy the API User (system) security level, set its permissions to view only, and give the API user that level instead.

warning

Important

Autotask requires all three values (username, secret, and API Integration Code) on every API call. Without them, the connection will fail. If you do not see the API Tracking Identifier section, contact Autotask support to enable API access for your account.

Understanding Autotask zones

Autotask hosts its API across multiple numbered zones. Your account is assigned to one zone, and MSPDock needs it to reach the correct API endpoint. MSPDock looks it up from your API username when you connect, so you normally don't need to find it yourself.

How to find your zone

If you ever need to set the zone yourself, there are two ways to find it:

Method 1: Check your Autotask URL

When you are logged in to Autotask, look at the URL in your browser. It will be in the format:

https://wwX.autotask.net/...

The number after ww is your zone number. For example, ww5.autotask.net means you are on zone 5.

Method 2: Use the Autotask zone lookup API

Autotask provides a zone lookup endpoint. You can call it with your API username to determine your zone:

GET https://webservices.autotask.net/atservicesrest/v1.0/zoneInformation?user=your-api-username

The response includes a url field with the correct API base URL for your zone.

lightbulb

Tip

To enter the zone by hand, click Set it myself next to Zone on the Autotask settings page. Click Find it for me to go back to automatic lookup.

2

Configure in MSPDock

  1. aIn MSPDock, go to Settings → Integrations → Autotask / Datto
  2. bEnter the API username (Key) generated in Step 1. It looks like an email address.
  3. cEnter the API secret (Password) generated in Step 1
  4. dEnter the API Integration Code (Tracking Identifier)
  5. eLeave Zone as it is: MSPDock finds it from the username
3

Connect and import companies

  1. aClick Connect. MSPDock checks your credentials against the Autotask API and saves them if they work.
  2. bWhen it succeeds, the page shows your zone and how many companies MSPDock can see.
  3. cGo to Clients, click Import clients, and choose Autotask. Click Import on a company, Link it to an existing client with the same name, or click Import all unlinked.

Imported companies start with the company name, phone number, and website domain from Autotask. To bring over contacts and contracts too (services, rates, prepaid balances), use Migrate from Autotask, linked from the Autotask settings page. It shows a preview before anything is saved.

Troubleshooting

401 Unauthorized

Cause: Invalid API username, secret, or integration code.

Fix: Verify all three values on the API user in Autotask. The username is the generated key that looks like an email address, and the API Integration Code is the Tracking Identifier shown in the API user's API Tracking Identifier section.

403 Forbidden

Cause: The API user's security level does not grant access to the requested data (for example Companies, Contacts, or Contracts).

Fix: Edit the API user in Autotask and set its security level to API User (system), or to a copy of it that can view that data.

Wrong zone / Connection refused

Cause: The zone number does not match your Autotask instance.

Fix: Click Find it for me next to Zone and connect again, or check your Autotask URL (the number after "ww") and enter it with Set it myself.

API access not enabled

Cause: API access has not been activated for your Autotask account.

Fix: Contact Datto/Autotask support to request API access for your account.

If you continue to experience issues, contact us at support@mspdock.com with the error message and your Autotask zone number.