Authelia Second Factor API

TOTP, WebAuthn and Duo endpoints

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/secondfactor/totp/register Get TOTP setup details · TOTP Configuration Register #
Ask an LLM
“How do I get the TOTP secret and QR code for two-factor registration?”
“What algorithm and period does TOTP registration use?”
Tell an agent
Get the TOTP registration details.
Show the TOTP setup QR code and secret.
PUT /api/secondfactor/totp/register Generate a temporary TOTP configuration · TOTP Configuration Register #
Ask an LLM
“Can I choose the TOTP token length and period before registering?”
“How do I start setting up TOTP without saving it yet?”
Tell an agent
Generate a temporary TOTP configuration with period {period}.
Create a TOTP setup with {length} digits and algorithm {algorithm}.
POST /api/secondfactor/totp/register Validate a TOTP token · TOTP Configuration Register #
Ask an LLM
“How do I confirm the TOTP token my authenticator generated?”
“What happens to TOTP if I fail to validate it?”
Tell an agent
Validate TOTP token {token}.
Confirm the TOTP setup with token {token}.
DELETE /api/secondfactor/totp/register Discard a temporary TOTP setup · TOTP Configuration Register #
Ask an LLM
“Can I clear the TOTP setup I started but didn't validate?”
“Does deleting the temporary TOTP config affect my saved TOTP?”
Tell an agent destructive · confirm first
Delete the temporary TOTP registration.
Discard my unfinished TOTP setup.
GET /api/secondfactor/totp Get TOTP settings for the UI · TOTP Configuration #
Ask an LLM
“How many digits and how often does my TOTP token change?”
“What period and digits does the TOTP component expect?”
Tell an agent
Get my TOTP configuration.
Show the TOTP period and digits.
POST /api/secondfactor/totp Submit a TOTP token for 2FA · Second Factor Authentication - TOTP #
Ask an LLM
“How do I pass my TOTP code to complete two-factor authentication?”
“Can I send a TOTP token back to the target URL?”
Tell an agent
Submit TOTP token {token} for second factor.
Complete TOTP 2FA with token {token} to {targetURL}.
DELETE /api/secondfactor/totp Remove my TOTP configuration · Second Factor Authentication - TOTP #
Ask an LLM
“How do I remove TOTP from my account?”
“Can I delete my TOTP configuration from the database?”
Tell an agent destructive · confirm first
Delete my TOTP configuration.
Remove TOTP from my account.
GET /api/secondfactor/webauthn Start WebAuthn 2FA · Second Factor Authentication - WebAuthn #
Ask an LLM
“How do I begin signing in with a security key?”
“What does the WebAuthn start endpoint return?”
Tell an agent
Start WebAuthn second factor authentication.
Get the WebAuthn challenge for my security key.
POST /api/secondfactor/webauthn Complete WebAuthn 2FA · Second Factor Authentication - WebAuthn #
Ask an LLM
“How do I finish WebAuthn with the credential assertion from my browser?”
“Can I pass the WebAuthn response back to complete login?”
Tell an agent
Complete WebAuthn with response {response}.
Finish WebAuthn 2FA using {response} to {targetURL}.
GET /api/secondfactor/webauthn/credentials List my WebAuthn credentials · WebAuthn Credentials #
Ask an LLM
“Which security keys are registered on my account?”
“What WebAuthn credentials do I have?”
Tell an agent
List my WebAuthn credentials.
Show the security keys registered for me.
PUT /api/secondfactor/webauthn/credential/register Start registering a WebAuthn credential · WebAuthn Credential Registration (Attestation) #
Ask an LLM
“Can I check a WebAuthn credential description before registering?”
“How do I prepare to register a security key?”
Tell an agent
Check WebAuthn credential description {description}.
Start registering a WebAuthn credential described as {description}.
POST /api/secondfactor/webauthn/credential/register Finish registering a WebAuthn credential · WebAuthn Credential Registration (Attestation) #
Ask an LLM
“How do I finalize the registration of a security key?”
“What does the WebAuthn credential registration response contain?”
Tell an agent
Register WebAuthn credential {rawId} with response {response}.
Finalize WebAuthn registration for {rawId} using {response} and type {type}.
DELETE /api/secondfactor/webauthn/credential/register Clear WebAuthn registration data · WebAuthn Credential Registration (Attestation) #
Ask an LLM
“Can I clear the WebAuthn registration data from my session?”
“What does deleting WebAuthn registration data remove?”
Tell an agent destructive · confirm first
Delete the WebAuthn registration data from my session.
Clear unfinished WebAuthn credential registration.
PUT /api/secondfactor/webauthn/credential/{credentialID} Rename a WebAuthn credential · WebAuthn Credential #
Ask an LLM
“Can I rename a security key I already registered?”
“How do I change the description of a WebAuthn credential?”
Tell an agent
Rename WebAuthn credential {credentialID} to {description}.
Update the description of WebAuthn credential {credentialID}.
DELETE /api/secondfactor/webauthn/credential/{credentialID} Delete a WebAuthn credential · WebAuthn Credential #
Ask an LLM
“How do I remove a security key from my account?”
“Can I delete a WebAuthn credential by ID?”
Tell an agent destructive · confirm first
Delete WebAuthn credential {credentialID}.
Remove the security key {credentialID} from my account.
GET /api/secondfactor/duo Get my preferred Duo device and method · Second Factor Authentication - Duo Mobile Push #
Ask an LLM
“Which Duo device and method is my account set to use?”
“What does the Duo second factor endpoint return?”
Tell an agent
Get my preferred Duo device and method.
Show my Duo 2FA settings.
POST /api/secondfactor/duo Send a Duo push for 2FA · Second Factor Authentication - Duo Mobile Push #
Ask an LLM
“How do I approve a Duo push notification for login?”
“Can I send a Duo passcode for second factor?”
Tell an agent
Send a Duo push for second factor.
Approve Duo with passcode {passcode} to {targetURL}.
GET /api/secondfactor/duo_devices List available Duo devices · Second Factor Authentication - Duo Mobile Push #
Ask an LLM
“Which Duo devices and methods can I choose from?”
“What devices does Duo report as available?”
Tell an agent
List my available Duo devices and capabilities.
Show the Duo devices I can use for 2FA.
POST /api/secondfactor/duo_device Set my preferred Duo device and method · Second Factor Authentication - Duo Mobile Push #
Ask an LLM
“How do I change which Duo device my account uses?”
“Can I set my preferred Duo method for 2FA?”
Tell an agent
Set my preferred Duo device to {device} using method {method}.
Make {device} my Duo 2FA device with method {method}.
POST /api/secondfactor/password Complete 2FA with my password · Second Factor Authentication - Password #
Ask an LLM
“Can I use my password as a second factor?”
“How do I pass my password for 2FA?”
Tell an agent
Complete 2FA with password {password}.
Submit my password {password} for second factor.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/authelia:authelia-second-factor-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

authelia-second-factor-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Authelia Second Factor API
  description: Authelia is an open-source authentication and authorization server and portal fulfilling the identity and access management (IAM) role of information security in providing multi-factor authentication and single sign-on (SSO) for your applications via a web portal. Authelia is an OpenID Connect 1.0 Provider which is OpenID Certified™ allowing comprehensive integrations, and acts as a companion for common reverse proxies.
  contact:
    name: Support
    url: https://www.authelia.com/contact/
    email: team@authelia.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 1.0.0
servers:
- url: https://auth.example.com
  description: Authelia API
tags:


# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/authelia/openapi/authelia-second-factor-api-openapi.yml