B7RDevelopers
ReferenceHelp, contact and legal texts
Reference / Help, contact and legal texts

Help, contact and legal texts

View .md

Ids, names and times in the examples are samples. Read the real values from the API.

Reads and helpful answers count as they do in the app, and your keys share the Help Center’s hourly budget with the people in the app. A count past it is simply not counted: an article always answers.

List the Help Center articles

GET/v1/help/articles

Every published article in the Help Center’s order, both languages, without its answer. topic narrows the list to one topic. most_read_ids is the Help Center’s الأكثر قراءة, most read first; while B7R cannot read the counts it lists the first five articles in the Help Center’s order instead, and the articles still answer.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Query

topicstring

One of getting_started, products, stores, orders_shipping, wallet, account.

Answer

dataarray of objectrequired
Child fields
idstring (uuid)required
slugstringrequired
topicstring or nullrequired
title_arstringrequired
title_enstringrequired
updated_atstringrequired

UTC, ISO 8601, milliseconds, Z

most_read_idsarray of string (uuid)required

The most-read articles, most read first, as the Help Center lists them

Errors

Request
curl https://api.b7r.app/v1/help/articles \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/help/articles", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/help/articles",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "data": [
    {
      "id": "3f2a1b0c-9d8e-4f7a-8b6c-5d4e3f2a1b0c",
      "slug": "top-up-your-wallet",
      "topic": "wallet",
      "title_ar": "كيف أعبئ رصيد المحفظة؟",
      "title_en": "How do I top up my wallet?",
      "updated_at": "2026-11-20T08:00:00.000Z"
    }
  ],
  "most_read_ids": [
    "3f2a1b0c-9d8e-4f7a-8b6c-5d4e3f2a1b0c"
  ]
}

Read one article

GET/v1/help/articles/{id}

The article with its answer in both languages. The read is counted once a day per account, as in the app. An article that is not published answers 404 not_found.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Path

idstring (uuid)required

Answer

idstring (uuid)required
slugstringrequired
topicstring or nullrequired
title_arstringrequired
title_enstringrequired
updated_atstringrequired

UTC, ISO 8601, milliseconds, Z

answer_arstringrequired
answer_enstringrequired

Errors

Request
curl https://api.b7r.app/v1/help/articles/{id} \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/help/articles/{id}", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/help/articles/{id}",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "id": "3f2a1b0c-9d8e-4f7a-8b6c-5d4e3f2a1b0c",
  "slug": "top-up-your-wallet",
  "topic": "wallet",
  "title_ar": "كيف أعبئ رصيد المحفظة؟",
  "title_en": "How do I top up my wallet?",
  "updated_at": "2026-11-20T08:00:00.000Z",
  "answer_ar": "من صفحة المحفظة اختر تعبئة الرصيد، ثم اختر طريقة الدفع.",
  "answer_en": "From the wallet page, choose Top up, then the way to pay."
}

Search the articles

POST/v1/help/search

The Help Center’s own search, best match first, at most 20. It searches the language you name in locale, or the request’s language when you name none.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Idempotency-Keystringrequired

A new value per operation (up to 255 letters, digits, ., _, : or -; a UUID works), the same value on its retries. See Safe retries.

Content-Typestringrequired

application/json, when the request has a body.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Body

querystringrequired

1 to 200.

localestring

The language searched; the request locale when absent One of ar, en.

Answer

dataarray of objectrequired
Child fields
idstring (uuid)required
slugstringrequired
topicstring or nullrequired
title_arstringrequired
title_enstringrequired
updated_atstringrequired

UTC, ISO 8601, milliseconds, Z

Errors

Request
curl -X POST https://api.b7r.app/v1/help/search \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "تعبئة الرصيد",
    "locale": "ar"
  }'
