SetupOTP
POST
header
X-API-Key<token>API key for protected endpoints, supplied in the X-API-Key header.
user_id?user_idResponse Body
200application/json
Success
type: unknown
{
"$ref": "#/components/schemas/auth.v1.SetupOTPResponse",
"$ref-value": {
"type": "object",
"properties": {
"secret": {
"type": "string",
"title": "secret"
},
"qr_code_url": {
"type": "string",
"title": "qr_code_url"
},
"backup_codes": {
"type": "array",
"items": {
"type": "string"
},
"title": "backup_codes"
}
},
"title": "SetupOTPResponse",
"additionalProperties": false
}
}default
curl -X POST 'https://api.rixl.com/auth/v1/users/current/totp/setup'Success
application/json
{
"$ref": "#/components/schemas/auth.v1.SetupOTPResponse",
"$ref-value": {
"type": "object",
"properties": {
"secret": {
"type": "string",
"title": "secret"
},
"qr_code_url": {
"type": "string",
"title": "qr_code_url"
},
"backup_codes": {
"type": "array",
"items": {
"type": "string"
},
"title": "backup_codes"
}
},
"title": "SetupOTPResponse",
"additionalProperties": false
}
}