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.

The script loads an accessibility icon in the corner of the page. Visitors click it to open the sidebar — there's nothing else to wire up.

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.

  1. From your dashboard, add the domain or subdomain (e.g. example.com or app.example.com).
  2. Accessia generates a verification token for that entry.
  3. Add the token as a DNS TXT record, or as a meta tag on your homepage.
  4. 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
}
FieldTypeMeaning
planstringYour current plan name.
quotaintegerAPI calls included this period.
usedintegerCalls counted so far.
remainingintegerCalls 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.

ConditionResult
Invalid or missing API keyWidget does not load
Domain not verified403 Forbidden, widget does not load
Plan expired or suspendedWidget does not load
Monthly quota exceededWidget does not load until next period

Plan reference

PlanAPI calls / monthDomainsSubdomains
Free5010
Starter5,00011
Business50,00024
EnterpriseCustomCustomCustom

Need a customized solution? Let's talk.

Higher limits, a dedicated domain setup, or anything else not covered above — we'll work it out directly.