Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Company Group Relation Api → Get Api Crm Companies Company Groups

AI-generated

Summary

Retrieve a paginated list of company groups associated with a specified company in the Contractors.es system, optionally including trashed (deleted) records.

Inputs

  • Company (required) — The unique numeric ID of the company for which to retrieve associated company groups.
  • With Trashed — Boolean flag to include trashed (soft-deleted) company groups in the results.
  • Only Trashed — Boolean flag to retrieve only trashed (soft-deleted) company groups.
  • Page — Page number of the paginated results to fetch, defaults to 1.
  • Limit — Maximum number of items to return per page, defaults to 20, controls pagination size.

Output shape

a list of company group objects associated with the specified company, paginated according to the Page and Limit inputs

Results may include trashed items based on the With Trashed and Only Trashed flags; pagination is handled via Page and Limit query parameters. The output reflects the API's JSON response for company groups linked to the given company.

Examples

Example 1: Fetch first page of company groups for company ID 123 with default limit

Company=123, With Trashed=false, Only Trashed=false, Page=1, Limit=20

Example 2: Fetch only trashed company groups for company ID 456

Company=456, Only Trashed=true

Links

Discussion