مرجع API · Settings
Get scan & language settings
get
/settings/run| احراز هویت | توکن مشتری (Bearer) |
|---|---|
| سطح دسترسی | کاربر رایگان · کاربر حرفهای Customer token (Bearer) — free and paid users |
Run frequency, panel language, question language, next run and the frequencies the plan allows.
پاسخها
200 — RunSettings
| فیلد | نوع |
|---|---|
run_frequency* | string ("weekly", "monthly") |
panel_locale* | string ("en", "fa") |
question_language* | string ("en", "fa") |
next_run_at* | string | null |
allowed_frequencies* | any[] |
json
{
"run_frequency": "monthly",
"panel_locale": "fa",
"question_language": "fa",
"next_run_at": "2026-12-25T10:30:00Z",
"allowed_frequencies": [
"monthly"
]
}
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 |
code | string |
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/run' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"