Skip to main content
QUERY
companies(page: Int, perPage: Int, tag: String, ids: [String], excludeIds: Boolean, searchValue: String, autoCompletion: Boolean, autoCompletionType: String, sortField: String, sortDirection: SortDirection, dateFilters: String, conformityMainType: String, conformityMainTypeId: String, conformityRelType: String, conformityIsRelated: Boolean, conformityIsSaved: Boolean): CompaniesListResponse

Arguments

page
Int

1-based page index. Default: 1. See Pagination.

perPage
Int

Page size. Default: 20. See Pagination.

tag
String

Filter by Tag id — only companies carrying that tag.

ids
[String]

Restrict results to these specific company ids.

excludeIds
Boolean

When true, invert ids to exclude those companies instead of including them.

searchValue
String

Case-insensitive partial match across name/email/phone fields.

autoCompletion
Boolean

When true, run a lighter-weight query suited for search-as-you-type UIs.

autoCompletionType
String

Field to autocomplete against when autoCompletion is true.

sortField
String

Field name to sort by.

sortDirection

Sort direction paired with sortField.

dateFilters
String

Additional date-range filters as a JSON-encoded string.

conformityMainType
String

Content type owning the relation (e.g. "customer"). Used with conformityMainTypeId to scope results to companies related to a Customer or other entity.

conformityMainTypeId
String

Id of the related record identified by conformityMainType.

conformityRelType
String

Content type on this side of the relation (defaults to "company").

conformityIsRelated
Boolean

When true, only return companies related to the given main type/id.

conformityIsSaved
Boolean

When true, only return companies already saved against the relation.

data

Company rows for the current page.

pagination

Standard pagination metadata: totalCount, currentPage, totalPages, hasNextPage, hasPreviousPage, perPage.

Query
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