API reference · Onboarding
Get onboarding state
get
/onboarding| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
Current answers for every step plus the site-reader suggestions and plan limits.
Responses
200 — OnboardingState
| Field | Type | Description |
|---|---|---|
step* | integer | |
brand* | object | |
brand.name* | string | null | |
brand.domain* | string | null | Site domain. |
brand.name_variants* | any[] | «Other forms of the name»: the name itself is always matched, so it is not listed as another form. |
brand.site_read_status* | string | |
industry* | object | null | |
industry.id* | integer | Unique ID. |
industry.name* | string | |
industry.group* | string | |
industry.default_sales_model* | string | |
industry_other* | string | null | |
sales_model* | string | null | |
primary_customer* | string | null | |
products* | object[] | |
products[].id* | integer | Unique ID. |
products[].name* | string | |
products[].generic_name* | string | |
products[].type* | string | |
products[].features* | any[] | |
products[].position* | integer | |
customers* | object[] | |
customers[].id* | integer | Unique ID. |
customers[].kind* | string | |
customers[].name* | string | |
customers[].industries* | any[] | |
customers[].sizes* | any[] | |
customers[].decision_makers* | any[] | |
customers[].country* | string | |
customers[].province* | string | null | |
customers[].city* | string | null | |
customers[].main_need* | string | null | |
customers[].position* | integer | |
competitors* | object[] | |
competitors[].id* | integer | Unique ID. |
competitors[].name* | string | |
competitors[].domain* | string | null | Site domain. |
competitors[].position* | integer | |
competitors[].source* | string | |
cells* | object[] | |
cells[].id* | integer | Unique ID. |
cells[].product_id* | integer | |
cells[].target_customer_id* | integer | |
cells[].label* | string | |
cells[].active* | boolean | |
cells[].position* | integer | |
question_language* | string ("en", "fa") | |
suggestions* | object | |
suggestions.industry_id* | string | null | |
suggestions.industry* | object | null | |
suggestions.industry.id* | integer | Unique ID. |
suggestions.industry.name* | string | |
suggestions.industry.group* | string | |
suggestions.industry.default_sales_model* | string | |
suggestions.industry_alternatives* | object[] | object | |
suggestions.name_variants* | any[] | |
suggestions.products* | any[] | |
suggestions.customers* | any[] | |
suggestions.competitors* | any[] | |
limits* | object | Limits of the account's plan. |
json
{
"step": 9,
"brand": {
"name": "آوند",
"domain": "avand.example",
"name_variants": [
"Avand",
"آوند حساب",
"اوند"
],
"site_read_status": "ok"
},
"industry": {
"id": 1,
"name": "نرمافزار حسابداری و مالی",
"group": "فناوری اطلاعات و نرمافزار",
"default_sales_model": "b2b"
},
"industry_other": null,
"sales_model": "b2b",
"primary_customer": null,
"products": [
{
"id": 39,
"name": "آوند ابری",
"generic_name": "نرمافزار حسابداری ابری",
"type": "software",
"features": [
"صدور فاکتور رسمی",
"اتصال به سامانه مودیان",
"دسترسی چندکاربره"
],
"position": 1
}
],
"customers": [
{
"id": 41,
"kind": "b2b",
"name": "شرکتهای خرد و کوچک در ایران",
"industries": [
"خدمات",
"بازرگانی"
],
"sizes": [
"micro",
"small"
],
"decision_makers": [
"مدیر مالی",
"مدیرعامل"
],
"country": "ایران",
"province": null,
"city": null,
"main_need": "حسابداری ساده و قانونی",
"position": 1
}
],
"competitors": [
{
"id": 163,
"name": "نیکحساب",
"domain": "nikhesab.example",
"position": 1,
"source": "suggested"
},
{
"id": 164,
"name": "ترازنو",
"domain": "taraznoo.example",
"position": 2,
"source": "suggested"
}
],
"cells": [
{
"id": 9,
"product_id": 39,
"target_customer_id": 41,
"label": "نرمافزار حسابداری ابری، برای شرکتهای خرد و کوچک در ایران",
"active": true,
"position": 1
}
],
"question_language": "fa",
"suggestions": {
"industry_id": null,
"industry": null,
"industry_alternatives": [],
"name_variants": [],
"products": [],
"customers": [],
"competitors": []
},
"limits": {
"engines": [
"chatgpt"
],
"questions": 10,
"products": 1,
"customers": 1,
"cells": 1,
"changes_per_month": 2,
"run_frequencies": [
"monthly"
],
"discovered_limit": 10,
"citations_full": false,
"all_runs": false
},
"industries_count": 120,
"question_languages": [
{
"code": "fa",
"name": "فارسی",
"native_name": "فارسی"
},
{
"code": "en",
"name": "English",
"native_name": "English"
}
],
"question_set": {
"exists": true,
"edited": false,
"approved": false
}
}
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/onboarding' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"