Companies represent organizations in your CRM — typically the employers, customers, or accounts that your contacts belong to. Each company is owned by a specific agent (bot_id) and inherits the workspace from your API key.
The Company object
Unique company identifier.
The agent that owns this company.
Primary domain (e.g. acme.com).
Free-form size band (e.g. "50-200").
Array of { email, is_primary } objects.
Array of { phone_number, is_primary } objects.
Sum of deal_value across all contacts linked to this company.
ISO 8601 timestamp of the most recent activity on a related contact.
List companies
Paginated list of companies in the workspace.
Query parameters
| Param | Type | Description |
|---|
search | string | Match against name, domain, or industry |
tags | string | Comma-separated list of tags |
industry | string | Exact-match industry filter |
domain | string | Exact-match domain filter |
bot_id | string | Restrict to companies owned by a specific agent |
page | integer | See Pagination |
page_size | integer | See Pagination |
Example
curl "https://clarky.ai/api/v1/companies?search=acme" \
-H "Authorization: Bearer ck_live_example"
{
"data": [
{
"id": "co_01HABC...",
"workspace_id": "w_01HXXX...",
"bot_id": "b_01HDEF...",
"name": "Acme Corp",
"domain": "acme.com",
"website": "https://acme.com",
"industry": "Manufacturing",
"company_size": "200-500",
"employee_count": 320,
"annual_revenue": 18000000,
"emails": [{ "email": "hello@acme.com", "is_primary": true }],
"phone_numbers": [],
"tags": ["enterprise"],
"total_deal_value": 125000,
"pipeline_stage_id": null,
"city": "Austin",
"country": "US",
"custom_fields": {},
"last_activity_at": "2026-04-28T13:14:00.000Z",
"created_at": "2026-03-01T10:00:00.000Z",
"updated_at": "2026-04-28T13:14:00.000Z"
}
],
"pagination": { "page": 1, "page_size": 25, "total": 1, "total_pages": 1 }
}
Get a company
GET /api/v1/companies/{id}
Example
curl https://clarky.ai/api/v1/companies/co_01HABC \
-H "Authorization: Bearer ck_live_example"
{
"data": {
"id": "co_01HABC...",
"name": "Acme Corp",
"domain": "acme.com",
"industry": "Manufacturing",
"tags": ["enterprise"],
"total_deal_value": 125000,
"created_at": "2026-03-01T10:00:00.000Z",
"updated_at": "2026-04-28T13:14:00.000Z"
}
}
Create a company
Requires a key with the write scope.
Body fields
| Field | Type | Required | Description |
|---|
bot_id | string | Yes | Owning agent |
name | string | Yes | Company name |
domain | string | No | |
website | string | No | |
industry | string | No | |
company_size | string | No | |
company_type | string | No | |
employee_count | number | No | |
annual_revenue | number | No | |
description | string | No | |
emails | array | No | Array of { email, is_primary } |
phone_numbers | array | No | Array of { phone_number, is_primary } |
tags | string[] | No | |
pipeline_stage_id | string | No | |
address_line1 | string | No | |
address_line2 | string | No | |
city | string | No | |
state | string | No | |
postal_code | string | No | |
country | string | No | |
linkedin_url | string | No | |
notes | string | No | |
custom_fields | object | No | |
Example
curl https://clarky.ai/api/v1/companies \
-H "Authorization: Bearer ck_live_example" \
-H "Content-Type: application/json" \
-d '{
"bot_id": "b_01HDEF",
"name": "Acme Corp",
"domain": "acme.com",
"industry": "Manufacturing",
"tags": ["enterprise"]
}'
{
"data": {
"id": "co_01HABC...",
"name": "Acme Corp",
"domain": "acme.com",
"industry": "Manufacturing",
"tags": ["enterprise"],
"created_at": "2026-04-29T18:55:00.000Z",
"updated_at": "2026-04-29T18:55:00.000Z"
}
}
Update a company
PATCH /api/v1/companies/{id}
Same fields as Create a company. bot_id cannot be changed.
Example
curl -X PATCH https://clarky.ai/api/v1/companies/co_01HABC \
-H "Authorization: Bearer ck_live_example" \
-H "Content-Type: application/json" \
-d '{ "annual_revenue": 24000000, "tags": ["enterprise", "expansion"] }'
{
"data": {
"id": "co_01HABC...",
"annual_revenue": 24000000,
"tags": ["enterprise", "expansion"],
"updated_at": "2026-04-29T19:01:00.000Z"
}
}
Delete a company
DELETE /api/v1/companies/{id}
Returns 204 No Content with an empty body on success.
Example
curl -X DELETE https://clarky.ai/api/v1/companies/co_01HABC \
-H "Authorization: Bearer ck_live_example"
Deletion is permanent. Contacts that referenced this company will have their company_id cleared but will not themselves be deleted.