Key quorums

Create key quorum

Create a new key quorum.

post/v1/key_quorums

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/key_quorums
  • Auth
    HTTP basic

Headers

privy-app-idstring required

ID of your Privy app.

Request body

public_keysstring[]

List of P-256 public keys of the keys that should be authorized to sign on the key quorum, in base64-encoded DER format. At least one of user_ids, public_keys, or key_quorum_ids is required.

authorization_thresholdnumber

The number of keys that must sign for an action to be valid. Must be less than or equal to total number of key quorum members.

display_namestring
user_idsstring[]

List of user IDs of the users that should be authorized to sign on the key quorum. At least one of user_ids, public_keys, or key_quorum_ids is required.

key_quorum_idsstring[]

List of key quorum IDs that should be members of this key quorum. Key quorums can only be nested 1 level deep. At least one of user_ids, public_keys, or key_quorum_ids is required.

Response

Newly created key quorum.

idstring cuid2 required
display_namestring nullable required
authorization_thresholdnumber nullable required
user_idsstring[] nullable required
key_quorum_idsstring[]

List of nested key quorum IDs that are members of this key quorum.

Example response

{
  "id": "tb54eps4z44ed0jepousxi4n",
  "display_name": "Prod key quorum",
  "authorization_threshold": 1,
  "authorization_keys": [
    {
      "public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==",
      "display_name": null
    },
    {
      "public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==",
      "display_name": null
    }
  ],
  "user_ids": null
}

Changes

No recorded changes to this operation across all 60 revisions of this API.