Rawi

مرجع API · Settings

Get products, customers & cells

get/settings/products
احراز هویتتوکن مشتری (Bearer)
سطح دسترسیکاربر رایگان · کاربر حرفه‌ای

Customer token (Bearer) — free and paid users

Products, target customers, matrix cells, plan limits and the number of questions per cell.

پاسخ‌ها

200 — {products, customers, cells, limits, question_counts}

فیلدنوعتوضیح
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
cells*object[]
cells[].id*integerUnique ID.
cells[].product_id*integer
cells[].target_customer_id*integer
cells[].label*string
cells[].active*boolean
cells[].position*integer
limits*objectLimits of the account's plan.
limits.enginesstring[]AI assistants included.
limits.questionsinteger
limits.productsinteger
limits.customersinteger
limits.cellsinteger
limits.changes_per_monthinteger
limits.run_frequenciesstring[]
limits.discovered_limitinteger
limits.citations_fullboolean
limits.all_runsboolean
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)

فیلدنوع
message*string
codestring
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/settings/products' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

امتحان در کنسول