> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# WebhookSubscriptionCondition Schema

> One condition on an event metric. Includes required fields, field types, schema references, and generated JSON details from the 0xArchive OpenAPI contract.

Source OpenAPI: 0xArchive API 1.7.0; 218 paths; 210 component schemas.

One condition on an event metric. The operator vocabulary is grouped by the metric's type; see `operators` on the event type.

## Required Fields

| Field | Type | Description |
| - | - | - |
| `metric` | string | A metric declared by the event type. |
| `op` | string | Comparison to apply. |

## JSON Schema

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "WebhookSubscriptionCondition",
  "description": "One condition on an event metric. The operator vocabulary is grouped by the metric's type; see `operators` on the event type.",
  "type": "object",
  "required": [
    "metric",
    "op"
  ],
  "properties": {
    "metric": {
      "description": "A metric declared by the event type.",
      "type": "string",
      "example": "notional_usd"
    },
    "op": {
      "description": "Comparison to apply. Symbol spellings such as `>=` are accepted on the way in and stored in the canonical spelling shown here.",
      "type": "string",
      "enum": [
        "greater_than",
        "greater_than_or_equal",
        "less_than",
        "less_than_or_equal",
        "equal",
        "not_equal",
        "between",
        "not_between",
        "in",
        "not_in",
        "contains",
        "not_contains",
        "starts_with",
        "ends_with",
        "before",
        "after",
        "is_empty",
        "is_not_empty"
      ],
      "example": "greater_than_or_equal"
    },
    "value": {
      "description": "What to compare against. A number, string, boolean or RFC 3339 timestamp for a single value comparison; a two entry `[low, high]` list for `between` and `not_between`; a non-empty list for `in` and `not_in`. Omitted for `is_empty` and `is_not_empty`.",
      "example": 100000
    }
  }
}
```

## Referenced By

Use this shared schema with the generated component index and route-specific endpoint pages during implementation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.