Rawi

API reference · Questions

List questions

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

Customer token (Bearer) — free and paid users

Active questions with stage counts, the monthly change counter and the engine label. Each question carries its own language (the language it is asked and answered in): clients set lang/dir on the question text from it, since it can differ from the panel language.

Responses

200 — QuestionsResponse

FieldTypeDescription
questions*object[]
questions[].id*integerUnique ID.
questions[].stage*stringBuying stage of the question.
questions[].type*string
questions[].text*string
questions[].language*string
questions[].cell_id*integer | nullthe question's own language: lang/dir on its text (as in the reports)
questions[].position*integer
questions[].edited*boolean
stage_counts*stringNumber of questions per buying stage.
changes*object
changes.used*integer
changes.limit*integer
changes.remaining*any
changes.month*any
changes.resets_at*string
changes.counting*boolean
language*string
engine_label*string
json
{
  "questions": [
    {
      "id": 0,
      "stage": "",
      "type": "",
      "text": "",
      "language": "",
      "cell_id": 0,
      "position": 0,
      "edited": false
    }
  ],
  "stage_counts": "",
  "changes": {
    "used": 0,
    "limit": 0,
    "remaining": null,
    "month": null,
    "resets_at": "",
    "counting": false
  },
  "language": "",
  "engine_label": ""
}

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

Try it in the console