> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowla.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Companies

> List and create companies in your organization. Use a returned ID as companyId when creating or updating a room.

## Endpoints

| Method | Path | Description |
| - | - | - |
| `GET` | `/api/v2/companies` | List companies |
| `POST` | `/api/v2/companies` | Create a company |

***

## List companies

`GET /api/v2/companies`

### Query parameters

**keyword** `string`

Search by company name or domain (e.g. `"Acme"` or `"acme.com"`).

**page** `number`

Page number (default: 1).

**limit** `number`

Results per page (default: 10).

```bash cURL theme={null}
curl "https://api.flowla.com/api/v2/companies?keyword=acme&page=1&limit=20" \
  -H "x-flowla-api-key: YOUR_API_KEY"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.flowla.com/api/v2/companies",
    headers={"x-flowla-api-key": "YOUR_API_KEY"},
    params={"keyword": "acme", "page": 1, "limit": 20},
)
print(response.json())
```

```js JavaScript theme={null}
const res = await fetch(
  "https://api.flowla.com/api/v2/companies?keyword=acme&page=1&limit=20",
  { headers: { "x-flowla-api-key": "YOUR_API_KEY" } }
);
const data = await res.json();
```

### Response

**results** `array`

Array of company objects.

**Company object fields**

**id** `string`

Company identifier. Use this as `companyId` when creating or updating a room.

**name** `string`

Company display name.

**domain** `string`

Company domain (e.g. `acme.com`).

**totalRecords** `number`

Total matching companies.

**totalPages** `number`

Total pages at the current limit.

```json Response 200 theme={null}
{
  "results": [
    { "id": "cmp_01ab2", "name": "Acme Corp", "domain": "acme.com" }
  ],
  "totalRecords": 1,
  "totalPages": 1
}
```

***

## Create a company

`POST /api/v2/companies`

**domain** `string` *required*

Company domain (e.g. `acme.com`). Also used as `name` when `name` is omitted.

**name** `string`

Company display name. Defaults to `domain` when not provided.

**website** `string`

Full website URL (e.g. `https://acme.com`).

```json Example theme={null}
{ "domain": "acme.com", "name": "Acme Corp" }
```

```bash cURL theme={null}
curl -X POST https://api.flowla.com/api/v2/companies \
  -H "x-flowla-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domain": "acme.com", "name": "Acme Corp" }'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.flowla.com/api/v2/companies",
    headers={"x-flowla-api-key": "YOUR_API_KEY"},
    json={"domain": "acme.com", "name": "Acme Corp"},
)
print(response.json())
```

```js JavaScript theme={null}
const res = await fetch("https://api.flowla.com/api/v2/companies", {
  method: "POST",
  headers: {
    "x-flowla-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ domain: "acme.com", name: "Acme Corp" }),
});
const company = await res.json();
```

### Response

```json Response 201 theme={null}
{
  "id": "cmp_01ab2",
  "name": "Acme Corp",
  "domain": "acme.com",
  "website": null,
  "createdAt": "2026-06-01T10:00:00.000Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.