Rawi

مرجع API · Public

Public site options

get/public/options
احراز هویتبدون احراز هویت (عمومی)
سطح دسترسیمهمان · کاربر رایگان · کاربر حرفه‌ای · مشاور · مدیر کل

Public — no token

The legal entity the legal pages quote: company legal name, registered address, support email, governing law, whether counsel reviewed the texts and the «Last updated» date. Each value is the one saved in the admin panel (PUT /admin/legal), else the server .env (RAWI_LEGAL_*, RAWI_SUPPORT_EMAIL). Never a placeholder: an unknown company name is null (the site shows its own name) and an unknown support email falls back to MAIL_FROM_ADDRESS.

پاسخ‌ها

200 — PublicOptions

فیلدنوعتوضیح
legal*object
legal.company_name*string | null
legal.address*string | null
legal.support_email*string | null
legal.governing_law*string | null
legal.reviewed*any
legal.updated_at*string | nullWhen it was last changed (ISO 8601).
json
{
  "legal": {
    "company_name": "Rawi Labs Ltd",
    "address": "1 Example Street, London",
    "support_email": "support@rawi.example",
    "governing_law": "England and Wales",
    "reviewed": false,
    "updated_at": "2026-11-20"
  }
}

نمونهٔ curl

bash
curl -X GET 'http://127.0.0.1:8010/api/public/options' \
  -H 'Accept: application/json'

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