Klar Developer & Agent Documentation

API & Agent Documentation

Klar (formerly PureScan AI) provides automated endpoints, OpenAPI schemas, and Agentic protocols for discovering and interacting with our food and cosmetic safety tools.

Discovery Endpoints

Machine-readable catalogs and specifications adhere to standard RFCs and draft protocols:

REST & Utility Endpoints

GET/api/health

Returns service status, uptime, and version information.

POST/api/checkout

Creates a Dodo Payments checkout session for subscription plans.

POST/api/portal

Generates a self-service Dodo Payments customer billing portal session URL for verified customers.

POST/api/webhook

Receives verified Dodo Payments webhook lifecycle events and synchronizes Pro status.

GET/api/download

Smart routing redirect to App Store (iOS) or Google Play Store (Android) based on user agent.