مرجع 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.
پارامترها
| نام | محل | نوع | توضیح |
|---|---|---|---|
q | query | string | search 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 |
code | string |
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"