Skip to main content
Changes the label of one two-factor factor. To get factor IDs, call Get two-factor status. This call needs no proof, because a label grants no access. It does not end enrollments in progress.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”factor_id”stringrequiredID (UUID) of the factor to renamec9f0f895-fb98-4b91-a3b5-6e9e7c2f1d4a
”label”stringrequiredNew name for the factor. 1 to 64 characters, with no control characters and no leading or trailing spacesPhone
”expiry_window”integeroptionalSignature expiry in milliseconds30000
Sign this request with the account’s own key. Agent wallets cannot sign it. The account must be a main account.

Signing

Sign factor_id and label as the data object. For the request above, the message to sign is:

Response

  • Status 200: Factor renamed
  • Status 400: Invalid request parameters, label, or signature
  • Status 403: The account is a subaccount, or it does not exist
  • Status 422: No factor on the account has this factor_id (unknown factor)
  • Status 500: Internal server error
  • Status 503: The two-factor service is unavailable. Retry later

Code Example (Python)