Idempotency keys ensure your API requests to Privy aren’t executed multiple times, preventing duplicated transactions. When provided, Privy guarantees that a request with the same idempotency key will only be processed once within a 24-hour window.Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
Required headers
When using idempotency keys with the REST API, include the following header with your request:A unique identifier for the request, up to 256 characters. We recommend using a V4 UUID.
When are they necessary?
Idempotency keys are recommended for:- Any
POSTrequest that triggers state changes or transactions - Scenarios where network issues might cause request retries
- Critical operations where duplicate execution would be problematic
How idempotency works
First Request
When Privy receives a request with a new idempotency key, it processes the request normally and
stores both the request details and response for 24 hours.
Subsequent Requests
If the same idempotency key is used again within 24 hours:
- If the request body matches the original request: Privy returns the stored response without re-executing the operation
- If the request body differs: Privy returns a 400 error indicating invalid use of the key

