Skip to main content
Look up the industries used to categorize client companies (for example when creating or editing a company). This endpoint has optional authentication — it works with or without a token — so it can power public-facing dropdowns.
Authentication: optional. A token, if present, is read but not required.

Query parameters

string
default:"true"
Defaults to active industries only. Pass active=false to include inactive industries as well. (Any value other than the literal string false keeps the active-only filter.)
Case-insensitive match against industry name and description.

Response

array
Industries ordered by name ascending. Each item: id, name, description, active, and _count.companies (number of companies in that industry).
integer
The number of industries returned.

Examples

On an unexpected error this endpoint returns 500 Failed to fetch industries. Because auth is optional, it does not return 401.