One script tag.
Verified PA data, anywhere.
The <auth57-pa-lookup> web component ships on the npm CDN. Drop it onto any page — React, Vue, plain HTML, Salesforce Lightning. Themeable, framework-agnostic, zero build step.
Copy. Paste. Ship.
That widget above isn't a screenshot — it's the actual component running on this page. The same one drops onto yours.
<!-- Drop onto any page -->
<script type="module"
src="https://unpkg.com/@auth57labs/sdk@latest/dist/components/pa-lookup.js"></script>
<auth57-pa-lookup
api-key="YOUR_AUTH57_KEY"
state="CA"
program="medicaid_ffs"
service="diagnostic_imaging"
auto-query>
</auth57-pa-lookup>// React fully supports web components since v19.
// In older React, use @lit/react's createComponent wrapper.
import { useEffect } from 'react';
export function PaLookup({ state, program, service }) {
useEffect(() => {
import('https://unpkg.com/@auth57labs/sdk@latest/dist/components/pa-lookup.js');
}, []);
return (
<auth57-pa-lookup
api-key={process.env.NEXT_PUBLIC_AUTH57_KEY}
state={state}
program={program}
service={service}
auto-query />
);
}// npm install @auth57labs/sdk
import { Auth57Client } from '@auth57labs/sdk';
const client = new Auth57Client({
apiKey: process.env.AUTH57_API_KEY!,
});
const result = await client.paLookup({
state: 'CA',
program: 'medicaid_ffs',
service: 'diagnostic_imaging',
});
console.log(result.result.pa_required); // true
console.log(result.result.source_url); // https://dhcs.ca.gov/...
console.log(result.next_steps); // ordered submission guideWorks in every runtime you ship to
Same component, same API. No framework lock-in. No per-platform rebuild.
Plain HTML
One script tag, one tag. That's it. The CDN URL on this page is the canonical production bundle.
Any framework
Web components interop natively with every modern framework. Pass props via attributes, listen for custom events, use ref for imperative calls.
Lightning + Flow
Wrap in a thin LWC for record-page widgets, or import our OpenAPI spec as an External Service for no-code Flow actions.
Node · Bun · Deno · Edge
@auth57labs/sdk ships a typed Auth57Client with zero runtime deps. Runs on Vercel Edge, Cloudflare Workers, anywhere.
MCP server
The same corpus is also exposed as a Model Context Protocol server. Claude and compatible agents query PA rules natively.
REST · OpenAPI
Every endpoint is also a plain REST call. Import the OpenAPI spec into Postman, Insomnia, Bruno, or your API gateway.
Component reference
All attributes are plain strings (HTML-safe) and reflect to properties.
Attributes
api-keystringRequired. Your Auth57 API key. Grab one at /subscribe-api.statestring2-letter state code (CA, TX, NY, …).programstringmedicaid_ffs · medicaid_mco · medicare_advantage · medicare_traditional · dual_eligible · part_d · chipdrugstringDrug class code (e.g. glp_1_agonists). Mutually exclusive with service.servicestringService category code (e.g. advanced_imaging). Mutually exclusive with drug.auto-querybooleanIf present, re-query when any input attribute changes.base-urlstringOverride the API origin (default https://api.auth57.io).Events
auth57-resultPaLookupResponseSuccessful lookup — body in event.detail.auth57-errorAuth57ErrorHTTP error, network failure, or timeout.CSS custom properties
--auth57-accent#00d4c8Primary accent (Auth57 teal)--auth57-accent-cta#f64d82PA-required verdict color--auth57-bg#ffffffCard background--auth57-text#0a0e1aPrimary text color--auth57-muted#6b7280Secondary text color--auth57-border#e8e4deCard + meta borders--auth57-fontsystem-uiFont family inside the shadow DOMShip PA data inside your product today.
The component is live on the npm CDN. The SDK is on npm. The OpenAPI spec imports cleanly into Salesforce. Nothing to wait on.