agentlyleads docs
Companies API

GET /api/v1/companies

Returns the workspace's companies, sorted by createdAt descending (newest first). Requires the read:companies scope (or * for full access).

Request

GET /api/v1/companies HTTP/1.1
Host: agentlyleads.com
Authorization: Bearer alk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Query parameters

ParameterDescription
domainReturn only the company with this exact domain
externalIdReturn only the company with this external ID
updatedSinceISO 8601 datetime — only companies updated at or after this moment (useful for incremental sync)
limitPage size, 1–1000 (default 100)
cursorThe nextCursor value from the previous page

All parameters are optional and can be combined. Filters that match nothing return an empty list, not a 404.

Look up a company by domain:

GET /api/v1/companies?domain=acme.com HTTP/1.1
Authorization: Bearer alk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Response — 200

{
  "companies": [
    {
      "id": "cmq2comp0alk34567890",
      "name": "Acme Corp",
      "domain": "acme.com",
      "industry": "Manufacturing",
      "size": "51-200",
      "website": "https://acme.com",
      "notes": null,
      "externalId": "hs_company_42",
      "customFields": null,
      "createdAt": "2026-06-01T12:00:00.000Z",
      "updatedAt": "2026-07-20T14:03:00.000Z"
    }
  ],
  "nextCursor": null
}

Pagination

Responses are cursor-paginated. When more rows exist beyond the requested limit, nextCursor holds the ID of the last returned record — pass it back as cursor to fetch the next page. On the last page, nextCursor is null.

On this page