Skip to main content
POST
/
v1
/
condition_sets
curl --request POST \
--url https://api.privy.io/v1/condition_sets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '{
"name": "Approved Recipients",
"owner_id": "asgkan0r7gi0wdbvf9cw8qio"
}'
{
"id": "qvah5m2hmp9abqlxdmfiht90",
"name": "Approved Recipients",
"owner_id": "asgkan0r7gi0wdbvf9cw8qio",
"created_at": 1761271537642
}

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Headers

privy-app-id
string
required

ID of your Privy app.

Body

application/json
name
string
required

Name to assign to condition set.

Required string length: 1 - 100
owner

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 owner of the condition set. Provide either "owner" or "owner_id", but not both. At least one is required. 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.

owner_id
string

The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner. The key quorum ID to set as the owner of the condition set. Provide either "owner" or "owner_id", but not both. At least one is required.

Response

200 - application/json

Created condition set object.

id
string
required

Unique ID of the created condition set. This will be the primary identifier when using the condition set in the future.

Required string length: 24
name
string
required

Name of the condition set.

Required string length: 1 - 100
owner_id
string
required

The key quorum ID of the owner of the condition set.

created_at
number
required

Unix timestamp of when the condition set was created in milliseconds.