> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/connect/n8n-api/instance-settings/log-streaming.md). Agents can also search and read this documentation through its [MCP server](https://docs.n8n.io/~gitbook/mcp).

# Log Streaming

Operations about log streaming destinations

## List streamable event types

> List the event types that can be streamed to a log streaming destination. Requires the Log Streaming feature to be licensed.\
> \
> Requires the \`eventBusDestination:list\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"responses":{"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/event-types":{"get":{"operationId":"getLogStreamingEventTypes","tags":["LogStreaming"],"summary":"List streamable event types","description":"List the event types that can be streamed to a log streaming destination. Requires the Log Streaming feature to be licensed.\n\nRequires the `eventBusDestination:list` API key scope.","responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"},"description":"Event names that can be streamed to a destination."}},"required":["data"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## List log streaming destinations

> List the configured log streaming destinations. Requires the Log Streaming feature to be licensed.\
> \
> Requires the \`eventBusDestination:list\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"responses":{"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations":{"get":{"operationId":"getLogStreamingDestinations","tags":["LogStreaming"],"summary":"List log streaming destinations","description":"List the configured log streaming destinations. Requires the Log Streaming feature to be licensed.\n\nRequires the `eventBusDestination:list` API key scope.","responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","url","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","host","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","dsn","id"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"},"description":"The configured log streaming destinations."}},"required":["data"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## Create a log streaming destination

> Create a log streaming destination. The destination takes effect exactly as it would from the UI, using the same validation. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the write is rejected with 409 and nothing is created; reads still return the current values.\
> \
> Requires the \`eventBusDestination:create\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"parameters":{"idempotencyKey":{"name":"Idempotency-Key","in":"header","description":"Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\x21-\\x7E]+$"}}},"schemas":{"logStreamingDestinationPublicDto.generated":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","url","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","host","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","dsn","id"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}},"responses":{"badRequest":{"description":"The request is invalid or provides malformed data."},"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"conflict":{"description":"Conflict"},"unsupportedMediaType":{"description":"Unsupported media type."},"unprocessableEntity":{"description":"Unprocessable Entity"},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations":{"post":{"operationId":"createLogStreamingDestination","tags":["LogStreaming"],"summary":"Create a log streaming destination","description":"Create a log streaming destination. The destination takes effect exactly as it would from the UI, using the same validation. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the write is rejected with 409 and nothing is created; reads still return the current values.\n\nRequires the `eventBusDestination:create` API key scope.","parameters":[{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests.","readOnly":true}},"required":["type","url"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests.","readOnly":true}},"required":["type","host"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests.","readOnly":true}},"required":["type","dsn"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}}}},"responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/logStreamingDestinationPublicDto.generated"}}}},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"409":{"$ref":"#/components/responses/conflict"},"415":{"$ref":"#/components/responses/unsupportedMediaType"},"422":{"$ref":"#/components/responses/unprocessableEntity"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## Retrieve a log streaming destination

> Retrieve a single log streaming destination by id. Requires the Log Streaming feature to be licensed.\
> \
> Requires the \`eventBusDestination:read\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"schemas":{"logStreamingDestinationPublicDto.generated":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","url","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","host","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","dsn","id"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}},"responses":{"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"notFound":{"description":"The specified resource was not found."},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations/{destinationId}":{"get":{"operationId":"getLogStreamingDestination","tags":["LogStreaming"],"summary":"Retrieve a log streaming destination","description":"Retrieve a single log streaming destination by id. Requires the Log Streaming feature to be licensed.\n\nRequires the `eventBusDestination:read` API key scope.","parameters":[{"schema":{"type":"string"},"required":true,"description":"The id of the log streaming destination.","name":"destinationId","in":"path"}],"responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/logStreamingDestinationPublicDto.generated"}}}},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## Update a log streaming destination

> Replace an existing log streaming destination. The update takes effect exactly as it would from the UI, using the same validation. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the write is rejected with 409 and nothing is changed; reads still return the current values.\
> \
> Requires the \`eventBusDestination:update\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"schemas":{"logStreamingDestinationPublicDto.generated":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","url","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","host","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","dsn","id"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}},"responses":{"badRequest":{"description":"The request is invalid or provides malformed data."},"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"notFound":{"description":"The specified resource was not found."},"conflict":{"description":"Conflict"},"unsupportedMediaType":{"description":"Unsupported media type."},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations/{destinationId}":{"put":{"operationId":"updateLogStreamingDestination","tags":["LogStreaming"],"summary":"Update a log streaming destination","description":"Replace an existing log streaming destination. The update takes effect exactly as it would from the UI, using the same validation. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the write is rejected with 409 and nothing is changed; reads still return the current values.\n\nRequires the `eventBusDestination:update` API key scope.","parameters":[{"schema":{"type":"string"},"required":true,"description":"The id of the log streaming destination.","name":"destinationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."}},"required":["type","url"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."}},"required":["type","host"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."}},"required":["type","dsn"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}}}},"responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/logStreamingDestinationPublicDto.generated"}}}},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"},"409":{"$ref":"#/components/responses/conflict"},"415":{"$ref":"#/components/responses/unsupportedMediaType"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## Delete a log streaming destination

> Remove a log streaming destination. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the delete is rejected with 409 and nothing is removed; reads still return the current values.\
> \
> Requires the \`eventBusDestination:delete\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"schemas":{"logStreamingDestinationPublicDto.generated":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["webhook"],"description":"Sends each event as an HTTP request to a URL."},"url":{"type":"string","format":"uri","description":"Target URL that receives the event payload."},"method":{"type":"string","description":"HTTP method used for the request."},"sendHeaders":{"type":"boolean","description":"Whether to attach custom headers to the request."},"specifyHeaders":{"type":"string","description":"How custom headers are provided — `keypair` or `json`."},"headerParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonHeaders":{"type":"string","description":"Custom headers as a JSON string when `specifyHeaders` is `json`."},"sendQuery":{"type":"boolean","description":"Whether to attach query parameters to the request."},"specifyQuery":{"type":"string","description":"How query parameters are provided — `keypair` or `json`."},"queryParameters":{"type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{},{}],"description":"Parameter value. Usually a string; numbers, booleans and null are also accepted."}},"required":["name","value"]}}},"required":["parameters"],"description":"Key-value pairs used when the matching `specify*` field is `keypair`."},"jsonQuery":{"type":"string","description":"Query parameters as a JSON string when `specifyQuery` is `json`."},"options":{"type":"object","properties":{"timeout":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Request timeout in milliseconds."},"allowUnauthorizedCerts":{"type":"boolean","description":"Accept self-signed or otherwise invalid TLS certificates."},"queryParameterArrays":{"type":"string","enum":["indices","brackets","repeat"],"description":"How array-valued query parameters are serialized into the query string."},"redirect":{"type":"object","properties":{"redirect":{"type":"object","properties":{"followRedirects":{"type":"boolean","description":"Whether to follow HTTP redirects."},"maxRedirects":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum number of redirects to follow."}}}},"required":["redirect"],"description":"Redirect-following behaviour."},"proxy":{"type":"object","properties":{"proxy":{"type":"object","properties":{"protocol":{"type":"string","enum":["https","http"],"description":"Proxy protocol."},"host":{"type":"string","description":"Proxy host, without protocol or port."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Proxy port."}},"required":["protocol","host","port"]}},"required":["proxy"],"description":"Outbound proxy configuration."},"socket":{"type":"object","properties":{"keepAlive":{"type":"boolean","description":"Whether to keep sockets open for reuse."},"maxSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum sockets per host kept open at once."},"maxFreeSockets":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum idle sockets per host kept open."}},"description":"Connection socket options."}},"description":"Additional HTTP request options."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","url","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["syslog"],"description":"Sends each event to a syslog server."},"host":{"type":"string","minLength":1,"description":"Syslog server host."},"port":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Syslog server port."},"protocol":{"type":"string","enum":["udp","tcp","tls"],"description":"Transport protocol."},"facility":{"type":"integer","minimum":0,"maximum":23,"description":"Syslog facility code (0–23, per RFC 5424). Common values: 0 Kernel, 1 User, 3 System, 13 Audit, 14 Alert, 16 Local0, 17 Local1, 18 Local2, 19 Local3, 20 Local4, 21 Local5, 22 Local6, 23 Local7."},"app_name":{"type":"string","description":"Application name reported in the syslog message."},"tlsCa":{"type":"string","description":"PEM-encoded CA certificate used when `protocol` is `tls`."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","host","id"]},{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"Human-readable name shown in the UI."},"enabled":{"type":"boolean","description":"Whether the destination currently receives events."},"subscribedEvents":{"type":"array","items":{"type":"string"},"description":"Event names (or group prefixes, e.g. `n8n.workflow`, which matches all `n8n.workflow.*` events) this destination receives. Retrieve the full list of streamable event names from `GET /settings/log-streaming/event-types`."},"anonymizeAuditMessages":{"type":"boolean","description":"Whether audit message payloads are anonymized before being sent."},"circuitBreaker":{"type":"object","properties":{"maxFailures":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Maximum failures within the sliding window before the breaker opens."},"failureWindow":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Sliding window, in milliseconds, over which failures are counted."}},"description":"Circuit-breaker tuning for delivery. After repeated failures the destination stops sending for a cool-down window instead of hammering an unhealthy target. All fields are optional; sensible defaults apply when omitted."},"type":{"type":"string","enum":["sentry"],"description":"Sends each event to a Sentry project."},"dsn":{"type":"string","format":"uri","description":"Sentry DSN the events are sent to."},"id":{"type":"string","description":"Server-generated unique id of the destination. Returned in responses; not accepted in requests."}},"required":["type","dsn","id"]}],"description":"A log streaming destination. The `type` field selects the variant and its type-specific fields: `webhook`, `syslog`, or `sentry`.","type":"object"}},"responses":{"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"notFound":{"description":"The specified resource was not found."},"conflict":{"description":"Conflict"},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations/{destinationId}":{"delete":{"operationId":"deleteLogStreamingDestination","tags":["LogStreaming"],"summary":"Delete a log streaming destination","description":"Remove a log streaming destination. Requires the Log Streaming feature to be licensed. When destinations are managed via environment variables, the delete is rejected with 409 and nothing is removed; reads still return the current values.\n\nRequires the `eventBusDestination:delete` API key scope.","parameters":[{"schema":{"type":"string"},"required":true,"description":"The id of the log streaming destination.","name":"destinationId","in":"path"}],"responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/logStreamingDestinationPublicDto.generated"}}}},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"},"409":{"$ref":"#/components/responses/conflict"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```

## Send a test message to a log streaming destination

> Send a test message to the destination to verify it is reachable and configured correctly. Requires the Log Streaming feature to be licensed.\
> \
> Requires the \`eventBusDestination:test\` API key scope.

```json
{"openapi":"3.0.0","info":{"title":"n8n Public API","version":"1.1.1"},"tags":[{"name":"LogStreaming","description":"Operations about log streaming destinations"}],"servers":[{"url":"/api/v1","description":"Current n8n instance (self-hosted built-in playground)"},{"url":"{url}/api/v1","description":"Self-hosted n8n instance","variables":{"url":{"default":"https://example.com"}}}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]},{"CookieAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-N8N-API-KEY"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"CookieAuth":{"type":"apiKey","in":"cookie","name":"n8n-auth"}},"responses":{"unauthorized":{"description":"Unauthorized"},"forbidden":{"description":"Forbidden"},"notFound":{"description":"The specified resource was not found."},"tooManyRequests":{"description":"Too many requests.","headers":{"Retry-After":{"description":"The number of seconds to wait before you retry the request.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"The maximum number of requests allowed in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the rate-limit window.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"The time when the rate-limit window resets, as a Unix timestamp in seconds.","schema":{"type":"integer","format":"int64","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}},"paths":{"/settings/log-streaming/destinations/{destinationId}/test":{"post":{"operationId":"testLogStreamingDestination","tags":["LogStreaming"],"summary":"Send a test message to a log streaming destination","description":"Send a test message to the destination to verify it is reachable and configured correctly. Requires the Log Streaming feature to be licensed.\n\nRequires the `eventBusDestination:test` API key scope.","parameters":[{"schema":{"type":"string"},"required":true,"description":"The id of the log streaming destination.","name":"destinationId","in":"path"}],"responses":{"200":{"description":"Operation successful.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the test message was delivered to the destination successfully."}},"required":["success"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/unauthorized"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"},"429":{"$ref":"#/components/responses/tooManyRequests"}}}}}}
```
