Create policy
Create a new policy.
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.
SDK methods
Learn more about creating policies using our SDKs here.Authorizations
Basic Auth header with your app ID as the username and your app secret as the password.
Headers
ID of your Privy app.
Idempotency keys ensure API requests are executed only once within a 24-hour window.
Body
Version of the policy. Currently, 1.0 is the only version.
1.0 Name to assign to policy.
1 - 50The wallet chain types.
ethereum, solana, cosmos, stellar, sui, aptos, movement, tron, bitcoin-segwit, bitcoin-taproot, pearl, near, ton, starknet, spark Owner input specifying a Privy user ID.
- OwnerInputUser
- OwnerInputPublicKey
The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.
Response
Created policy object.
A policy for controlling wallet operations.
Version of the policy. Currently, 1.0 is the only version.
1.0 Name to assign to policy.
1 - 50The wallet chain types.
ethereum, solana, cosmos, stellar, sui, aptos, movement, tron, bitcoin-segwit, bitcoin-taproot, pearl, near, ton, starknet, spark Unique ID of the created policy. This will be the primary identifier when using the policy in the future.
24The key quorum ID of the owner of the policy.
Unix timestamp of when the policy was created in milliseconds.

