Developer guide
Everything needed to install the widget, manage domains, and read usage from your own systems. No SDK required — one script tag, plain JSON over HTTPS.
Installation
Add one script tag anywhere on the page, with your public API key as a query parameter.
<script src="https://accessiatools.iuxing.com/accessia.js?api_key=YOUR_API_KEY"></script>
Find your API key on your dashboard, under API Key. Each account gets one public/secret key pair automatically; you can regenerate it any time.
How it works
On load, the widget validates your API key, confirms the current domain is allowed, and fetches your plan's current quota. That call is what counts against your monthly API calls — nothing else does.
Not counted against quota
- Opening or closing the sidebar
- Toggling any setting
- Using text-to-speech
Where preferences live
Settings are stored in a cookie named accessia_settings for 365 days, restored automatically across pages, sessions, and browser restarts.
Domain & subdomain setup
The widget only runs on domains you've added and verified — safe to ship your API key in client-side code, since it won't work on an unapproved domain.
- From your dashboard, add the domain or subdomain (e.g.
example.comorapp.example.com). - Accessia generates a verification token for that entry.
- Add the token as a DNS TXT record, or as a meta tag on your homepage.
- Once verified, the widget starts serving on that domain within minutes.
How many domains and subdomains you can register depends on your plan — see the plan reference.
Usage API
Pull your own usage numbers into your dashboards or alerting. Authenticate with your secret key as a bearer token.
Get current usage
GET /api/v1/usage Authorization: Bearer YOUR_SECRET_KEY
Response:
{
"plan": "Starter",
"quota": 5000,
"used": 1200,
"remaining": 3800
}
| Field | Type | Meaning |
|---|---|---|
plan | string | Your current plan name. |
quota | integer | API calls included this period. |
used | integer | Calls counted so far. |
remaining | integer | Calls left before the widget stops loading. |
Errors & failure handling
The widget fails quietly on your site — it never throws a visible error to your visitors.
| Condition | Result |
|---|---|
| Invalid or missing API key | Widget does not load |
| Domain not verified | 403 Forbidden, widget does not load |
| Plan expired or suspended | Widget does not load |
| Monthly quota exceeded | Widget does not load until next period |
Plan reference
| Plan | API calls / month | Domains | Subdomains |
|---|---|---|---|
| Free | 50 | 1 | 0 |
| Starter | 5,000 | 1 | 1 |
| Business | 50,000 | 2 | 4 |
| Enterprise | Custom | Custom | Custom |