apistockdocs
v0.4 GitHub apistock.dev
API reference/Auth

Turn off the authenticator app

DELETE /v1/auth/mfa/totp
Requires the password and a code, recovery code or passkey response (start one with POST /v1/auth/passkeys/verification); signs out other devices. Not allowed while a role requires two-factor authentication and no passkey is left.

Authorization

bearer
Authorizationheader · stringrequired

Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Body

application/json
passwordstringrequired
maxLength: 512
codestring

A code from the authenticator app

maxLength: 16
passkeyobject

A passkey's response, instead of code

2 fields
ceremony_tokenstringrequired

From POST /v1/auth/login/mfa/passkey when signing in, or POST /v1/auth/passkeys/verification when signed in

maxLength: 256
credentialobjectrequired

The PublicKeyCredential from navigator.credentials.get(), as JSON

recovery_codestring

A recovery code, instead of code

maxLength: 32

Responses

errors: application/problem+json
204

No Content

401

Unauthorized

409

Conflict

422

Unprocessable Entity

429

Too Many Requests

500

Internal Server Error

503

Service Unavailable

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close