Complyance Logo

List onboarded companies

Retrieve the companies available to the workspace resolved from the caller's API key. Use this endpoint to obtain the company identifier required by the branch and document-count APIs.

Endpoint

GET https://prod.gets.complyance.io/v3/connect/companies

This is a read-only endpoint. Results are scoped to the authenticated workspace and returned with pagination metadata.

Headers

HeaderRequiredDescription
X-API-KeyYesAuthenticates the caller and resolves its workspace and permissions.
AcceptNoUse application/json.

Do not send workspaceId. The API key resolves the workspace.

Query parameters

ParameterTypeRequiredValidation and meaning
pageintegerNoPage number starting at 1. Defaults to 1.
limitintegerNoCompanies per page from 1 to 100. Defaults to 10.
countryCodestringNoFilter by country code, such as AE.
sourceVersionstringNoFilter by source version.
statusstringNoactive or inactive.
searchstringNoCase-insensitive search across company and source identity fields.

Request example

curl --get 'https://prod.gets.complyance.io/v3/connect/companies' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --header 'Accept: application/json' \
  --data-urlencode 'countryCode=AE' \
  --data-urlencode 'page=1' \
  --data-urlencode 'limit=100'

Success response

Status: 200 OK

{
  "success": true,
  "data": [
    {
      "companyId": "66b9f0a1c2d3e4f567890123",
      "sourceName": "accounting-platform",
      "sourceVersion": "2.1",
      "legalName": "Example UAE Entity",
      "legalIdentifier": null,
      "countryCode": "AE",
      "status": "active",
      "onboardingStatus": "onboarded",
      "peppolId": "0235:1234567890",
      "sourceId": "01JABCDEF1234567890SOURCE",
      "branchId": "66b9f0a1c2d3e4f567890456",
      "branchName": "Main",
      "tin": "1234567890",
      "vatTrn": "123456789000003",
      "mappingReadiness": {
        "status": "READY",
        "templateId": "default-gets-66b9e000c2d3e4f567890000"
      },
      "readyForInvoicing": true,
      "createdAt": "2026-08-01T12:00:00.000Z",
      "updatedAt": "2026-08-01T12:00:00.000Z"
    }
  ],
  "meta": {
    "requestId": "01JABCDEF1234567890REQUEST",
    "timestamp": "2026-08-01T12:00:00.000Z",
    "workspaceId": "66b9e000c2d3e4f567890000",
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 1,
      "totalPages": 1,
      "hasMore": false
    },
    "filters": {
      "countryCode": "AE"
    }
  }
}

Each item in data represents one branch and its source configuration. A company with multiple branches therefore appears in multiple items with the same companyId and different branch-level fields.

Response fields

FieldTypeDescription
companyIdstringOpaque company identifier. Repeated for each branch belonging to the company.
sourceNamestringName of the source configured for the branch.
sourceVersionstringVersion of the branch source.
legalNamestringRegistered company name.
legalIdentifierstring or nullLegal identifier when available.
countryCodestringCompany country code.
statusstringCompany status, such as active or inactive.
onboardingStatusstringCompany onboarding status.
peppolIdstring or nullPeppol participant ID associated with the company, when available.
sourceIdstringIdentifier of the source configured for this branch.
branchIdstringInternal branch identifier.
branchNamestringBranch display name.
tinstring or nullCompany tax identification number, when available.
vatTrnstring or nullCompany VAT tax registration number, when available.
mappingReadinessobjectMapping state for this branch. A ready mapping includes templateId; an incomplete mapping includes an action-required code.
readyForInvoicingbooleanWhether this branch is ready to submit invoices.
createdAtstringCompany creation time in ISO 8601 format.
updatedAtstringCompany update time in ISO 8601 format.

Use companyId

The same opaque company identifier is returned as companyId by company onboarding, branch creation, and document-count endpoints.

For the example response:

data[0].companyId = 66b9f0a1c2d3e4f567890123

Use this value in endpoints such as:

POST /v3/connect/companies/66b9f0a1c2d3e4f567890123/branches/bulk
GET /v3/connect/invoices/counts?countryCode=AE&companyId=66b9f0a1c2d3e4f567890123

Treat the identifier as an opaque string. Do not derive it from the TIN, source ID, branch ID, Peppol participant ID, or workspace ID.

Pagination

Pagination is applied to companies before their branches are expanded into data. Use meta.pagination.total to determine the number of matching companies, hasMore to determine whether another page exists, and increment page until all pages have been retrieved. Because every branch becomes a separate item, data.length can be greater than meta.pagination.limit. The maximum supported limit is 100.

An empty result is successful:

{
  "success": true,
  "data": [],
  "meta": {
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 0,
      "totalPages": 0,
      "hasMore": false
    }
  }
}

Errors

Errors use the standard Connect API v3 error envelope.

HTTP statusCondition
400A query parameter is malformed or outside its allowed range.
401The API key is missing or invalid.
403The caller cannot access Connect APIs for the resolved workspace.
429The workspace exceeded its request limit. Honor Retry-After.
500 / 503A required service is unavailable. Retain meta.requestId for support.

Next step: Use a returned data[].companyId when adding branches or retrieving document counts.