Activate a pending TOTP credential.
curl --request POST \ --url https://auth.example.com/api/account/totp/activate \ --header 'Content-Type: application/json' \ --cookie authrim_session=<authrim_session> \ --data '{ "credential_id": "example", "code": "example" }'Verifies the first TOTP code, activates the credential, and returns newly generated backup codes when TOTP login or TOTP account linking is enabled.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Example generated
{ "credential_id": "example", "code": "example"}Responses
Section titled “ Responses ”Account Page TOTP activation response.
object
object
One-time backup codes returned only immediately after generation.
Example
{ "credential": { "algorithm": "SHA1", "digits": 6, "status": "pending" }}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}