---
title: "Get the Recovery Agent for a particular World ID given its leaf index."
method: POST
path: "/recovery-agent"
tags: ["indexer"]
---

# Get the Recovery Agent for a particular World ID given its leaf index.

`POST /recovery-agent`

If no recovery agent is set, the zero address is returned.

## Request body

- IndexerQueryRequest — Query for the indexer based on a leaf index. Used for getting inclusion proofs and signature nonces.
  - `leaf_index` string, hex, required — The leaf index to query (from the `WorldIDRegistry`). Accepts decimal or `0x`/`0X`-prefixed hex input.

## Response `200`

- IndexerRecoveryAgentResponse — Response containing the recovery agent from the indexer.
  - `recovery_agent` string, hex, required — The recovery agent for the World ID. Please note this may be the zero address if no recovery agent is set for the account. Serialized as a canonical `0x`-prefixed hex string.

---

[API](https://skmtc.net/worldcoin/apis/world-id-indexer.md) · [All operations](https://skmtc.net/worldcoin/apis/world-id-indexer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worldcoin/world-id-indexer/revisions/744f19e75fe2/schema)
