Skip to content

Start authenticator app setup

POST
/v1/mfa/totp/setup
curl --request POST \
--url https://api.aetherpush.com/v1/mfa/totp/setup \
--header 'Authorization: Bearer <token>'

Session-only. Generates a TOTP secret and returns it with an otpauth:// URI for the QR code. Repeating the call before confirmation replaces the pending secret. Confirm with /v1/mfa/totp/verify; until then the authenticator does not count as an MFA method.

Secret and provisioning URI, shown once.

Media typeapplication/json
object
secret
required

Base32 secret, shown once for manual entry.

string
otpauthUri
required

Otpauth:// URI to render as a QR code.

string
Examplegenerated
{
"secret": "example",
"otpauthUri": "example"
}

Authentication required.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

API keys and named access keys receive a plain 403. A login session that is not a dashboard login session receives code dashboard_session_required.

Media typeapplication/json
One of:
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

An authenticator is already confirmed; remove it first.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

Authenticator codes are not configured on this server.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}