Rawi

API reference · Onboarding

Get onboarding state

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

FieldTypeDescription
step*integer
brand*object
brand.name*string | null
brand.domain*string | nullSite 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*integerUnique 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*integerUnique ID.
products[].name*string
products[].generic_name*string
products[].type*string
products[].features*any[]
products[].position*integer
customers*object[]
customers[].id*integerUnique 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*integerUnique ID.
competitors[].name*string
competitors[].domain*string | nullSite domain.
competitors[].position*integer
competitors[].source*string
cells*object[]
cells[].id*integerUnique 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*integerUnique 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*objectLimits 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)

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/onboarding' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

Try it in the console