Skip to main content

API Endpoints

The full interactive API reference is available at api.autentico.top.

Below is a complete listing of all endpoints organized by category. The OAuth2 path prefix defaults to /oauth2 but can be changed via AUTENTICO_APP_OAUTH_PATH.

Infrastructure​

MethodPathDescription
GET/healthzHealth check endpoint
GET/.well-known/openid-configurationOIDC Discovery document
GET/oauth2/.well-known/openid-configurationOIDC Discovery document (alternate path)
GET/oauth2/.well-known/jwks.jsonJSON Web Key Set for token verification
GET/swagger/*Swagger UI
GET/api-docs/API documentation viewer

OAuth2 Protocol​

MethodPathDescription
GET/oauth2/authorizeAuthorization endpoint -- validates client and renders login page
POST/oauth2/authorizeAuthorization endpoint (POST variant)
POST/oauth2/tokenToken endpoint -- code exchange, refresh, ROPC, client credentials
POST/oauth2/revokeToken revocation (RFC 7009)
POST/oauth2/introspectToken introspection (RFC 7662)
GET, POST/oauth2/userinfoUserInfo endpoint -- returns claims for the authenticated user
POST/oauth2/logoutLogout -- revokes session and tokens
GET/oauth2/logoutRP-Initiated Logout (RFC draft)

Dynamic Client Registration​

MethodPathDescription
POST/oauth2/registerRegister a new OAuth2 client (admin-authenticated)
GET/oauth2/register/{client_id}Read client registration (admin-authenticated)
PUT/oauth2/register/{client_id}Update client registration (admin-authenticated)
DELETE/oauth2/register/{client_id}Delete client registration (admin-authenticated)

Authentication​

MethodPathDescription
POST/oauth2/loginCredential validation and auth code issuance
GET, POST/oauth2/consentOAuth2 consent screen -- scope approval
GET, POST/oauth2/mfaMFA challenge -- TOTP or email OTP verification
GET, POST/oauth2/signupSelf-service user registration
GET, POST/oauth2/forgot-passwordInitiate password reset flow
GET, POST/oauth2/reset-passwordComplete password reset with token
GET/oauth2/verify-emailConfirm email verification token
POST/oauth2/resend-verificationResend email verification link

Passkey / WebAuthn​

MethodPathDescription
GET/oauth2/passkey/login/beginBegin passkey authentication ceremony
POST/oauth2/passkey/login/finishComplete passkey authentication ceremony
GET/oauth2/passkey/register/beginBegin passkey registration ceremony
POST/oauth2/passkey/register/finishComplete passkey registration ceremony

Federation (Social Login)​

MethodPathDescription
GET/oauth2/federation/{id}Begin federated login with external IdP
GET/oauth2/federation/{id}/callbackHandle callback from external IdP
GET/oauth2/federation/{id}/icon.svgServe provider icon for login page

Keycloak-Compatible Aliases​

MethodPathDescription
POST/oauth2/protocol/openid-connect/tokenToken endpoint (Keycloak-compatible path)
GET, POST/oauth2/protocol/openid-connect/userinfoUserInfo endpoint (Keycloak-compatible path)

Admin API​

All admin endpoints require a bearer token with admin role.

Users​

MethodPathDescription
GET/admin/api/usersList users (paginated, filterable)
POST/admin/api/usersCreate a new user
GET/admin/api/users/{id}Get user by ID
PUT/admin/api/users/{id}Update user
DELETE/admin/api/users/{id}Delete user
POST/admin/api/users/{id}/deactivateDeactivate user account
POST/admin/api/users/{id}/reactivateReactivate user account
POST/admin/api/users/{id}/unlockUnlock locked user account
POST/admin/api/users/{id}/revoke-sessionsRevoke all sessions for a user
GET/admin/api/users/{id}/groupsList groups a user belongs to
GET/admin/api/users/{id}/idp-sessionsList IdP sessions for a user

Clients​

MethodPathDescription
GET/admin/api/clientsList all OAuth2 clients
POST/admin/api/clientsRegister a new client
GET/admin/api/clients/{client_id}Get client by client_id
PUT/admin/api/clients/{client_id}Update client
DELETE/admin/api/clients/{client_id}Delete client

Sessions​

MethodPathDescription
GET/admin/api/sessionsList OAuth sessions
DELETE/admin/api/sessions/{id}Deactivate a session
GET/admin/api/idp-sessionsList IdP SSO sessions
GET/admin/api/idp-sessions/{id}/sessionsList OAuth sessions under an IdP session
DELETE/admin/api/idp-sessions/{id}Force logout an IdP session (cascades to child sessions and tokens)

Tokens​

MethodPathDescription
GET/admin/api/tokensList issued tokens
DELETE/admin/api/tokens/{id}Revoke a token

Federation Providers​

MethodPathDescription
GET/admin/api/federationList federation providers
POST/admin/api/federationCreate a federation provider
GET/admin/api/federation/{id}Get provider by ID
PUT/admin/api/federation/{id}Update provider
DELETE/admin/api/federation/{id}Delete provider

Groups​

MethodPathDescription
GET/admin/api/groupsList groups
POST/admin/api/groupsCreate a group
GET/admin/api/groups/{id}Get group by ID
PUT/admin/api/groups/{id}Update group
DELETE/admin/api/groups/{id}Delete group
GET/admin/api/groups/{id}/membersList group members
POST/admin/api/groups/{id}/membersAdd a member to a group
DELETE/admin/api/groups/{id}/members/{user_id}Remove a member from a group

Audit Logs​

MethodPathDescription
GET/admin/api/audit-logsList audit log entries (paginated, filterable)

Deletion Requests​

MethodPathDescription
GET/admin/api/deletion-requestsList pending deletion requests
POST/admin/api/deletion-requests/{id}/approveApprove a deletion request
DELETE/admin/api/deletion-requests/{id}Cancel/reject a deletion request

Settings​

MethodPathDescription
GET/admin/api/settingsGet all runtime settings
PUT/admin/api/settingsUpdate runtime settings
POST/admin/api/settings/test-smtpSend a test email to verify SMTP configuration
GET/admin/api/settings/exportExport settings as JSON
POST/admin/api/settings/import/previewPreview settings import (dry run)
POST/admin/api/settings/import/applyApply imported settings

Stats​

MethodPathDescription
GET/admin/api/statsDashboard statistics (user count, session count, etc.)

Account API​

Self-service endpoints for authenticated users. Requires a bearer token with autentico-account or autentico-admin audience.

Profile​

MethodPathDescription
GET/account/api/profileGet current user profile
PUT/account/api/profileUpdate current user profile
POST/account/api/passwordChange password (rate-limited)

Sessions​

MethodPathDescription
GET/account/api/sessionsList current user's sessions
DELETE/account/api/sessions/{id}Revoke a specific session
POST/account/api/sessions/revoke-othersRevoke all other sessions

Passkeys​

MethodPathDescription
GET/account/api/passkeysList registered passkeys
DELETE/account/api/passkeys/{id}Delete a passkey
PATCH/account/api/passkeys/{id}Rename a passkey
POST/account/api/passkeys/register/beginBegin adding a new passkey
POST/account/api/passkeys/register/finishComplete adding a new passkey

MFA​

MethodPathDescription
GET/account/api/mfaGet MFA status (TOTP enrolled, etc.)
POST/account/api/mfa/totp/setupBegin TOTP enrollment -- returns QR code
POST/account/api/mfa/totp/verifyVerify TOTP code to complete enrollment
DELETE/account/api/mfa/totpDisable TOTP MFA (rate-limited)

Trusted Devices​

MethodPathDescription
GET/account/api/trusted-devicesList trusted devices
DELETE/account/api/trusted-devices/{id}Revoke a trusted device

Connected Providers (Federation)​

MethodPathDescription
GET/account/api/connected-providersList connected external identity providers
DELETE/account/api/connected-providers/{id}Disconnect an external provider

Account Settings​

MethodPathDescription
GET/account/api/settingsGet public account settings (no auth required)

Account Deletion​

MethodPathDescription
GET/account/api/deletion-requestGet current deletion request status
POST/account/api/deletion-requestRequest account deletion
DELETE/account/api/deletion-requestCancel a pending deletion request

Embedded UIs​

PathDescription
/admin/Admin UI (React SPA)
/account/Account UI (React SPA)
/onboardFirst-time admin account creation wizard
/Redirects to /account/