Skip to main content
POST
/
v1
/
self
/
mfa
/
regenerate
/
totp
Regenerate MFA backup codes
curl --request POST \
  --url https://api.arklow.io/v1/self/mfa/regenerate/totp \
  --header 'Content-Type: application/json' \
  --header 'x-arklow-auth: <api-key>' \
  --data '
{
  "device_id": "<string>"
}
'
{
  "data": {
    "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"
    },
    "backup_codes": [
      "<string>"
    ],
    "session_mfa_not_after": "2023-11-07T05:31:56Z"
  },
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

x-arklow-auth
string
header
required

Body

application/json
device_id
string
required
Pattern: ^[0-9]+$

Response

200 - application/json

Default Response

data
object
required
errors
object[] | null
required