API reference · Onboarding
Search industries
get
/industries| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
Industry picker (group → industry). Empty q returns the most used industries first; otherwise name matches rank above group/keyword matches. Max 20.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | search text (fa or en) |
Responses
200 — Industry[]
json
[
{
"id": 1,
"name": "نرمافزار حسابداری و مالی",
"group": "فناوری اطلاعات و نرمافزار",
"default_sales_model": "b2b"
},
{
"id": 84,
"name": "آژانس مسافرتی",
"group": "گردشگری و مهماننوازی",
"default_sales_model": "b2c"
}
]
401 — Missing/invalid token, or a token of the wrong owner (admin token on a user route or vice versa): {"message":"…","code":"unauthenticated"} (message in the request language)
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
curl example
bash
curl -X GET 'http://127.0.0.1:8010/api/industries' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"