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

Start setting up an authenticator app

POST /v1/auth/mfa/totp
Requires the password. Returns a secret, an otpauth:// URI and a QR code image, shown once. It turns on when a code is confirmed with POST /v1/auth/mfa/totp/confirm.

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

Responses

errors: application/problem+json
200

OK

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