const res = await fetch("https://api.b7r.app/v1/help/search", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "query": "تعبئة الرصيد",
    "locale": "ar"
  }),
});
const data = await res.json();
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/help/search",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "query": "تعبئة الرصيد",
        "locale": "ar"
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "data": [
    {
      "id": "3f2a1b0c-9d8e-4f7a-8b6c-5d4e3f2a1b0c",
      "slug": "top-up-your-wallet",
      "topic": "wallet",
      "title_ar": "كيف أعبئ رصيد المحفظة؟",
      "title_en": "How do I top up my wallet?",
      "updated_at": "2026-11-20T08:00:00.000Z"
    }
  ]
}

Say whether an article helped

POST/v1/help/articles/{id}/vote

One answer per article a year, as in the app. counted is false when this account already answered the article this year, or the hour’s budget is used; the call still succeeds.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:write area. X-B7R-Key works too; send one, never both.

Idempotency-Keystringrequired

A new value per operation (up to 255 letters, digits, ., _, : or -; a UUID works), the same value on its retries. See Safe retries.

Content-Typestringrequired

application/json, when the request has a body.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Path

idstring (uuid)required

Body

helpfulbooleanrequired

Answer

countedbooleanrequired

Errors

Request
curl -X POST https://api.b7r.app/v1/help/articles/{id}/vote \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "helpful": true
  }'
const res = await fetch("https://api.b7r.app/v1/help/articles/{id}/vote", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "helpful": true
  }),
});
const data = await res.json();
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/help/articles/{id}/vote",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "helpful": True
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "counted": true
}

How to reach support

GET/v1/support-contact

The WhatsApp link and the email the Help Center shows. Either is null when B7R has not set it.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Answer

whatsapp_urlstring or nullrequired
emailstring or nullrequired

Errors

Request
curl https://api.b7r.app/v1/support-contact \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/support-contact", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/support-contact",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "whatsapp_url": "https://wa.me/966500000000",
  "email": "support@b7r.app"
}
GET/v1/legal-texts

Every published legal text at its current version, in Arabic and English HTML. version is the number a consent names: opening a store takes the versions you showed. The three store texts (store_faq, store_terms, store_privacy) are templates: template is true, and their store-name placeholder is filled with each store’s name.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Answer

dataarray of objectrequired
Child fields
kindstringrequired

One of terms, privacy, creator_agreement, store_faq, store_terms, store_privacy, api_terms.

templatebooleanrequired

A store text: its store-name placeholder is filled per store

versionintegerrequired

The version a consent names (opening a store takes it)

published_atstring or nullrequired
html_arstringrequired
html_enstringrequired

Errors

Request
curl https://api.b7r.app/v1/legal-texts \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/legal-texts", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/legal-texts",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "data": [
    {
      "kind": "creator_agreement",
      "template": false,
      "version": 3,
      "published_at": "2026-11-01T09:00:00.000Z",
      "html_ar": "<h2>اتفاقية صانع المحتوى</h2><p>...</p>",
      "html_en": "<h2>Creator agreement</h2><p>...</p>"
    }
  ]
}

Read the feedback form

GET/v1/forms/current

The form behind the feedback button, at the version the app shows, or form: null when none is set. Answer it with the id and version_id it gives.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:read area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Answer

formobject or nullrequired
Child fields
idstring (uuid)required
version_idstring (uuid)required
version_numberintegerrequired
title_arstringrequired
title_enstring or nullrequired
description_arstring or nullrequired
description_enstring or nullrequired
questionsarray of objectrequired
Child fields
idstring (uuid)required
kindstringrequired

One of short_text, long_text, single_choice, multi_choice, rating, yes_no.

positionintegerrequired
label_arstringrequired
label_enstring or nullrequired
help_arstring or nullrequired
help_enstring or nullrequired
requiredbooleanrequired
optionsarray of objectrequired
Child fields
idstring (uuid)required
label_arstringrequired
label_enstring or nullrequired

Errors

