API Reference

RESTful API built with Rust and Axum, providing comprehensive authentication and multi-tenant management capabilities for AuthOS.

API Reference

The AuthOS API is a RESTful API built with Rust and Axum, providing comprehensive authentication and multi-tenant management capabilities.

Getting Started

New to the API? Start here:

API Sections

Authentication & Users

Organizations & Services

  • Organizations - Multi-tenant organization management, SMTP, domains, and branding
  • Services - Service configuration and OAuth settings
  • Invitations - Team member invitations and onboarding

Security & Access Control

  • API Keys - Service-to-service authentication
  • Service API - Backend API endpoints for services
  • SAML - SAML 2.0 Identity Provider

Governance & Integration

Base URL

http://localhost:3000

For production deployments, replace with your deployed API URL.

Authentication

The API uses JWT-based authentication. Most endpoints require an Authorization header:

Authorization: Bearer <access_token>

See the Authentication reference for details on obtaining access tokens.

Sections

Pages

Getting Started with the API

First-time local setup guide for AuthOS. Learn how to initialize your development environment, configure OAuth providers, and start the service.

Error Handling

Comprehensive guide to error handling patterns, standard response formats, HTTP status codes, and best practices for resilient API integration.

Deployment Guide

Comprehensive guide for deploying AuthOS with different database backends including SQLite, PostgreSQL, and MySQL.

API Concepts

Core concepts and architectural patterns of the AuthOS API including JWT authentication, dual flows, and BYOO integration.

API Reference

Complete endpoint documentation for the AuthOS API including authentication, user management, organizations, services, and integrations.

Appendix

Reference materials including error codes, webhook events, JWT claims, and OAuth scopes.