Skip to navigation

Get account companies

View as Markdown

Returns a list of companies in a hub.

You can also use this endpoint to filter out the list of companies by setting the filter parameters.

Note: This operation is forward compatible. Autodesk may add attributes to the response without prior notice, so your app should ignore any attribute it does not recognize.

Authentication

AuthorizationBearer

OAuth 2.0 (2-legged) — application context required.

Client Credentials Flow

Token URL: https://developer.api.autodesk.com/authentication/v2/token

Scopes:

  • account:read — read account and project data
  • account:write — modify account and project data
  • data:read — read data the application can access
OR
AuthorizationBearer

OAuth 2.0 (2-legged with impersonation) — application context with user impersonation required. Send a User-Id header identifying the member to act on behalf of; the token authorizes the application, while the operation is evaluated against that member’s project permissions.

Client Credentials Flow

Token URL: https://developer.api.autodesk.com/authentication/v2/token

Scopes:

  • account:read — read account and project data
  • account:write — modify account and project data
OR
AuthorizationBearer

OAuth 2.0 (3-legged) — user context required. Also accepts a Secure Service Account (SSA) token, which is headless like a two-legged flow but classified as three-legged because it preserves user context.

Authorization Code Flow

Authorization URL: https://developer.api.autodesk.com/authentication/v2/authorize

Token URL: https://developer.api.autodesk.com/authentication/v2/token

Refresh URL: https://developer.api.autodesk.com/authentication/v2/token

Scopes:

  • data:read — read your data
  • account:read — read account and project data
  • account:write — modify account and project data

Path parameters

accountIdstringRequiredformat: "uuid"

The ID of the hub that contains the projects. This corresponds to the hub ID used in the Data Management API, with the “b.” prefix removed. For example, b.c8b0c73d-3ae9 becomes c8b0c73d-3ae9.

Headers

Accept-LanguagestringOptionalDefaults to en
This header is not currently supported in the hub Admin API.
RegionstringOptional

Specifies the region where your request should be routed. If not set, the request is routed automatically, which may result in a slight increase in latency.

Possible values: US, EMEA. For a complete list of supported regions, see the Regions page.

User-IdstringOptionalformat: "uuidOrAutodeskId"

The ID of a user on whose behalf your request is acting.

Your app has access to all users specified by the administrator in the SaaS integrations UI. Provide this header value to identify the user to be affected by the request.

You can use either the user’s Forma ID (id), or their Autodesk ID (autodeskId).

Note that this header is required for hub Admin POST, PATCH, and DELETE endpoints if you want to use a 2-legged authentication context. This header is optional for hub Admin GET endpoints.

Query parameters

filter[name]stringOptional<=255 characters

Filter companies by name. Can be a partial match based on the value of filterTextMatch provided.

filter[trade]stringOptional<=255 characters

Filter companies by trade. Can be a partial match based on the value of filterTextMatch provided.

filter[erpId]stringOptional<=255 characters

Filter companies by ERP Id. Can be a partial match based on the value of filterTextMatch provided.

filter[taxId]stringOptional<=255 characters

Filter companies by tax Id. Can be a partial match based on the value of filterTextMatch provided.

filter[updatedAt]stringOptionalformat: "dateRange"<=100 characters

Filter companies by updated at date range. The range must be specified with dates in an ISO-8601 format with time required. The start and end dates of the range should be separated by .. One of the dates in the range may be omitted. For example, to get everything on or before June 1, 2019 the range would be ..2019-06-01T23:59:59.999Z. To get everything after June 1, 2019 the range would be 2019-06-01T00:00:00.000Z...

filter[status]enumOptional

Filters companies by status. Possible values: active, inactive, all. Defaults to active.

Allowed values:
orFilterslist of enumsOptional

List of filtered fields to apply an “or” operator. Valid list of fields are erpId, name, taxId, trade, updatedAt.

Allowed values:
filterTextMatchenumOptionalDefaults to contains

Specifies how text-based filters should match values in supported fields.

This parameter can be used in any endpoint that supports text-based filtering (e.g., filter[name], filter[jobNumber], filter[companyName], etc.).

Possible values:

contains (default) – Matches if the field contains the specified text anywhere

startsWith – Matches if the field starts with the specified text

endsWith – Matches if the field ends with the specified text

equals – Matches only if the field exactly matches the specified text

Matching is case-insensitive.

Wildcards and regular expressions are not supported.

Allowed values:
sortlist of enumsOptionalDefaults to name

The list of fields to sort by. When multiple fields are listed the later property is used to sort the resources where the previous fields have the same value. Each property can be followed by a direction modifier of either asc (ascending) or desc (descending). If no direction is specified then asc is assumed. Valid fields for sorting are name, trade, erpId, taxId, status, createdAt, updatedAt, projectSize and userSize. Default sort is name.

fieldslist of enumsOptional

List of fields to return in the response. Defaults to all fields. Valid list of fields are accountId, name, trade, addresses, websiteUrl, description, erpId, taxId, imageUrl, status, createdAt, updatedAt, projectSize, userSize and originalName.

limitintegerOptional>=1Defaults to 20

The maximum number of records to return in the response.

Default: 20

Minimum: 1

Maximum: 200 (If a larger value is provided, only 200 records are returned)

offsetintegerOptional>=0Defaults to 0

The index of the first record to return.

Used for pagination in combination with the limit parameter.

Example: limit=20 and offset=40 returns records 41–60.

Response headers

RateLimit-Remaininginteger

The number of requests remaining in the current rate-limit window.

RateLimit-Valueinteger
The maximum number of requests that the server is willing to accept during the current full minute
Request-IdstringOptional
Unique request ID to facilitate reporting and research.
Response-TimestringOptional
Time taken to generate response.

Response

The list of requested companies.
paginationobjectOptional
Contains pagination details for the records returned by the endpoint.
resultslist of objectsOptional
The requested page of companies.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
406
Not Acceptable Error
410
Gone Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error