API reference · Settings
Get products, customers & cells
get
/settings/products| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
Products, target customers, matrix cells, plan limits and the number of questions per cell.
Responses
200 — {products, customers, cells, limits, question_counts}
| Field | Type | Description |
|---|---|---|
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 | |
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 | |
limits* | object | Limits of the account's plan. |
limits.engines | string[] | AI assistants included. |
limits.questions | integer | |
limits.products | integer | |
limits.customers | integer | |
limits.cells | integer | |
limits.changes_per_month | integer | |
limits.run_frequencies | string[] | |
limits.discovered_limit | integer | |
limits.citations_full | boolean | |
limits.all_runs | boolean | |
question_counts* | object |
json
{
"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
}
],
"cells": [
{
"id": 9,
"product_id": 39,
"target_customer_id": 41,
"label": "نرمافزار حسابداری ابری، برای شرکتهای خرد و کوچک در ایران",
"active": true,
"position": 1
}
],
"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
},
"question_counts": {
"9": 10
}
}
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/settings/products' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"