API Reference

Complete reference for the REST endpoints and signed callbacks that ship with AuthCore.

Quick Start

AuthCore relies on NextAuth session cookies. Browser clients automatically forward the authcore.session-token cookie to protected routes.

await fetch('/api/user/profile', {
  credentials: 'include',
  headers: { 'Content-Type': 'application/json' },
})

For service-to-service calls, mint a short-lived token in your backend and forward it as an Authorization: Bearer ... header.

Base URL

https://your-domain.com/api

Each endpoint mounts under /api—for example /api/auth/policy, /api/tenant/invitations, /api/user/devices.