Rawi

API reference · Auth & profile

Get current user

get/me
AuthenticationCustomer token (Bearer)
AccessFree user · Pro user

Customer token (Bearer) — free and paid users

Account (email may be null for phone-only accounts; phone = verified mobile in E.164 or null, phone_verified, sms_notifications), plan, limits, brand, last run, next run, run_frequency (the schedule chosen in the app: weekly|monthly, monthly when the plan does not allow weekly; null before a brand exists; shown in the sidebar plan widget), free-queue position and notify_requested (pressed «Notify me» for Pro and not told yet: the sidebar widget says “On the Pro list”). The frontend routes users by onboarding_step (2..8 = next O-step, 9 = finished).

Responses

200 — Me

FieldTypeDescription
id*integerUnique ID.
email*string | nullEmail address.
phone*string | nullMobile number.
phone_verified*boolean
sms_notifications*boolean
name*string | null
locale*string ("en", "fa")Language: fa or en.
plan*string ("paid", "free")Plan: free (Free) or paid (Pro).
billing_period*string | null
plan_expires_at*string | null
onboarding_step*integer
onboarding_completed*boolean
referral_code*string
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
brand*object | null
brand.id*integerUnique ID.
brand.name*string | null
brand.domain*string | nullSite domain.
brand.initial*string
gaps_count*integer | null
last_run*object | null
last_run.id*integerUnique ID.
last_run.kind*string
last_run.status*stringCurrent status.
last_run.engines*any[]AI assistants included.
last_run.started_at*string | nullWhen it started (ISO 8601).
last_run.finished_at*string | nullWhen it finished (ISO 8601).
last_run.done*integer
last_run.total*integer
next_run_at*string | null
run_frequency*string | null ("weekly", "monthly", null)R1 plan widget: the schedule the user chose in S4 (the plan's allowed value, as RunService schedules it).
queue*array | null
notify_requested*booleanSidebar plan widget «On the Pro list»: «Notify me» pressed (C2 or /signup?notify=pro) and not answered yet.
run_issue*object | nullThe latest run failed: automatic retry state for the app shell banner (RunService::issue; null otherwise).
run_issue.state*string ("retrying", "stopped")
run_issue.attempts*integer
run_issue.max_retries*integer
run_issue.has_report*boolean
run_issue.next_retry_at*string | null
run_issue.next_run_at*string | null
run_issue.message*stringHuman-readable message in the request language.
json
{
  "id": 1,
  "email": "demo@rawi.local",
  "phone": "+989120000077",
  "phone_verified": true,
  "sms_notifications": true,
  "name": "عرفان",
  "locale": "fa",
  "plan": "free",
  "billing_period": null,
  "plan_expires_at": null,
  "onboarding_step": 9,
  "onboarding_completed": true,
  "referral_code": "wth1ftkn",
  "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
  },
  "brand": {
    "id": 40,
    "name": "آوند",
    "domain": "avand.example",
    "initial": "آ"
  },
  "gaps_count": 2,
  "last_run": {
    "id": 38,
    "kind": "scheduled",
    "status": "complete",
    "engines": [
      "chatgpt"
    ],
    "started_at": "2026-11-25T10:16:00Z",
    "finished_at": "2026-11-25T10:30:00Z",
    "done": 10,
    "total": 10
  },
  "next_run_at": "2026-12-25T10:30:00Z",
  "queue": null
}

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

Try it in the console