> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/api-references/readme/api-reference-42/models.md). Agents can also search and read this documentation through its [MCP server](https://developer.emporix.io/~gitbook/mcp).

# Models

## The AbstractWebhookConfig object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"AbstractWebhookConfig":{"type":"object","properties":{"active":{"type":"boolean","description":"Indicates whether a given configuration is active. Only one configuration can be active at a time."},"provider":{"$ref":"#/components/schemas/Provider","description":"Indicates which provider should be used."}}},"Provider":{"type":"string","enum":["SVIX_SHARED","SVIX","HTTP"],"description":"Webhook provider strategy. Maps to configuration types as follows:\n\n* `SVIX` – `svix`\n* `SVIX_SHARED` – `svix_shared`\n* `HTTP` – `http`"}}}}
```

## The EmptyConfiguration object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"EmptyConfiguration":{"type":"object","description":"SVIX_SHARED config"}}}}
```

## The SvixConfig object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"}}}}
```

## The EventConfiguration object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}}}}}
```

## The EventsConfiguration object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}}}}}
```

## The HttpHeaderConfigValue object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}}}}}
```

## The HttpHeadersConfig object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}}}}}
```

## The HttpConfig object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}}}}}
```

## The Configuration object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"Configuration":{"type":"object","oneOf":[{"$ref":"#/components/schemas/EmptyConfiguration"},{"$ref":"#/components/schemas/SvixConfig"},{"$ref":"#/components/schemas/HttpConfig"}]},"EmptyConfiguration":{"type":"object","description":"SVIX_SHARED config"},"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"},"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}}}}}
```

## The WebhookConfigPartialUpdates object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookConfigPartialUpdates":{"type":"array","items":{"$ref":"#/components/schemas/WebhookConfigPartialUpdate"}},"WebhookConfigPartialUpdate":{"type":"object","properties":{"op":{"type":"string","enum":["REMOVE","UPSERT"],"description":"Kind of the update operation"},"path":{"type":"string","enum":["/active","/configuration","/configuration/svix/apiKey","/configuration/http/headers","/configuration/http/destinationUrl","/configuration/http/secretKey","/configuration/http/eventsConfiguration","/configuration/http/eventsConfiguration/{eventType}","/configuration/http/eventsConfiguration/{eventType}/destinationUrl","/configuration/http/eventsConfiguration/{eventType}/secretKey","/configuration/http/eventsConfiguration/{eventType}/headers","/configuration/http/eventsConfigurationEntry","/configuration/http/eventsConfigurationEntry/{entryId}","/configuration/http/eventsConfigurationEntry/{entryId}/destinationUrl","/configuration/http/eventsConfigurationEntry/{entryId}/secretKey","/configuration/http/eventsConfigurationEntry/{entryId}/headers","/configuration/http/eventsConfigurationEntry/{entryId}/filter","/configuration/http/eventsConfigurationEntry/{entryId}/excludedFields","/configuration/http/eventsConfigurationEntry/{entryId}/name","/configuration/http/eventsConfigurationEntry/{entryId}/active"],"description":"Path identifying which properties should be updated.\nUse `UPSERT` on `/configuration/http/eventsConfigurationEntry` (no id) to create a new entry — body must omit `id` (server-generated); `REMOVE` on this path is rejected.\nPrefer `/configuration/http/eventsConfigurationEntry/{entryId}` paths to address a specific existing entry.\nUse `UPSERT` on `/configuration/http/eventsConfigurationEntry/{entryId}/active` with a boolean value to deactivate (`false`) or reactivate (`true`) a single endpoint without removing it; the value is required.\nLegacy `/configuration/http/eventsConfiguration/{eventType}` paths remain supported when at most one entry exists for that event type; they return `409` when multiple entries exist.\nCreate/update can return `400` for a client-supplied entry id or an invalid JsonPath `filter`."},"value":{"type":"object","anyOf":[{"$ref":"#/components/schemas/SvixConfig"},{"$ref":"#/components/schemas/HttpConfig"},{"type":"string","description":"Svix Api Key"},{"type":"boolean","description":"Active flag (config-level on `/active`, per-endpoint on `/configuration/http/eventsConfigurationEntry/{entryId}/active`)"},{"type":"string","description":"Destination URL where event should be sent"},{"type":"string","description":"Secret key needed to sign messages sent via HTTP requests."},{"type":"string","description":"JsonPath filter expression"},{"type":"array","items":{"type":"string"},"description":"Per-entry excluded fields"},{"$ref":"#/components/schemas/EventsConfiguration"},{"$ref":"#/components/schemas/EventConfiguration"}]}},"required":["op","path"]},"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"},"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}}}}}
```

## The WebhookConfigPartialUpdate object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookConfigPartialUpdate":{"type":"object","properties":{"op":{"type":"string","enum":["REMOVE","UPSERT"],"description":"Kind of the update operation"},"path":{"type":"string","enum":["/active","/configuration","/configuration/svix/apiKey","/configuration/http/headers","/configuration/http/destinationUrl","/configuration/http/secretKey","/configuration/http/eventsConfiguration","/configuration/http/eventsConfiguration/{eventType}","/configuration/http/eventsConfiguration/{eventType}/destinationUrl","/configuration/http/eventsConfiguration/{eventType}/secretKey","/configuration/http/eventsConfiguration/{eventType}/headers","/configuration/http/eventsConfigurationEntry","/configuration/http/eventsConfigurationEntry/{entryId}","/configuration/http/eventsConfigurationEntry/{entryId}/destinationUrl","/configuration/http/eventsConfigurationEntry/{entryId}/secretKey","/configuration/http/eventsConfigurationEntry/{entryId}/headers","/configuration/http/eventsConfigurationEntry/{entryId}/filter","/configuration/http/eventsConfigurationEntry/{entryId}/excludedFields","/configuration/http/eventsConfigurationEntry/{entryId}/name","/configuration/http/eventsConfigurationEntry/{entryId}/active"],"description":"Path identifying which properties should be updated.\nUse `UPSERT` on `/configuration/http/eventsConfigurationEntry` (no id) to create a new entry — body must omit `id` (server-generated); `REMOVE` on this path is rejected.\nPrefer `/configuration/http/eventsConfigurationEntry/{entryId}` paths to address a specific existing entry.\nUse `UPSERT` on `/configuration/http/eventsConfigurationEntry/{entryId}/active` with a boolean value to deactivate (`false`) or reactivate (`true`) a single endpoint without removing it; the value is required.\nLegacy `/configuration/http/eventsConfiguration/{eventType}` paths remain supported when at most one entry exists for that event type; they return `409` when multiple entries exist.\nCreate/update can return `400` for a client-supplied entry id or an invalid JsonPath `filter`."},"value":{"type":"object","anyOf":[{"$ref":"#/components/schemas/SvixConfig"},{"$ref":"#/components/schemas/HttpConfig"},{"type":"string","description":"Svix Api Key"},{"type":"boolean","description":"Active flag (config-level on `/active`, per-endpoint on `/configuration/http/eventsConfigurationEntry/{entryId}/active`)"},{"type":"string","description":"Destination URL where event should be sent"},{"type":"string","description":"Secret key needed to sign messages sent via HTTP requests."},{"type":"string","description":"JsonPath filter expression"},{"type":"array","items":{"type":"string"},"description":"Per-entry excluded fields"},{"$ref":"#/components/schemas/EventsConfiguration"},{"$ref":"#/components/schemas/EventConfiguration"}]}},"required":["op","path"]},"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"},"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}}}}}
```

## The ConfigurationGet object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"ConfigurationGet":{"oneOf":[{"type":"object","properties":{"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"secretKeyExists":{"type":"boolean","description":"Information if secret key for securing the messages has been provided."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers."},"eventsConfiguration":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry."},"eventType":{"type":"string","description":"Type of the event. Multiple entries may share the same `eventType`."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"secretKeyExists":{"type":"boolean","description":"Information if secret key for securing the messages has been provided."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate. When omitted, the entry matches every event of the given `eventType`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Per-entry field exclusion list. Omitted or `null` means inherit the event-subscription exclusions. An empty array `[]` overrides with no exclusions for this target."},"active":{"type":"boolean","description":"Per-endpoint activation switch. Always returned as an explicit boolean; entries created before the flag existed report `true`. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries, unless the service switched the entry off after failing deliveries (`suspendedAt` is set). In that case, its events are stored as failed messages."},"suspendedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Date and time when the service switched the entry off because its target kept failing. Absent otherwise. Setting `active` to `true` removes it."},"deliveryStatus":{"$ref":"#/components/schemas/DeliveryStatus"}}}},"deliveryStatus":{"$ref":"#/components/schemas/DeliveryStatus"}}}]},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"DeliveryStatus":{"type":"object","readOnly":true,"description":"Delivery status of a target. Returned only when the `expand` query parameter contains `deliveryStatus`. The status is returned in the following places:\n* on each `eventsConfiguration` entry that has an `id`\n* on the HTTP `configuration` for the global destination\n* at the top level of `svix` and `svix_shared` configurations","properties":{"status":{"type":"string","enum":["ACTIVE","FAILING"],"description":"* `ACTIVE` – Events are delivered to the target.\n* `FAILING` – Deliveries to the target fail. While the number of failed deliveries in a row is below the failure threshold, the service still sends events to the target. When the threshold is reached, the service stops calling the target and stores its events as failed messages until you switch its configuration or entry back on."},"consecutiveFailures":{"type":"integer","description":"Number of failed deliveries in a row. Reset to `0` after a successful delivery. A target that never failed returns `ACTIVE` and `0`."},"lastErrorMessage":{"type":"string","description":"Error message of the last failed delivery."},"lastErrorStatusCode":{"type":"integer","description":"HTTP status code returned by the target on the last failed delivery, if any."},"lastFailureAt":{"type":"string","format":"date-time","description":"Date and time of the last failed delivery."},"failingSince":{"type":"string","format":"date-time","description":"Date and time when the target became `FAILING`."}}}}}}
```

## The DeliveryStatus object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"DeliveryStatus":{"type":"object","readOnly":true,"description":"Delivery status of a target. Returned only when the `expand` query parameter contains `deliveryStatus`. The status is returned in the following places:\n* on each `eventsConfiguration` entry that has an `id`\n* on the HTTP `configuration` for the global destination\n* at the top level of `svix` and `svix_shared` configurations","properties":{"status":{"type":"string","enum":["ACTIVE","FAILING"],"description":"* `ACTIVE` – Events are delivered to the target.\n* `FAILING` – Deliveries to the target fail. While the number of failed deliveries in a row is below the failure threshold, the service still sends events to the target. When the threshold is reached, the service stops calling the target and stores its events as failed messages until you switch its configuration or entry back on."},"consecutiveFailures":{"type":"integer","description":"Number of failed deliveries in a row. Reset to `0` after a successful delivery. A target that never failed returns `ACTIVE` and `0`."},"lastErrorMessage":{"type":"string","description":"Error message of the last failed delivery."},"lastErrorStatusCode":{"type":"integer","description":"HTTP status code returned by the target on the last failed delivery, if any."},"lastFailureAt":{"type":"string","format":"date-time","description":"Date and time of the last failed delivery."},"failingSince":{"type":"string","format":"date-time","description":"Date and time when the target became `FAILING`."}}}}}}
```

## The DeliveryTargetType object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"DeliveryTargetType":{"type":"string","enum":["ENTRY","HTTP_GLOBAL","SVIX","SVIX_SHARED"],"description":"Type of the delivery target:\n* `ENTRY` – An `eventsConfiguration` entry of an HTTP configuration.\n* `HTTP_GLOBAL` – The global `destinationUrl` of an HTTP configuration.\n* `SVIX` – A Svix Custom Account configuration.\n* `SVIX_SHARED` – A Svix Emporix Shared Account configuration."}}}}
```

## The FailedMessage object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"FailedMessage":{"type":"object","description":"An event that the service stored instead of delivering it.","properties":{"id":{"type":"string","description":"Failed message's unique identifier. A failed delivery of the same event to the same target is stored only once."},"targetId":{"type":"string","description":"Identifier of the delivery target, in one of the following formats:\n* `{configCode}:{entryId}` for an entry\n* `{configCode}:global` for the global HTTP destination\n* `{configCode}:svix` or `{configCode}:svix_shared` for Svix"},"targetType":{"$ref":"#/components/schemas/DeliveryTargetType"},"configCode":{"type":"string","description":"Code of the webhook configuration the target belongs to."},"entryId":{"type":"string","description":"Identifier of the `eventsConfiguration` entry. Present only for `ENTRY` targets."},"eventType":{"type":"string","description":"Type of the event, for example `product.created`."},"originalMessageId":{"type":"string","description":"Identifier of the original event message."},"publishTime":{"type":"string","format":"date-time","description":"Date and time when the original event was published."},"errorMessage":{"type":"string","description":"Error message of the failed delivery."},"errorStatusCode":{"type":"integer","description":"HTTP status code returned by the target, if any."},"retryCount":{"type":"integer","description":"Number of the target's failed deliveries in a row at the time the message was stored."},"failedAt":{"type":"string","format":"date-time","description":"Date and time when the message was stored."},"payload":{"type":"object","description":"Event payload, before excluded fields are removed. Returned only when you retrieve a single failed message."}}},"DeliveryTargetType":{"type":"string","enum":["ENTRY","HTTP_GLOBAL","SVIX","SVIX_SHARED"],"description":"Type of the delivery target:\n* `ENTRY` – An `eventsConfiguration` entry of an HTTP configuration.\n* `HTTP_GLOBAL` – The global `destinationUrl` of an HTTP configuration.\n* `SVIX` – A Svix Custom Account configuration.\n* `SVIX_SHARED` – A Svix Emporix Shared Account configuration."}}}}
```

## The FailedMessageSelection object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"FailedMessageSelection":{"type":"object","description":"Selection of failed messages. All criteria are optional and are combined with `AND`. An empty selection matches every stored message.","properties":{"ids":{"type":"array","maxItems":100,"items":{"type":"string"},"description":"Failed message IDs."},"targetType":{"$ref":"#/components/schemas/DeliveryTargetType"},"configCode":{"type":"string","description":"Code of the webhook configuration."},"entryId":{"type":"string","description":"Identifier of the `eventsConfiguration` entry."},"eventType":{"type":"string","description":"Type of the event, for example `product.created`."}}},"DeliveryTargetType":{"type":"string","enum":["ENTRY","HTTP_GLOBAL","SVIX","SVIX_SHARED"],"description":"Type of the delivery target:\n* `ENTRY` – An `eventsConfiguration` entry of an HTTP configuration.\n* `HTTP_GLOBAL` – The global `destinationUrl` of an HTTP configuration.\n* `SVIX` – A Svix Custom Account configuration.\n* `SVIX_SHARED` – A Svix Emporix Shared Account configuration."}}}}
```

## The JobId object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"JobId":{"type":"object","description":"Identifier of the started job.","properties":{"id":{"type":"string","description":"Job's unique identifier, generated when the job is started."}}}}}}
```

## The Job object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"Job":{"type":"object","description":"A long-running operation, such as a restart of failed messages.","properties":{"id":{"type":"string","description":"Job's unique identifier, generated when the job is started."},"type":{"type":"string","enum":["failed_message_restart"],"description":"Type of the job:\n* `failed_message_restart` – A restart of failed messages."},"status":{"type":"string","enum":["in_progress","success","failure"],"description":"Status of the job:\n* `in_progress` – The job is running.\n* `success` – The job finished. See `republished` and `skipped` for the result.\n* `failure` – The job stopped. The reason is in `response`."},"selection":{"$ref":"#/components/schemas/FailedMessageSelection"},"republished":{"type":"integer","description":"Number of failed messages queued for delivery again so far."},"skipped":{"type":"integer","description":"Number of failed messages skipped so far. Skipped messages stay stored."},"response":{"type":"string","description":"Summary of the result, or the reason why the job failed."},"metadata":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Date and time when the job was started."},"modifiedAt":{"type":"string","format":"date-time","description":"Date and time when the job was last modified."},"finishedAt":{"type":"string","format":"date-time","description":"Date and time when the job finished."}}}}},"FailedMessageSelection":{"type":"object","description":"Selection of failed messages. All criteria are optional and are combined with `AND`. An empty selection matches every stored message.","properties":{"ids":{"type":"array","maxItems":100,"items":{"type":"string"},"description":"Failed message IDs."},"targetType":{"$ref":"#/components/schemas/DeliveryTargetType"},"configCode":{"type":"string","description":"Code of the webhook configuration."},"entryId":{"type":"string","description":"Identifier of the `eventsConfiguration` entry."},"eventType":{"type":"string","description":"Type of the event, for example `product.created`."}}},"DeliveryTargetType":{"type":"string","enum":["ENTRY","HTTP_GLOBAL","SVIX","SVIX_SHARED"],"description":"Type of the delivery target:\n* `ENTRY` – An `eventsConfiguration` entry of an HTTP configuration.\n* `HTTP_GLOBAL` – The global `destinationUrl` of an HTTP configuration.\n* `SVIX` – A Svix Custom Account configuration.\n* `SVIX_SHARED` – A Svix Emporix Shared Account configuration."}}}}
```

## The ConfigSuspendedAt object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"ConfigSuspendedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Date and time when the service switched the configuration off because its global HTTP target or its Svix target kept failing. Absent otherwise. Setting `active` to `true` removes it."}}}}
```

## The ConfigCode object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"ConfigCode":{"type":"string","description":"Unique identifier of the webhook configuration type."}}}}
```

## The Provider object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"Provider":{"type":"string","enum":["SVIX_SHARED","SVIX","HTTP"],"description":"Webhook provider strategy. Maps to configuration types as follows:\n\n* `SVIX` – `svix`\n* `SVIX_SHARED` – `svix_shared`\n* `HTTP` – `http`"}}}}
```

## The WebhookConfigUpdate object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookConfigUpdate":{"allOf":[{"$ref":"#/components/schemas/AbstractWebhookConfig"},{"type":"object","required":["provider"],"properties":{"configuration":{"$ref":"#/components/schemas/Configuration"}}}]},"AbstractWebhookConfig":{"type":"object","properties":{"active":{"type":"boolean","description":"Indicates whether a given configuration is active. Only one configuration can be active at a time."},"provider":{"$ref":"#/components/schemas/Provider","description":"Indicates which provider should be used."}}},"Provider":{"type":"string","enum":["SVIX_SHARED","SVIX","HTTP"],"description":"Webhook provider strategy. Maps to configuration types as follows:\n\n* `SVIX` – `svix`\n* `SVIX_SHARED` – `svix_shared`\n* `HTTP` – `http`"},"Configuration":{"type":"object","oneOf":[{"$ref":"#/components/schemas/EmptyConfiguration"},{"$ref":"#/components/schemas/SvixConfig"},{"$ref":"#/components/schemas/HttpConfig"}]},"EmptyConfiguration":{"type":"object","description":"SVIX_SHARED config"},"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"},"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}}}}}
```

## The WebhookConfigCreation object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookConfigCreation":{"allOf":[{"$ref":"#/components/schemas/WebhookConfigUpdate"},{"type":"object","required":["code"],"properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ConfigCode"}]}}}]},"WebhookConfigUpdate":{"allOf":[{"$ref":"#/components/schemas/AbstractWebhookConfig"},{"type":"object","required":["provider"],"properties":{"configuration":{"$ref":"#/components/schemas/Configuration"}}}]},"AbstractWebhookConfig":{"type":"object","properties":{"active":{"type":"boolean","description":"Indicates whether a given configuration is active. Only one configuration can be active at a time."},"provider":{"$ref":"#/components/schemas/Provider","description":"Indicates which provider should be used."}}},"Provider":{"type":"string","enum":["SVIX_SHARED","SVIX","HTTP"],"description":"Webhook provider strategy. Maps to configuration types as follows:\n\n* `SVIX` – `svix`\n* `SVIX_SHARED` – `svix_shared`\n* `HTTP` – `http`"},"Configuration":{"type":"object","oneOf":[{"$ref":"#/components/schemas/EmptyConfiguration"},{"$ref":"#/components/schemas/SvixConfig"},{"$ref":"#/components/schemas/HttpConfig"}]},"EmptyConfiguration":{"type":"object","description":"SVIX_SHARED config"},"SvixConfig":{"type":"object","properties":{"apiKey":{"type":"string","description":"API Key for connecting to SVIX. This API Key will be then used in `Authorization` header while sending requests to SVIX, so the value should include `Bearer` prefix if necessary."}},"description":"SVIX config"},"HttpConfig":{"type":"object","properties":{"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`."},"eventsConfiguration":{"$ref":"#/components/schemas/EventsConfiguration"}},"description":"HTTP config"},"HttpHeadersConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HttpHeaderConfigValue"}},"HttpHeaderConfigValue":{"type":"object","properties":{"value":{"type":"string"}}},"EventsConfiguration":{"type":"array","description":"List of HTTP event-specific configuration entries. Multiple entries for the same `eventType` are allowed. Uniqueness is by entry `id`. Duplicate entry ids are rejected with `400`.","items":{"$ref":"#/components/schemas/EventConfiguration"}},"EventConfiguration":{"type":"object","properties":{"id":{"type":"string","description":"Stable server-generated identifier of this event configuration entry. Omit on create; client-supplied ids are rejected with `400`. On update, known ids must refer to existing entries; unknown ids are rejected with `400`. Ids are immutable once assigned."},"name":{"type":"string","maxLength":255,"description":"Optional user-facing label for this entry (for example \"ERP integration\"). Purely descriptive — it has no impact on delivery. Maximum 255 characters."},"eventType":{"type":"string","description":"Unique identifier of the event. Multiple entries may share the same `eventType`."},"secretKey":{"type":"string","description":"Optional secret key which could be used to sign the message. This secret is used in `HMAC SHA 256` algorithm which encrypts the payload. Then this value is encoded to `BASE256` and included in `emporix-event-signature` header of HTTP request. It has higher priority than `secretKey` on root level. Each event can have defined a separated secret key."},"destinationUrl":{"type":"string","description":"Destination URL where event should be sent. It has higher priority than `destinationUrl` on root level. Each event can have defined a separated destination url."},"headers":{"allOf":[{"$ref":"#/components/schemas/HttpHeadersConfig"}],"description":"List of key-value pairs which can decorate outgoing HTTP POST request as headers. The size limit for this list is `10`. It has higher priority than `headers` on root level. Each event can have defined a separated headers."},"filter":{"type":"string","description":"Optional Jayway JsonPath predicate evaluated against the event payload. When omitted or empty, the entry matches every event of the given `eventType`. Invalid expressions are rejected with `400`. Examples: `$[?(@.status == 'DECLINED')]`, `$[?(@.total.amount > 100)]`."},"excludedFields":{"type":"array","items":{"type":"string"},"description":"Optional per-entry field exclusion list. Only non-blank top-level field names are allowed. Omit or set to `null` to inherit the event-subscription `excludedFields`. An empty array `[]` overrides the subscription exclusions with no exclusions for this target."},"active":{"type":"boolean","default":true,"description":"Per-endpoint activation switch. When `false`, events for this endpoint are dropped without filter evaluation, delivery, or retries; other endpoints are not affected. Omitted means active."}}},"ConfigCode":{"type":"string","description":"Unique identifier of the webhook configuration type."}}}}
```

## The WebhookEvent object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookEvent":{"title":"Webhook event","type":"object","description":"Events that you can subscribe to.","properties":{"type":{"type":"string","description":"Unique identifier of the event."},"description":{"type":"object","description":"Map of key-value pairs containing localized descriptions of the event, which includes information on when the event is emitted.","additionalProperties":{"type":"string"}},"eventSchema":{"type":"object","description":"Schema of the event."},"name":{"type":"object","description":"Map of key-value pairs containing localized names of the event.","additionalProperties":{"type":"string"}},"group":{"type":"object","description":"Map of key-value pairs containing the localized name of a group the event belongs to.","additionalProperties":{"type":"string"}}}}}}}
```

## The WebhookSubscriptions object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookSubscriptions":{"title":"Webhook subscriptions","type":"array","description":"Details of the event subscription.","items":{"$ref":"#/components/schemas/WebhookSubscription"}},"WebhookSubscription":{"title":"Webhook subscription","type":"object","description":"Subscription per event.","properties":{"event":{"$ref":"#/components/schemas/WebhookEvent"},"metadata":{"$ref":"#/components/schemas/Metadata"},"subscription":{"type":"string","description":"Status of the subscription.","enum":["SUBSCRIBED","UNSUBSCRIBED","NONE"]},"excludedFields":{"type":"array","description":"If `subscription` is of type `SUBSCRIBED`, `excludedFields` will contain the list of keys from the \"event.eventSchema\" that the user has previously unsubscribed from. Note: Only root level fields are supported.","items":{"type":"string"}}}},"WebhookEvent":{"title":"Webhook event","type":"object","description":"Events that you can subscribe to.","properties":{"type":{"type":"string","description":"Unique identifier of the event."},"description":{"type":"object","description":"Map of key-value pairs containing localized descriptions of the event, which includes information on when the event is emitted.","additionalProperties":{"type":"string"}},"eventSchema":{"type":"object","description":"Schema of the event."},"name":{"type":"object","description":"Map of key-value pairs containing localized names of the event.","additionalProperties":{"type":"string"}},"group":{"type":"object","description":"Map of key-value pairs containing the localized name of a group the event belongs to.","additionalProperties":{"type":"string"}}}},"Metadata":{"title":"Metadata","description":"Auditing details.","type":"object","properties":{"createdAt":{"type":"string","description":"Date and time when the document was created.","format":"date-time"},"modifiedAt":{"type":"string","description":"Date and time when the document was last modified.","format":"date-time"},"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The WebhookSubscription object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookSubscription":{"title":"Webhook subscription","type":"object","description":"Subscription per event.","properties":{"event":{"$ref":"#/components/schemas/WebhookEvent"},"metadata":{"$ref":"#/components/schemas/Metadata"},"subscription":{"type":"string","description":"Status of the subscription.","enum":["SUBSCRIBED","UNSUBSCRIBED","NONE"]},"excludedFields":{"type":"array","description":"If `subscription` is of type `SUBSCRIBED`, `excludedFields` will contain the list of keys from the \"event.eventSchema\" that the user has previously unsubscribed from. Note: Only root level fields are supported.","items":{"type":"string"}}}},"WebhookEvent":{"title":"Webhook event","type":"object","description":"Events that you can subscribe to.","properties":{"type":{"type":"string","description":"Unique identifier of the event."},"description":{"type":"object","description":"Map of key-value pairs containing localized descriptions of the event, which includes information on when the event is emitted.","additionalProperties":{"type":"string"}},"eventSchema":{"type":"object","description":"Schema of the event."},"name":{"type":"object","description":"Map of key-value pairs containing localized names of the event.","additionalProperties":{"type":"string"}},"group":{"type":"object","description":"Map of key-value pairs containing the localized name of a group the event belongs to.","additionalProperties":{"type":"string"}}}},"Metadata":{"title":"Metadata","description":"Auditing details.","type":"object","properties":{"createdAt":{"type":"string","description":"Date and time when the document was created.","format":"date-time"},"modifiedAt":{"type":"string","description":"Date and time when the document was last modified.","format":"date-time"},"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The WebhookSubscriptionUpdate object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookSubscriptionUpdate":{"title":"Webhook subscription update","type":"array","description":"Subscription changes.","items":{"$ref":"#/components/schemas/WebhookSubscriptionUpdateItem"}},"WebhookSubscriptionUpdateItem":{"title":"Webhook subscription update item","type":"object","description":"Object used to subscribe to/unsubscribe from an event. ","properties":{"eventType":{"type":"string","description":"Unique identifier of the event."},"action":{"type":"string","enum":["SUBSCRIBE","UNSUBSCRIBE"],"description":"Indicates whether the event should be subscribed to or unsubscribed from."},"metadata":{"$ref":"#/components/schemas/MetadataForUpdate"},"fieldsToUnsubscribe":{"type":"array","description":"Fields to exclude from notification.","items":{"type":"string"}},"fieldsToSubscribe":{"type":"array","description":"Fields to re-include in the notification. To be used when user wants to subscribe to previously unsubscribed fields.","items":{"type":"string"}}},"required":["eventType"]},"MetadataForUpdate":{"title":"Metadata for update","description":"Auditing details.","type":"object","properties":{"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The WebhookSubscriptionUpdateItem object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookSubscriptionUpdateItem":{"title":"Webhook subscription update item","type":"object","description":"Object used to subscribe to/unsubscribe from an event. ","properties":{"eventType":{"type":"string","description":"Unique identifier of the event."},"action":{"type":"string","enum":["SUBSCRIBE","UNSUBSCRIBE"],"description":"Indicates whether the event should be subscribed to or unsubscribed from."},"metadata":{"$ref":"#/components/schemas/MetadataForUpdate"},"fieldsToUnsubscribe":{"type":"array","description":"Fields to exclude from notification.","items":{"type":"string"}},"fieldsToSubscribe":{"type":"array","description":"Fields to re-include in the notification. To be used when user wants to subscribe to previously unsubscribed fields.","items":{"type":"string"}}},"required":["eventType"]},"MetadataForUpdate":{"title":"Metadata for update","description":"Auditing details.","type":"object","properties":{"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The ErrorMessage object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"ErrorMessage":{"title":"Error message","description":"Object returned in error responses.","type":"object","properties":{"code":{"description":"Original HTTP error code. Must be consistent with the response HTTP code.","type":"integer"},"status":{"type":"string"},"message":{"description":"Descriptive error message for debugging.","type":"string"},"details":{"description":"List of problems causing the error.","type":"array","items":{"type":"string"}}},"required":["code","status"]}}}}
```

## The Metadata object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"Metadata":{"title":"Metadata","description":"Auditing details.","type":"object","properties":{"createdAt":{"type":"string","description":"Date and time when the document was created.","format":"date-time"},"modifiedAt":{"type":"string","description":"Date and time when the document was last modified.","format":"date-time"},"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The MetadataForUpdate object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"MetadataForUpdate":{"title":"Metadata for update","description":"Auditing details.","type":"object","properties":{"version":{"type":"integer","description":"Version of the document.","minimum":1}}}}}}
```

## The UpdateSubscriptionResponse object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"UpdateSubscriptionResponse":{"title":"Update subscription result response","type":"object","description":"Object containing the result of event subscription.","properties":{"eventType":{"type":"string"},"code":{"type":"integer"},"status":{"type":"string"},"message":{"type":"string"}}}}}}
```

## The DashboardAccess object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"DashboardAccess":{"type":"object","properties":{"url":{"type":"string","description":"Svix application dashboard access URL with embedded authentication."},"token":{"type":"string","description":"Authentication token for accessing the Svix application dashboard."}}}}}}
```

## The MonthStatistics object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"MonthStatistics":{"title":"Webhook monthly statistics","type":"object","properties":{"statisticsMonth":{"type":"string","description":"Month for which statistics should be retrieved, provided in the \"YYYY-MM\" format."},"succesfullySentWebhooks":{"type":"integer","description":"Number of events sent successfully to the customer's configured endpoints."}}}}}}
```

## The WebhookStatistics object

```json
{"openapi":"3.0.0","info":{"title":"Webhook Service","version":"0.0.1"},"components":{"schemas":{"WebhookStatistics":{"title":"Webhooks limit statistics","type":"object","properties":{"monthStatistics":{"type":"array","items":{"$ref":"#/components/schemas/MonthStatistics"}},"webhooksLimit":{"type":"integer","description":"Maximum number of events that the tenant is allowed to send in a specified month."}}},"MonthStatistics":{"title":"Webhook monthly statistics","type":"object","properties":{"statisticsMonth":{"type":"string","description":"Month for which statistics should be retrieved, provided in the \"YYYY-MM\" format."},"succesfullySentWebhooks":{"type":"integer","description":"Number of events sent successfully to the customer's configured endpoints."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.emporix.io/api-references/readme/api-reference-42/models.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
