Log Streaming
Operation successful.
Event names that can be streamed to a destination.
["n8n.workflow.started","n8n.workflow.success","n8n.workflow.failed"]Unauthorized
Forbidden
GET /api/v1/settings/log-streaming/event-types HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
"n8n.workflow.started",
"n8n.workflow.success",
"n8n.workflow.failed"
]
}Operation successful.
The configured log streaming destinations.
Unauthorized
Forbidden
GET /api/v1/settings/log-streaming/destinations HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "88be6560-bfb4-455c-8aa1-06971e9e5522",
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
Operation successful.
A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
POST /api/v1/settings/log-streaming/destinations HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1190
{
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "88be6560-bfb4-455c-8aa1-06971e9e5522",
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Send a test message to a log streaming destination
The id of the log streaming destination.
Operation successful.
Whether the test message was delivered to the destination successfully.
trueUnauthorized
Forbidden
The specified resource was not found.
POST /api/v1/settings/log-streaming/destinations/{id}/test HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"success": true
}The id of the log streaming destination.
Operation successful.
A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/settings/log-streaming/destinations/{id} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "88be6560-bfb4-455c-8aa1-06971e9e5522",
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}The id of the log streaming destination.
A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
Operation successful.
A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
PUT /api/v1/settings/log-streaming/destinations/{id} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1190
{
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "88be6560-bfb4-455c-8aa1-06971e9e5522",
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}The id of the log streaming destination.
Operation successful.
A log streaming destination. The type field selects the variant and its type-specific fields: webhook, syslog, or sentry.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
DELETE /api/v1/settings/log-streaming/destinations/{id} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "88be6560-bfb4-455c-8aa1-06971e9e5522",
"label": "My destination",
"enabled": true,
"subscribedEvents": [
"n8n.workflow",
"n8n.audit"
],
"anonymizeAuditMessages": false,
"circuitBreaker": {
"maxFailures": 1,
"failureWindow": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "webhook",
"url": "https://example.com/n8n-events",
"method": "POST",
"sendHeaders": false,
"specifyHeaders": "keypair",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonHeaders": "text",
"sendQuery": false,
"specifyQuery": "text",
"queryParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"jsonQuery": "text",
"options": {
"timeout": 1,
"allowUnauthorizedCerts": true,
"queryParameterArrays": "indices",
"redirect": {
"redirect": {
"followRedirects": true,
"maxRedirects": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"proxy": {
"proxy": {
"protocol": "https",
"host": "text",
"port": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"socket": {
"keepAlive": true,
"maxSockets": 1,
"maxFreeSockets": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated
Was this helpful?