Skip to main content
DELETE
/
v1
/
self
/
mfa
/
remove
Remove an MFA device
curl --request DELETE \
  --url https://api.arklow.io/v1/self/mfa/remove \
  --header 'Content-Type: application/json' \
  --header 'x-arklow-auth: <api-key>' \
  --data '
{
  "device_id": "<string>",
  "verification_type": "totp",
  "code": "<string>"
}
'
{
  "data": {
    "removed": true,
    "device": {
      "id": "<string>",
      "user_id": "<string>",
      "name": "<string>",
      "device_type": "totp",
      "confirmed_at": "2023-11-07T05:31:56Z",
      "last_used_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z"
    },
    "two_factor_enabled": true
  },
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

x-arklow-auth
string
header
required

Body

application/json
device_id
string
required
Pattern: ^[0-9]+$
verification_type
required
Available options:
totp
code
string
required
Minimum string length: 6

Response

200 - application/json

Default Response

data
object
required
errors
object[] | null
required