v46

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-211591,0051.4 MB
Aggregations

Create aggregation

Create a new aggregation to track and measure metrics over a time window.

post/v1/aggregations

Headers

privy-app-idstring required

ID of your Privy app.

privy-idempotency-keystring

Idempotency keys ensure API requests are executed only once within a 24-hour window.

Request body

method'eth_signTransaction' | 'eth_signUserOperation' required

The RPC method this aggregation applies to.

namestring required

The name of the aggregation.

owner_idstring cuid2 nullable

The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.

Example request

{
  "conditions": [
    {
      "field": "content"
    }
  ]
}

Response

Created aggregation object.

created_atnumber required

Unix timestamp of when the aggregation was created in milliseconds.

idstring required

Unique ID of the aggregation.

method'eth_signTransaction' | 'eth_signUserOperation' required

The RPC method this aggregation applies to.

namestring required

The name of the aggregation.

owner_idstring nullable required

The key quorum ID of the owner of the aggregation.

Example response

{
  "conditions": [
    {
      "field": "content"
    }
  ]
}