au1h
Reference

Admin API

What the admin portal uses, available to scripts with an admin session.

All routes under /api/v1 except /health require an admin-portal session (sign in with x-app-id: au1h-admin) with an active workspace, or a personal access token, and are scoped to that workspace. Unauthenticated calls get 401; a client-application session also gets 401.

Scripts, CI and the au1h CLI authenticate with a personal access token instead:

Authorization: Bearer au1h_pat_…

Applications

EndpointMethodBody / notes
/api/v1/applicationsGETList with user and session counts
/api/v1/applications/:idGET
/api/v1/applicationsPOST{ name, slug, allowedOrigins?, redirectUris?, logo? } → { application, secret }
/api/v1/applications/:idPUTSame fields plus isActive, organizationsEnabled
/api/v1/applications/:idDELETE
/api/v1/applications/:id/regenerate-secretPOST{ secret }, shown once

slug is lowercase letters, digits and hyphens; au1h-admin is reserved. allowedOrigins and redirectUris are comma-separated strings.

Users

Users of your workspace's applications, plus your workspace's own members.

EndpointMethodNotes
/api/v1/users?applicationId=&search=&page=&limit=GETPaginated
/api/v1/users/:idGET
/api/v1/users/:id/sessionsGET
/api/v1/users/:id/banPOST{ reason?, expiresAt? }; revokes sessions
/api/v1/users/:id/unbanPOST
/api/v1/users/:id/sessionsDELETERevoke all
/api/v1/users/sessions/:sessionIdDELETERevoke one

Proxy routes

EndpointMethodBody
/api/v1/routes?applicationId=GET
/api/v1/routesPOST{ applicationId, name, pathPattern, backendUrl, methods, stripPrefix? }
/api/v1/routes/:idPUTAny of the above plus isActive
/api/v1/routes/:id/togglePATCH{ isActive }
/api/v1/routes/:idDELETE

The application must belong to your workspace. backendUrl must be http(s) without credentials; private and loopback targets are refused in production.

On this page