List Companies
Companies
List Companies
Retrieve a paginated list of companies with optional date filtering
GET
List Companies
Overview
This endpoint allows you to retrieve a list of companies from Cometly. Results are cursor-paginated for efficient data retrieval and ordered by creation date (newest first).Query Parameters
Optional Parameters
Number of companies to return per page. Minimum: 1, Maximum: 5000
Pagination cursor from a previous response. Use this to fetch the next page of results.
Filter companies created on or after this date. Format:
YYYY-MM-DD HH:MM:SS. The timestamp is interpreted in your space’s timezone.
Example: 2024-01-01 00:00:00Filter companies created on or before this date. Format:
YYYY-MM-DD HH:MM:SS. Must be after start_date. The timestamp is interpreted in your space’s timezone.
Example: 2024-01-31 23:59:59Response
Success Response
The response follows Laravel’s cursor pagination structure:Array of company objects. Each company includes:
id(integer): The unique identifier of the companydomain(string): The domain associated with this company
The base URL path for the endpoint
Number of items per page
Cursor for the next page of results.
null if there are no more pages.Full URL for the next page of results.
null if there are no more pages.Cursor for the previous page of results.
null if on the first page.Full URL for the previous page of results.
null if on the first page.Error Response
Error description explaining what went wrong
Example Requests
Status Codes
| Status Code | Description |
|---|---|
| 200 | Companies successfully retrieved |
| 401 | Missing or invalid API key |
| 403 | API key doesn’t have permission or subscription is inactive |
| 422 | Invalid parameters provided (check error message for details) |
| 429 | Too many requests - rate limit exceeded. See Rate Limiting |
Notes
- Rate Limit: This endpoint has a limit of 15 requests per minute per Space. See Rate Limiting for details.
- Results are ordered by creation date in descending order (newest first)
- Cursor pagination is used for efficient traversal of large result sets
- Date filtering is optional. When omitted, all companies are returned.
- Dates are provided in your space’s configured timezone and converted to UTC for querying
- Only company
idanddomainfields are returned in the response