Skip to main content
POST
/
api
/
v1
/
pub
/
{project_id}
/
auth
/
totp
/
verify-setup
Verify TOTP setup
curl --request POST \
  --url https://org-api.hexoforge.dev/api/v1/pub/{project_id}/auth/totp/verify-setup \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "code": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://orchestrator-docs.hexoforge.dev/llms.txt

Use this file to discover all available pages before exploring further.

Confirms TOTP registration with a code from the authenticator. Requires X-API-Key and Bearer access token.
Send both X-API-Key and Authorization: Bearer.

Request body

code
string
required
Six-digit TOTP code.

Response

204 No Content — empty body.

Status codes

CodeMeaning
204TOTP enabled
400No pending setup or TOTP already enabled
401Invalid code or token