Complex Usage Example
Advanced Company Filtering with Full Context
This example demonstrates advanced filtering with multiple parameters, relationship inclusion, business entity filtering, sorting, and pagination for retrieving companies:- Include relationships: Retrieve complete data for people, workspaces, contact information, and documents
- Filter by workspace: Limit to companies in a specific workspace
- Search by name: Find companies with “TechCorp” in their name
- Filter by business entity: Only show German GmbH companies
- Registration filtering: Filter by tax ID and registration numbers
- Geographic filtering: Limit to companies in Germany
- Contact filtering: Find companies with specific email or phone
- Media filtering: Only show companies with logos
- Date range filtering: Limit to companies created/updated in specific periods
- Sorting: Order by creation date (newest first)
- Pagination: Get 25 results per page with cursor-based pagination
Headers
Bearer token for authentication
Query Parameters
Include detailed relationship data in the response. Comma-separated values supported.
workspace
, company
, people
, documents
, created_by
, medias
, web_links
, emails
, phones
, categories
, locations
, people
, parents
, subsidiaries
Filter companies created on or after this date
Filter companies created on or before this date
Filter companies updated on or after this date
Filter companies updated on or before this date
Filter companies by creator ID(s)
Filter companies by workspace ID(s)
Filter companies by external workspace ID(s)
Filter companies by email address(es)
Filter companies by phone number(s)
Filter companies by parent registration number(s)
Filter companies by associated document ID(s)
Filter companies by parent company ID(s)
Filter companies by parent company tax ID value(s)
Filter companies by parent company registration value(s)
Filter companies by primary domain URL(s)
Sort companies by field. Use - prefix for descending order.
created_at
, -created_at
, updated_at
, -updated_at
, issue_date
, -issue_date
, due_date
, -due_date