Skip to main content
POST
/
api
/
v1
/
pub
/
{project_id}
/
auth
/
totp
/
setup
Start TOTP setup
curl --request POST \
  --url https://org-api.hexoforge.dev/api/v1/pub/{project_id}/auth/totp/setup \
  --header 'X-API-Key: <api-key>'
{
  "secret": "<string>",
  "uri": "<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.

Creates a TOTP secret in a pending state. Requires X-API-Key and Bearer access token.
Send both X-API-Key and Authorization: Bearer. Complete setup with Verify TOTP setup within 5 minutes.

Response

200 OK
{
  "secret": "JBSWY3DPEHPK3PXP",
  "uri": "otpauth://totp/MyApp:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=MyApp"
}
secret
string
Base32 secret for manual entry.
uri
string
otpauth URI for QR apps.

Status codes

CodeMeaning
200Secret generated (pending verification)
400TOTP already enabled
401Invalid token
403TOTP disabled for project, IP blocked, or firewall deny