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.
GET /api/v1/admin/industries
Authentication: optional. A token, if present, is read but not required.

Query parameters

active
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

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

Examples

curl "https://app.paypunch.io/api/v1/admin/industries?search=construction"
On an unexpected error this endpoint returns 500 Failed to fetch industries. Because auth is optional, it does not return 401.