Initiate account recovery
POST
/api/v1/recovery/initiate
const url = 'http://localhost:3001/api/v1/recovery/initiate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"backup_code":"example","new_wallet_address":"example","new_wallet_signature":"example","nonce":"example","old_wallet_address":"example","recovery_method":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/v1/recovery/initiate \ --header 'Content-Type: application/json' \ --data '{ "backup_code": "example", "new_wallet_address": "example", "new_wallet_signature": "example", "nonce": "example", "old_wallet_address": "example", "recovery_method": "example" }'Start recovery process via social guardians or backup codes
Request Bodyrequired
Section titled “Request Bodyrequired”Recovery initiation details
Media typeapplication/json
object
backup_code
string
new_wallet_address
string
new_wallet_signature
string
nonce
string
old_wallet_address
string
recovery_method
string
Examplegenerated
{ "backup_code": "example", "new_wallet_address": "example", "new_wallet_signature": "example", "nonce": "example", "old_wallet_address": "example", "recovery_method": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
expires_at
string
message
string
request_id
string
success
boolean
time_lock_until
string
Examplegenerated
{ "expires_at": "example", "message": "example", "request_id": "example", "success": true, "time_lock_until": "example"}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Forbidden
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Not Found
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}