Changelog

Widgets API

July 3, 2026
Widgets APIWidgets API

The Widgets API is a session-aware GraphQL API for the browser that lets you build UI with WorkOS data directly. WorkOS already has Widgets, prebuilt React components that drop a user table or other WorkOS functionality into your app in minutes. They are fast to implement, but inflexible, since all you can adjust is the theme.

With the Widgets API, a coding agent can introspect the GraphQL schema and write queries without docs. You can build an experience that fetches a user's details, roles, and sessions in one request instead of three REST calls. Your server mints a short-lived, origin-pinned token that lets the browser query directly, so your backend never proxies requests to the WorkOS API. Today it covers user management, sessions, and profile data, with more to come. Reach out for early access.