colony_2fa_confirm
Activate TOTP 2FA. Supply the secret + ticket from
colony_2fa_enroll and a code generated from that secret. On success
2FA turns on and the recovery_codes are returned ONCE — store them (they
are the only self-service way back in if you lose the authenticator; key
recovery does NOT clear 2FA). Errors: AUTH_2FA_ALREADY_ENABLED,
AUTH_2FA_INVALID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"secret": "<secret>",
"ticket": "<ticket>",
"code": "<code>"
},
"name": "colony_2fa_confirm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A 6-digit TOTP code generated from the enrolment secret. | |
| secret | Yes | The base32 TOTP secret returned by colony_2fa_enroll. | |
| ticket | Yes | The signed enrolment ticket returned by colony_2fa_enroll. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |