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

# Get the pending recovery agent update for a particular World ID given its leaf index.

`POST /pending-recovery-agent`

If no recovery agent update is pending, the zero address and zero execute-after timestamp are 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`

- IndexerPendingRecoveryAgentResponse — Response containing the pending recovery agent from the indexer.
  - `execute_after` string, hex, required — The earliest timestamp at which the pending recovery agent update may be executed. Please note this may be zero if no recovery agent update is pending. Serialized as a canonical `0x`-prefixed hex string.
  - `pending_recovery_agent` string, hex, required — The pending recovery agent for the World ID. Please note this may be the zero address if no recovery agent update is pending. 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)
