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.
50
The chain type the policy applies to.
ethereum
, solana
The owner of the resource. If you provide this, do not specify an owner_id as it will be generated automatically. When updating a wallet, you can set the owner to null to remove the owner. The P-256 public key of the owner of the resource. If you provide this, do not specify an owner_id as it will be generated automatically.
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.
Version of the policy. Currently, 1.0 is the only version.
1.0
Name to assign to policy.
50
The chain type the policy applies to.
ethereum
, solana
Unique ID of the created policy. This will be the primary identifier when using the policy in the future.
24
The key quorum ID of the owner of the policy.
Unix timestamp of when the policy was created in milliseconds.