API reference · Onboarding
Industry groups
get
/industries/groups| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
Localized industry group names for the B2B customer card («به چه شرکتهایی میفروشید؟»).
Responses
200 — {name: string}[]
| Field | Type |
|---|---|
name* | string |
json
[
{
"name": "فناوری اطلاعات و نرمافزار"
},
{
"name": "خدمات حرفهای و کسبوکار"
}
]
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/groups' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"