Rawi

API reference · Talk to an expert

List own expert requests

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

Customer token (Bearer) — free and paid users

The caller's own requests, newest first (up to 50). View only; a request can still be changed with PATCH /consultations/{id} while its status is new.

Responses

200 — ConsultationRequest[]

FieldTypeDescription
id*integerUnique ID.
name*string
phone*stringMobile number.
method*string
time_slot*string
preferred_days*any[]
note*string | null
source_page*string | null
status*stringCurrent status.
due_at*string | null
snapshot*object
snapshot.brand*string | null
snapshot.plan*string | string ("free")Plan: free (Free) or paid (Pro).
snapshot.share*string | null
snapshot.gaps*string | nullMissed questions: AI named a competitor and not you.
snapshot.last_run_at*string | null
snapshot.source_page*string | null
created_at*string | nullWhen it was created (ISO 8601).
json
[
  {
    "id": 23,
    "name": "نسرین کاظمی",
    "phone": "09123456789",
    "method": "phone",
    "time_slot": "morning",
    "note": null,
    "source_page": "r2",
    "status": "new",
    "due_at": "2026-11-29T16:20:00Z",
    "snapshot": {
      "brand": "آوند",
      "plan": "free",
      "share": null,
      "gaps": null,
      "last_run_at": null,
      "source_page": "r2"
    },
    "created_at": "2026-11-24T16:20:00Z"
  }
]

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

Try it in the console