Get the Recovery Agent for a particular World ID given its leaf index.
curl --request POST \
--url https://api.example.com/recovery-agent \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "0x1"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({leaf_index: '0x1'})
};
fetch('https://api.example.com/recovery-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_agent": "0x0"
}World ID Indexer
Get the Recovery Agent for a particular World ID given its leaf index.
If no recovery agent is set, the zero address is returned.
POST
/
recovery-agent
Get the Recovery Agent for a particular World ID given its leaf index.
curl --request POST \
--url https://api.example.com/recovery-agent \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "0x1"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({leaf_index: '0x1'})
};
fetch('https://api.example.com/recovery-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_agent": "0x0"
}Body
application/json
Response
200 - application/json
Was this page helpful?