Authentication

Remove a two-factor method

Changed on

Removes an enrolled method. Requires the current password, a live authenticator code, or one of the existing recovery codes (which is then consumed), so that a stolen session cannot silently disable two-factor authentication. Removing the last method also discards the recovery codes.

Copy as Markdown Open in ChatGPT Open in Claude

delete/v1/users/self/mfa/{customId}

Request

  • Base URL
    https://api.assinafy.com.br
  • URL
    https://api.assinafy.com.br/v1/users/self/mfa/{customId}
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key

Path parameters

customIdstring required

Request body

passwordstring password
codestring

A live 6-digit authenticator code, or one of the existing recovery codes.

Example request

{
  "code": "123456"
}

Response

Method removed

statusinteger

HTTP status code, mirrored in the body.

messagestring

Human-readable message; empty on success.

Example response

{
  "status": 200
}

Changes