Update auto-recovery option (Tier 4a — PIN/biometric re-entry + cooling)
PUT
/v1/account/auto-recovery
const url = 'https://api.parasta.io/v1/account/auto-recovery';const options = { method: 'PUT', headers: { 'Idempotency-Key': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"enabled":true,"consentReinforcement":"pin"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.parasta.io/v1/account/auto-recovery \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "enabled": true, "consentReinforcement": "pin" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Idempotency-Key
required
string format: uuid
IETF draft-ietf-httpapi-idempotency-key-header. Generated freshly by the client for each request.
Request Body required
Section titled “Request Body required ” Media type application/json
object
enabled
required
boolean
consentReinforcement
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
enabled
boolean
appliedAt
string format: date-time
coolingPeriodSec
integer
Example generated
{ "enabled": true, "appliedAt": "2026-04-15T12:00:00Z", "coolingPeriodSec": 1}Forced OFF due to external order suspension
Media type application/json
object
code
required
Error code prefixed with the service namespace (AUTH_, ACCOUNT_, WALLET_, DID_, ASSET_, TRANSFER_, EXCHANGE_).
string
message
required
string
details
object
key
additional properties
any
Example generated
{ "code": "example", "message": "example", "details": {}}