Search companies
Searches company records in the shared records index. Requires companies:read. The server always applies an immutable type contains_exact company filter before caller filters and excludes permanently deleted records; archived and deleted (status delete) records are included unless you filter on status.
All request fields are optional. Blank or omitted query defaults to *; omitted limit defaults to 10 and is clamped to 1-200; negative offset clamps to 0; omitted sort defaults to created_at desc; omitted objects defaults to false. Caller filters are additional constraints and cannot replace the server-owned type scope.
OAuth tokens of non-manager users only see records they can open in the app. count is exact once the records index has been rebuilt after impl-spec-1661; until then it may overstate matches.
Filtering
filters is an array of filter groups. Groups are ANDed with each other and with the server's own scope (this record type; permanently deleted records excluded). Inside a group, op combines the clauses: and, or, or not (true when not all clauses match, i.e. NOT of their AND).
Clause op | Value | Use for |
|---|---|---|
eq / not_eq | string, integer | exact, case-sensitive whole value; references, enums, select options |
contains | string | whole-word, case-insensitive text match; several words match any of them |
contains_exact | string token | one element of an array field (types, multiple select, one_to_many, contacts, lists, categories, sources) |
gt / gte / lt / lte | RFC 3339 timestamp, YYYY-MM-DD day, integer | ranges on dates, days and counts |
between | [low, high] (low ≤ high) | inclusive range on the same values |
exists / not_exists | omit value | the attribute is present / absent |
Rules:
fieldis an attribute name exactly as the record'sattributesreturns it; custom fields use their slug. Do not prefix withmeta..- Timestamps need a full RFC 3339 value (
2026-01-01T00:00:00Z); a bare date on a timestamp field matches nothing. - Records with
statusarchivedordeleteare included unless you filter onstatus. - Empty custom fields may be stored as an empty string, which
existsmatches. To require a value, putexistsandnot_eq ""in oneandgroup. - Clauses on
type, unknown group ops and unknown clause ops are ignored, not rejected. A request whose groups are all ignored searches without filters. - A field no record has matches nothing;
not_existson it matches everything. sortaccepts at most one entry; more than one is rejected. Sort on any attribute name,ascordesc.query: plain words match any word; a word ending in*is a required prefix. Use*(or omit it) to match all records and rely on filters.near(people, companies, jobs):{"place": "Amsterdam", "radius_km": 40}or{"lat": 52.37, "lng": 4.9, "radius_km": 40}, 1 to 500 km. Results come nearest first unlesssortis given, each withdistance_km. A place is resolved from this workspace's own addresses; 422PLACE_NOT_FOUNDasks for coordinates, and 503PLACE_LOOKUP_FAILEDmeans the lookup itself failed (retry). Only the primary location counts, and an address without coordinates is placed at its city's centre.document_query(people, companies, jobs): a keyword that must be in the record's document text (a person's parsed CV, the primary document of a company or job). At most 200 matching records are considered (document_matches_truncated).
Fields
| Field | Kind | Recommended ops | Value |
|---|---|---|---|
name | text | contains, eq, not_eq, exists, not_exists | string |
status | enum | eq, not_eq | normal, archived, delete |
created_at, updated_at, assigned_at, status_changed_at | timestamp | gte, gt, lt, lte, between, exists, not_exists | RFC 3339 |
assigned_to, assigned_by, created_by | user reference | eq, not_eq, exists, not_exists | user SqID |
image_id, primary_document_id | image / file reference | eq, exists, not_exists | SqID |
image_url | text | exists, not_exists | string |
types | type tokens (array) | contains_exact, exists, not_exists | company_type:<sqid> |
access_level_id | access level reference | eq, not_eq, exists, not_exists | SqID |
linkedin_url, github_url, twitter_url, facebook_url, instagram_url | text (URL, from bookmarks) | contains, eq, not_eq, exists, not_exists | string; exists / not_exists test whether the record has one |
email_address, phone_number, address | text | contains, eq, not_eq, exists, not_exists | string |
active_job_count | integer | gte, eq, not_eq, gt, lt, lte, between | integer |
workflow_id | workflow reference | eq, not_eq, exists, not_exists | workflow SqID |
workflow_phase_status, workflow_stage_status | enum | eq, not_eq, exists, not_exists | phase / stage name, exact case (see GET /v4/workflows/phases and GET /v4/workflows/stages) |
workflow_phase_status_changed_at | timestamp | gte, gt, lt, lte, between, exists, not_exists | RFC 3339 |
alias | alias strings (array) | contains_exact, exists, not_exists | one alias, exact whole value; query also matches aliases |
city, state, country_code | text (primary location) | contains, eq, not_eq, exists, not_exists | string; eq is the exact whole value (country_code is upper case, e.g. NL; state is the location's region), contains matches a word |
lists | list tokens (array) | contains_exact, exists, not_exists | list:<sqid> (see GET /v4/lists) |
sources | source tokens (array) | contains_exact, exists, not_exists | source:<sqid> (see GET /v4/sources) |
categories | category tokens (array) | contains_exact, exists, not_exists | category:<sqid> (see GET /v4/categories) |
Custom fields
Custom fields are filtered by slug. The field's type decides the value:
| Custom field type | Recommended ops | Value |
|---|---|---|
| text, string, markdown/html text (indexed as plain text) | contains, eq, not_eq, exists, not_exists | string |
| number (stored as text) | eq, not_eq, exists, not_exists | string, e.g. "42"; no ranges |
| date | gte, gt, lt, lte, between, exists, not_exists | RFC 3339 |
| boolean | eq | "1" for true; for "not true" use a not group with eq "1" |
| single select | eq, not_eq, exists, not_exists | custom_field_option:<sqid> |
| multiple select | contains_exact, exists, not_exists | custom_field_option:<sqid> |
| relationship, one_to_one | eq, not_eq, exists, not_exists | <type>:<sqid>, e.g. person:Xy3 |
| relationship, one_to_many | contains_exact, exists, not_exists | <type>:<sqid> |
Option ids: send "objects": true once to get data.objects with custom_field_option:<sqid> labels.
Body
querystringSearch query. Blank or omitted values default to *.
*limitinteger<int32>Maximum results. Defaults to 10 and is clamped to 1-200.
10offsetinteger<int32>Zero-based offset. Defaults to 0 and negative values clamp to 0.
0Additional filter groups ANDed with the immutable server-owned type scope.
At most one entry; more than one is rejected. Empty or omitted defaults to created_at desc, or nearest first with near.
objectsbooleanInclude hydrated object summaries in top-level data.objects when true. Defaults to false. File summaries (file:<sqid>) carry a url: a download URL that works without authentication until it expires, between 12 and 13 hours after the response. Request the record again for a fresh one.
falsenearRecordSearchNeardocument_ querystringPeople, companies and jobs: a keyword that must appear in the record's document text (a person's parsed CV; the primary document of other records). At most 200 matching records are considered; data.document_matches_truncated says when there were more. Document text needs files:read, and through the MCP server the workspace's document text setting (403 DOCUMENT_TEXT_DISABLED).
AutoCADResponse
Record search results
Invalid request body
Invalid API key
Insufficient scope
Validation error
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: companies:read
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: companies:read
apikey_ authapiKey in queryAPI key in query string
Scopes: companies:read
