Akhar API docs
Akhar is a Gurmukhi (Punjabi) keyboard, calligraphy brush and font app. The Akhar API turns Roman-letter Punjabi into Gurmukhi and lets developers, AI agents and tools read what Akhar is and what each page does. It is public and read-only, and no key is needed. Drawing, accounts and payments happen in the app itself and are not part of this API.
Working in a terminal? The Akhar CLI wraps this API: akhar type "sat sri akal".
Endpoints
Authentication
None. These endpoints are public and read-only: no API key, token or sign-in. Send plain HTTPS GET requests.
curl -sS -H 'Accept: application/json' https://akhar.site/_api/agent/infoGET /_api/agent/transliterate?text=sat sri akal
Punjabi typed in Roman letters to Gurmukhi Unicode, with the same rules as the Akhar Gurmukhi keyboard: aa, ee and oo for long vowels, capital T D N R for ਟ ਡ ਣ ੜ, a doubled letter for addak. JSON with the text, the Gurmukhi and its code points. Up to 2,000 characters.
curl -sS 'https://akhar.site/_api/agent/transliterate?text=sat%20sri%20akal'
{ "text": "sat sri akal", "gurmukhi": "ਸਤਿ ਸ੍ਰੀ ਅਕਾਲ", "codepoints": ["U+0A38", "U+0A24", …] }GET /_api/agent/info
What Akhar is, the free trial, the plans with prices, and every public page with a link to its Markdown version. JSON.
curl -sS https://akhar.site/_api/agent/infoGET /_api/agent/page?path=/brushes
One page of the site as Markdown (Vary: Accept). Add format=json, or send Accept: application/json, for the same content as JSON. Unknown paths answer 404.
curl -sS 'https://akhar.site/_api/agent/page?path=/create/photo'Any page with Accept: text/markdown
Every page on akhar.site answers in Markdown when the request asks for it, and in HTML for browsers.
curl -sS -L -H 'Accept: text/markdown' https://akhar.site/Errors
Addresses that don't exist answer HTTP 404. Paths under /api/ and requests asking for JSON get a JSON error with a code, a message, a hint and links to these docs; requests asking for Markdown get a Markdown explanation. Error codes: not_found and page_not_found (404); missing_parameter, unknown_parameter and text_too_long (400); rate_limited (429).
{ "error": { "status": 404, "code": "not_found", "message": "Nothing exists at /api/x on Akhar.", "hint": "…", "docs": "https://akhar.site/developers" } }Rate limits
60 requests a minute per address
Every response carries the IETF RateLimit headers: RateLimit-Policy (the quota and window) and RateLimit (requests left and seconds until the window resets), plus the older RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Over the limit, the answer is HTTP 429 with Retry-After in seconds and a JSON error. Slow down when RateLimit shows few requests left.
HTTP/2 200
RateLimit-Policy: "agent";q=60;w=60
RateLimit: "agent";r=59;t=42
RateLimit-Limit: 60
RateLimit-Remaining: 59
RateLimit-Reset: 42
HTTP/2 429 (over the limit)
Retry-After: 42
{ "error": { "status": 429, "code": "rate_limited", "message": "Too many requests: the limit is 60 a minute.", … } }Tools
Akhar CLI
akhar is the official command-line tool: Gurmukhi typing that works offline, and the info, pages and page calls of this API, with --json for scripts. Install the Akhar CLI.
More
The full guide for agents is at /llms.txt, and every public page is listed in /sitemap.xml. Questions about the API go to hello@akhar.site.