> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Companies

Get a list of companies with optional filtering.

<Note>
  External Documentation

  To learn more, visit the [Datto Autotask documentation](https://webservices3.autotask.net/atservicesrest/swagger/ui/index#/Companies/Companies_UrlParameterQuery).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Impersonation Resource ID | The Autotask resource ID to impersonate when performing API requests. Use this when you need to act on behalf of a specific Autotask user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Return All Pages          | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Search                    | The search query to filter and paginate the results by. <br /><br />For more information please refer to [Autotask documentation](https://autotask.net/help/developerhelp/Content/APIs/REST/API_Calls/REST_Basic_Query_Calls.htm?Highlight=FilterExpression).<br /><br />**For example:**<br />`<br/>&#123;<br/>  "MaxRecords":10,<br/>  "filter":<br/>    [<br/>      &#123;<br/>        "op":"noteq",<br/>        "field":"Status",<br/>        "value":5<br/>      &#125;,<br/>      &#123;<br/>        "op":"eq",<br/>        "field":"CompanyID",<br/>        "value":175<br/>      &#125;<br/>    ]<br/>&#125;` |
</div>

## Example Output

```json theme={"dark"}
{
	"items": [
		{
			"id": 0,
			"additionalAddressInformation": "string",
			"address1": "string",
			"address2": "string",
			"alternatePhone1": "string",
			"alternatePhone2": "string",
			"apiVendorID": 0,
			"assetValue": 0,
			"billToCompanyLocationID": 0,
			"billToAdditionalAddressInformation": "string",
			"billingAddress1": "string",
			"billingAddress2": "string",
			"billToAddressToUse": 0,
			"billToAttention": "string",
			"billToCity": "string",
			"billToCountryID": 0,
			"billToState": "string",
			"billToZipCode": "string",
			"city": "string",
			"classification": 0,
			"companyCategoryID": 0,
			"companyName": "string",
			"companyNumber": "string",
			"companyType": 0,
			"competitorID": 0,
			"countryID": 0,
			"createDate": "2025-11-30T09:59:23.187Z",
			"createdByResourceID": 0,
			"currencyID": 0,
			"fax": "string",
			"impersonatorCreatorResourceID": 0,
			"invoiceEmailMessageID": 0,
			"invoiceMethod": 0,
			"invoiceNonContractItemsToParentCompany": true,
			"invoiceTemplateID": 0,
			"isActive": true,
			"isClientPortalActive": true,
			"isEnabledForComanaged": true,
			"isSample": true,
			"isTaskFireActive": true,
			"isTaxExempt": true,
			"lastActivityDate": "2025-11-30T09:59:23.187Z",
			"lastTrackedModifiedDateTime": "2025-11-30T09:59:23.187Z",
			"marketSegmentID": 0,
			"ownerResourceID": 0,
			"parentCompanyID": 0,
			"phone": "string",
			"postalCode": "string",
			"purchaseOrderTemplateID": 0,
			"quoteEmailMessageID": 0,
			"quoteTemplateID": 0,
			"sicCode": "string",
			"state": "string",
			"stockMarket": "string",
			"stockSymbol": "string",
			"surveyCompanyRating": 0,
			"taxID": "string",
			"taxRegionID": 0,
			"territoryID": 0,
			"webAddress": "string",
			"userDefinedFields": [
				{
					"name": "string",
					"value": "string"
				}
			]
		}
	],
	"pageDetails": {
		"count": 0,
		"requestCount": 0,
		"prevPageUrl": "string",
		"nextPageUrl": "string"
	}
}
```

## Workflow Library Example

[List Companies with Datto Autotask and Send Results Via Email](https://library.blinkops.com/workflows/list-companies-with-datto-autotask-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-companies-with-datto-autotask-and-send-results-via-email/canvas" />
</div>
