Overview
The Companies API provides endpoints for creating, reading, updating, and deleting company records in your CRM. Base Path:/api/companies
Endpoints
List Companies
Get a paginated list of companies.| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 20, max: 100) |
search | string | Search by name, industry, location |
industry | string | Filter by industry |
revenue_min | number | Minimum revenue |
revenue_max | number | Maximum revenue |
status | string | Filter by status (active, inactive, archived) |
sort_by | string | Sort field (name, revenue, created_at) |
sort_order | string | Sort order (asc, desc) |
Get Company
Get a single company by ID.Create Company
Create a new company.Update Company
Update an existing company.Delete Company
Delete a company (soft delete).Search Companies
Advanced search with filters.Data Model
Company Object
| Field | Type | Description |
|---|---|---|
id | UUID | Unique identifier |
name | string | Company name (required) |
industry | string | Industry category |
revenue | number | Annual revenue in USD |
ebitda | number | EBITDA in USD |
employees | integer | Number of employees |
founded_year | integer | Year company was founded |
location | string | Primary location |
website | string | Company website URL |
description | text | Company description |
status | enum | active, inactive, archived |
contacts_count | integer | Number of associated contacts |
deals_count | integer | Number of associated deals |
files_count | integer | Number of associated files |
created_at | timestamp | Creation timestamp |
updated_at | timestamp | Last update timestamp |
firm_id | UUID | Associated firm |
Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No Content (deleted) |
| 400 | Bad Request (validation error) |
| 401 | Unauthorized |
| 404 | Company not found |
| 422 | Unprocessable Entity |
| 500 | Internal Server Error |
