# A3rbly API access

This file describes the currently published REST interfaces for automated clients. The interactive website is available at https://a3rbly.com/tool.

## Developer API

Request an access key at https://a3rbly.com/contact. The published API is `https://api.a3rbly.com`:

- `POST /i3rab` with JSON body `{"prompt":"قرأ الطالب الكتاب"}`
- `GET /diacritize?text=...`
- Send the issued key in the `x-api-key` header.

See https://a3rbly.com/openapi.json for the site reference and https://api.a3rbly.com/openapi.json for the upstream service schema. Keep keys out of client-side code.

## Website guest tool

The website's guest analysis uses `POST https://hzproejhrfszrluuizax.supabase.co/functions/v1/parse-i3rab` with JSON fields `sentence`, `action: "parse"`, and `isGuest: true`. This interface is provided for the website and may change. Do not treat a website account session or a key generated in the dashboard as a credential for the developer API.
