AuthWorx Docs

Hosted B2B authentication for applications that serve multiple organizations. Drop in a few API calls — AuthWorx handles login, sessions, two-factor auth, member management, and real-time webhooks.

â„šī¸
Base URL
All API requests go to https://authworx.uthings.io/api/v1.
Include the X-Org-Slug header on every request to scope it to your organization.

What AuthWorx gives you

How it works

AuthWorx uses a multi-tenant architecture. Each organization has its own members, roles, API keys, and webhook subscriptions. A single AuthWorx deployment can serve many independent organizations.

There are two ways to authenticate requests to AuthWorx:

Request conventions

HeaderRequiredDescription
X-Org-Slug required Your organization's slug. Scopes all requests to the correct org.
X-API-Key public API only API key for server-to-server requests to /public/* endpoints.
Authorization optional Bearer <access_token> — alternative to cookie auth for server calls.
Content-Type required for POST/PUT application/json

Response format

All responses use a consistent envelope:

Success
{
  "status": "success",
  "data": { ... }
}
Error
{
  "status": "error",
  "message": "Human-readable description of what went wrong"
}