Every API here is available over the APIs.io API and to AI agents over MCP.
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Datto|Autotask PSA Rest API"
},
"host": "webservices2.autotask.net",
"basePath": "/ATServicesRest",
"schemes": [
"https"
],
"paths": {
"/V1.0/Companies/{id}/invoiceSettings": {
"get": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_Get",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AccountInvoiceSettingsResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"put": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_Put",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "model",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateAccountInvoiceSettingsModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/Companies/{id}/invoiceSettings/contactRecipients": {
"post": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_AddContactRecipients",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "model",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateContactRecipientsModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AddContactRecipientsResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/Companies/{id}/invoiceSettings/contactRecipients/{contactId}": {
"delete": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_DeleteContactRecipient",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "contactId",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/Companies/{id}/invoiceSettings/resourceRecipients": {
"post": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_AddResourceRecipients",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "model",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateResourceRecipientsModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AddResourceRecipientsResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/Companies/{id}/invoiceSettings/resourceRecipients/{resourceId}": {
"delete": {
"tags": [
"AccountInvoiceSettings"
],
"operationId": "AccountInvoiceSettings_DeleteResourceRecipient",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "resourceId",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/query": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_UrlParameterQuery",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "search",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/QueryActionResult[ActionTypeModel,ActionType]"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"post": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_Query",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "queryModel",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/QueryModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/QueryActionResult[ActionTypeModel,ActionType]"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/{id}": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_QueryItem",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ItemQueryResultModel[ActionTypeModel,ActionType]"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"delete": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_DeleteEntity",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/query/count": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_UrlParameterQueryCount",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "search",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/QueryCountResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"post": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_QueryCount",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "queryModel",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/QueryModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/QueryCountResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes": {
"put": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_UpdateEntity",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "restModelInput",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ActionTypeModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"post": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_CreateEntity",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "restModelInput",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ActionTypeModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"patch": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_PatchEntity",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "restModelInput",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ActionTypeModel"
}
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/entityInformation": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_QueryEntityInformation",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/EntityInformationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/entityInformation/fields": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_QueryFieldDefinitions",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/FieldInformationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/ActionTypes/entityInformation/userDefinedFields": {
"get": {
"tags": [
"ActionTypes"
],
"operationId": "ActionTypes_QueryUserDefinedFieldDefinitions",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/UserDefinedFieldInformationResultModel"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/V1.0/AdditionalInvoiceFieldValues/query": {
"get": {
"tags": [
"AdditionalInvoiceFieldValues"
],
"operationId": "AdditionalInvoiceFieldValues_UrlParameterQuery",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "search",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "ApiIntegrationCode",
"in": "header",
"description": "API Integration Code",
"required": true,
"type": "string"
},
{
"name": "UserName",
"in": "header",
"description": "User Name",
"required": true,
"type": "string"
},
{
"name": "Secret",
"in": "header",
"description": "Secret",
"required": true,
"type": "string"
},
{
"name": "ImpersonationResourceId",
"in": "header",
"description": "Impersonation Resource Key",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/QueryActionResult[AdditionalInvoiceFieldValueModel,AdditionalInvoiceFieldValue]"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
},
"post": {
"tags": [
"AdditionalInvoiceFieldValues"
],
"operationId": "AdditionalInvoiceFieldValues_Query",
"consumes": [
"application/json"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
# --- truncated at 32 KB (5719 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/kaseya/refs/heads/main/openapi/kaseya-autotask-psa-openapi-original.json