Rawi

مرجع API · Onboarding

Search industries

get/industries
احراز هویتتوکن مشتری (Bearer)
سطح دسترسیکاربر رایگان · کاربر حرفه‌ای

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.

پارامترها

ناممحلنوعتوضیح
qquerystringsearch text (fa or en)

پاسخ‌ها

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)

فیلدنوع
message*string
codestring
json
{
  "message": "Please sign in to continue; your session has ended or is not valid.",
  "code": "unauthenticated"
}

نمونهٔ curl

bash
curl -X GET 'http://127.0.0.1:8010/api/industries' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

امتحان در کنسول