Request
curl https://api.b7r.app/v1/forms/current \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/forms/current", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/forms/current",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "form": {
    "id": "f0f0f0f0-0000-4000-8000-000000000001",
    "version_id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
    "version_number": 2,
    "title_ar": "ملاحظة",
    "title_en": "Feedback",
    "description_ar": null,
    "description_en": null,
    "questions": [
      {
        "id": "7b6c5d4e-3f2a-4b1c-8d9e-0f1a2b3c4d5e",
        "kind": "rating",
        "position": 0,
        "label_ar": "ما تقييمك للتجربة؟",
        "label_en": "How was it?",
        "help_ar": null,
        "help_en": null,
        "required": true,
        "options": []
      },
      {
        "id": "8c7d6e5f-4a3b-4c2d-9e0f-1a2b3c4d5e6f",
        "kind": "long_text",
        "position": 1,
        "label_ar": "ملاحظتك",
        "label_en": "Your note",
        "help_ar": null,
        "help_en": null,
        "required": false,
        "options": []
      }
    ]
  }
}

Answer the feedback form

POST/v1/forms/answers

answers maps each question’s id to its value: text, an option id, a list of option ids, a rating from 1 to 5, or true or false. The answers are your own words: they are never kept in the record of a call, and the answer holds ids only. An answer can open a support ticket, as it does in the app; then ticket_id and ticket_number name it.

Refused with 400 invalid_request: form_not_current at /body/form_id when the form is closed or no longer behind the button, or at /body/version_id for a version it does not take (read the form again); invalid_answer at /body/answers when an answer does not fit its question or a required one is missing. Your keys share the app’s hourly answer limit.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the tickets:write area. X-B7R-Key works too; send one, never both.

Idempotency-Keystringrequired

A new value per operation (up to 255 letters, digits, ., _, : or -; a UUID works), the same value on its retries. See Safe retries.

Content-Typestringrequired

application/json, when the request has a body.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Body

form_idstring (uuid)required
version_idstring (uuid)required
answersobjectrequired

By question id; your own words, never stored with the answer

localestring

One of ar, en.

page_pathstring

The page of your app the answer is about, a path like /orders At most 500.

Answer

response_idstring (uuid)required
ticket_idstring (uuid) or nullrequired
ticket_numberinteger or nullrequired

Errors

Request
curl -X POST https://api.b7r.app/v1/forms/answers \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "form_id": "f0f0f0f0-0000-4000-8000-000000000001",
    "version_id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
    "answers": {
      "7b6c5d4e-3f2a-4b1c-8d9e-0f1a2b3c4d5e": 4,
      "8c7d6e5f-4a3b-4c2d-9e0f-1a2b3c4d5e6f": "الشحن تأخر يومًا"
    },
    "locale": "ar"
  }'
const res = await fetch("https://api.b7r.app/v1/forms/answers", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "form_id": "f0f0f0f0-0000-4000-8000-000000000001",
    "version_id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
    "answers": {
      "7b6c5d4e-3f2a-4b1c-8d9e-0f1a2b3c4d5e": 4,
      "8c7d6e5f-4a3b-4c2d-9e0f-1a2b3c4d5e6f": "الشحن تأخر يومًا"
    },
    "locale": "ar"
  }),
});
const data = await res.json();
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/forms/answers",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "form_id": "f0f0f0f0-0000-4000-8000-000000000001",
        "version_id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
        "answers": {
            "7b6c5d4e-3f2a-4b1c-8d9e-0f1a2b3c4d5e": 4,
            "8c7d6e5f-4a3b-4c2d-9e0f-1a2b3c4d5e6f": "الشحن تأخر يومًا"
        },
        "locale": "ar"
    },
    timeout=30,
)
data = res.json()
201 Created
{
  "response_id": "9d8e7f6a-5b4c-4d3e-8f0a-1b2c3d4e5f6a",
  "ticket_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "ticket_number": 1043
}

Titles and headings of every page. llms-full.txt holds the full text.