Rawi

API reference · Onboarding

Search industries

get/industries
AuthenticationCustomer token (Bearer)
AccessFree 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

NameInTypeDescription
qquerystringsearch 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)

FieldType
message*string
codestring
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"

Try it in the console