n8n 0.178.2 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/export/workflow.js +4 -1
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/import/workflow.js +22 -5
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/worker.js +3 -2
- package/dist/commands/worker.js.map +1 -1
- package/dist/config/index.d.ts +4 -0
- package/dist/config/schema.d.ts +14 -0
- package/dist/config/schema.js +16 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/src/ActiveWorkflowRunner.d.ts +2 -1
- package/dist/src/ActiveWorkflowRunner.js +66 -6
- package/dist/src/ActiveWorkflowRunner.js.map +1 -1
- package/dist/src/CredentialsHelper.d.ts +2 -0
- package/dist/src/CredentialsHelper.js +13 -5
- package/dist/src/CredentialsHelper.js.map +1 -1
- package/dist/src/Interfaces.d.ts +41 -6
- package/dist/src/InternalHooks.d.ts +46 -4
- package/dist/src/InternalHooks.js +36 -6
- package/dist/src/InternalHooks.js.map +1 -1
- package/dist/src/PublicApi/index.d.ts +5 -0
- package/dist/src/PublicApi/index.js +122 -0
- package/dist/src/PublicApi/index.js.map +1 -0
- package/dist/src/PublicApi/swaggerTheme.css +26 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.d.ts +7 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.js +72 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.d.ts +3 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.js +34 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.service.d.ts +14 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.service.js +180 -0
- package/dist/src/PublicApi/v1/handlers/credentials/credentials.service.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.handler.d.ts +8 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.handler.js +97 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.handler.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.service.d.ts +19 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.service.js +80 -0
- package/dist/src/PublicApi/v1/handlers/executions/executions.service.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/users/users.service.d.ts +4 -0
- package/dist/src/PublicApi/v1/handlers/users/users.service.js +16 -0
- package/dist/src/PublicApi/v1/handlers/users/users.service.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.d.ts +12 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.js +199 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.js.map +1 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.d.ts +24 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.js +113 -0
- package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.js.map +1 -0
- package/dist/src/PublicApi/v1/openapi.yml +703 -0
- package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.d.ts +5 -0
- package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.js +38 -0
- package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.js.map +1 -0
- package/dist/src/PublicApi/v1/shared/services/pagination.service.d.ts +3 -0
- package/dist/src/PublicApi/v1/shared/services/pagination.service.js +33 -0
- package/dist/src/PublicApi/v1/shared/services/pagination.service.js.map +1 -0
- package/dist/src/ResponseHelper.d.ts +1 -1
- package/dist/src/ResponseHelper.js +2 -2
- package/dist/src/ResponseHelper.js.map +1 -1
- package/dist/src/Server.js +29 -13
- package/dist/src/Server.js.map +1 -1
- package/dist/src/TagHelpers.d.ts +3 -1
- package/dist/src/TagHelpers.js +47 -1
- package/dist/src/TagHelpers.js.map +1 -1
- package/dist/src/UserManagement/UserManagementHelper.js +1 -1
- package/dist/src/UserManagement/UserManagementHelper.js.map +1 -1
- package/dist/src/UserManagement/auth/jwt.d.ts +1 -1
- package/dist/src/UserManagement/routes/me.js +27 -0
- package/dist/src/UserManagement/routes/me.js.map +1 -1
- package/dist/src/UserManagement/routes/passwordReset.js +2 -0
- package/dist/src/UserManagement/routes/passwordReset.js.map +1 -1
- package/dist/src/UserManagement/routes/users.js +7 -1
- package/dist/src/UserManagement/routes/users.js.map +1 -1
- package/dist/src/WebhookHelpers.js +8 -7
- package/dist/src/WebhookHelpers.js.map +1 -1
- package/dist/src/WebhookServer.js.map +1 -1
- package/dist/src/WorkflowExecuteAdditionalData.d.ts +2 -1
- package/dist/src/WorkflowExecuteAdditionalData.js +45 -16
- package/dist/src/WorkflowExecuteAdditionalData.js.map +1 -1
- package/dist/src/WorkflowHelpers.js +2 -0
- package/dist/src/WorkflowHelpers.js.map +1 -1
- package/dist/src/WorkflowRunner.js +2 -0
- package/dist/src/WorkflowRunner.js.map +1 -1
- package/dist/src/api/credentials.api.js +4 -3
- package/dist/src/api/credentials.api.js.map +1 -1
- package/dist/src/databases/entities/User.d.ts +1 -0
- package/dist/src/databases/entities/User.js +7 -2
- package/dist/src/databases/entities/User.js.map +1 -1
- package/dist/src/databases/mysqldb/migrations/1652905585850-AddAPIKeyColumn.d.ts +6 -0
- package/dist/src/databases/mysqldb/migrations/1652905585850-AddAPIKeyColumn.js +28 -0
- package/dist/src/databases/mysqldb/migrations/1652905585850-AddAPIKeyColumn.js.map +1 -0
- package/dist/src/databases/mysqldb/migrations/index.js +2 -0
- package/dist/src/databases/mysqldb/migrations/index.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1587669153312-InitialMigration.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1587669153312-InitialMigration.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1589476000887-WebhookModel.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1589476000887-WebhookModel.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1594828256133-CreateIndexStoppedAt.js +9 -2
- package/dist/src/databases/postgresdb/migrations/1594828256133-CreateIndexStoppedAt.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1607431743768-MakeStoppedAtNullable.js +1 -0
- package/dist/src/databases/postgresdb/migrations/1607431743768-MakeStoppedAtNullable.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1611144599516-AddWebhookId.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1611144599516-AddWebhookId.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1617270242566-CreateTagEntity.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1617270242566-CreateTagEntity.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1620824779533-UniqueWorkflowNames.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1620824779533-UniqueWorkflowNames.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1626176912946-AddwaitTill.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1626176912946-AddwaitTill.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1630419189837-UpdateWorkflowCredentials.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1630419189837-UpdateWorkflowCredentials.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1644422880309-AddExecutionEntityIndexes.js +7 -6
- package/dist/src/databases/postgresdb/migrations/1644422880309-AddExecutionEntityIndexes.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1646834195327-IncreaseTypeVarcharLimit.js +6 -1
- package/dist/src/databases/postgresdb/migrations/1646834195327-IncreaseTypeVarcharLimit.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1646992772331-CreateUserManagement.js +5 -3
- package/dist/src/databases/postgresdb/migrations/1646992772331-CreateUserManagement.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1648740597343-LowerCaseUserEmail.js +1 -0
- package/dist/src/databases/postgresdb/migrations/1648740597343-LowerCaseUserEmail.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1652367743993-AddUserSettings.js +2 -0
- package/dist/src/databases/postgresdb/migrations/1652367743993-AddUserSettings.js.map +1 -1
- package/dist/src/databases/postgresdb/migrations/1652905585850-AddAPIKeyColumn.d.ts +6 -0
- package/dist/src/databases/postgresdb/migrations/1652905585850-AddAPIKeyColumn.js +32 -0
- package/dist/src/databases/postgresdb/migrations/1652905585850-AddAPIKeyColumn.js.map +1 -0
- package/dist/src/databases/postgresdb/migrations/index.js +2 -0
- package/dist/src/databases/postgresdb/migrations/index.js.map +1 -1
- package/dist/src/databases/sqlite/migrations/1652905585850-AddAPIKeyColumn.d.ts +6 -0
- package/dist/src/databases/sqlite/migrations/1652905585850-AddAPIKeyColumn.js +58 -0
- package/dist/src/databases/sqlite/migrations/1652905585850-AddAPIKeyColumn.js.map +1 -0
- package/dist/src/databases/sqlite/migrations/index.js +2 -0
- package/dist/src/databases/sqlite/migrations/index.js.map +1 -1
- package/dist/test/integration/auth.api.test.js +11 -6
- package/dist/test/integration/auth.api.test.js.map +1 -1
- package/dist/test/integration/auth.mw.test.js +1 -1
- package/dist/test/integration/auth.mw.test.js.map +1 -1
- package/dist/test/integration/commands/reset.cmd.test.d.ts +1 -0
- package/dist/test/integration/commands/reset.cmd.test.js +59 -0
- package/dist/test/integration/commands/reset.cmd.test.js.map +1 -0
- package/dist/test/integration/credentials.api.test.js +1 -1
- package/dist/test/integration/credentials.api.test.js.map +1 -1
- package/dist/test/integration/me.api.test.js +78 -7
- package/dist/test/integration/me.api.test.js.map +1 -1
- package/dist/test/integration/owner.api.test.js +3 -2
- package/dist/test/integration/owner.api.test.js.map +1 -1
- package/dist/test/integration/passwordReset.api.test.js +1 -1
- package/dist/test/integration/passwordReset.api.test.js.map +1 -1
- package/dist/test/integration/publicApi/credentials.test.d.ts +1 -0
- package/dist/test/integration/publicApi/credentials.test.js +321 -0
- package/dist/test/integration/publicApi/credentials.test.js.map +1 -0
- package/dist/test/integration/publicApi/executions.test.d.ts +1 -0
- package/dist/test/integration/publicApi/executions.test.js +289 -0
- package/dist/test/integration/publicApi/executions.test.js.map +1 -0
- package/dist/test/integration/publicApi/workflows.test.d.ts +1 -0
- package/dist/test/integration/publicApi/workflows.test.js +948 -0
- package/dist/test/integration/publicApi/workflows.test.js.map +1 -0
- package/dist/test/integration/shared/constants.d.ts +1 -0
- package/dist/test/integration/shared/constants.js +2 -1
- package/dist/test/integration/shared/constants.js.map +1 -1
- package/dist/test/integration/shared/random.d.ts +1 -0
- package/dist/test/integration/shared/random.js +8 -2
- package/dist/test/integration/shared/random.js.map +1 -1
- package/dist/test/integration/shared/testDb.d.ts +115 -4
- package/dist/test/integration/shared/testDb.js +132 -10
- package/dist/test/integration/shared/testDb.js.map +1 -1
- package/dist/test/integration/shared/utils.d.ts +206 -3
- package/dist/test/integration/shared/utils.js +582 -18
- package/dist/test/integration/shared/utils.js.map +1 -1
- package/dist/test/integration/users.api.test.js +6 -4
- package/dist/test/integration/users.api.test.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +22 -15
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: n8n Public API
|
|
4
|
+
description: n8n Public API
|
|
5
|
+
termsOfService: 'https://n8n.io/legal/terms'
|
|
6
|
+
contact:
|
|
7
|
+
email: hello@n8n.io
|
|
8
|
+
license:
|
|
9
|
+
name: Sustainable Use License
|
|
10
|
+
url: 'https://github.com/n8n-io/n8n/blob/master/packages/cli/LICENSE.md'
|
|
11
|
+
version: 1.0.0
|
|
12
|
+
externalDocs:
|
|
13
|
+
description: n8n API documentation
|
|
14
|
+
url: 'https://docs.n8n.io/api/'
|
|
15
|
+
servers:
|
|
16
|
+
- url: /api/v1
|
|
17
|
+
tags:
|
|
18
|
+
- name: Execution
|
|
19
|
+
description: Operations about executions
|
|
20
|
+
- name: Workflow
|
|
21
|
+
description: Operations about workflows
|
|
22
|
+
- name: Credential
|
|
23
|
+
description: Operations about credentials
|
|
24
|
+
paths:
|
|
25
|
+
/credentials:
|
|
26
|
+
post:
|
|
27
|
+
x-eov-operation-id: createCredential
|
|
28
|
+
x-eov-operation-handler: v1/handlers/credentials/credentials.handler
|
|
29
|
+
tags:
|
|
30
|
+
- Credential
|
|
31
|
+
summary: Create a credential
|
|
32
|
+
description: Creates a credential that can be used by nodes of the specified type.
|
|
33
|
+
requestBody:
|
|
34
|
+
description: Credential to be created.
|
|
35
|
+
required: true
|
|
36
|
+
content:
|
|
37
|
+
application/json:
|
|
38
|
+
schema:
|
|
39
|
+
$ref: '#/components/schemas/Credential'
|
|
40
|
+
responses:
|
|
41
|
+
'200':
|
|
42
|
+
description: Operation successful.
|
|
43
|
+
content:
|
|
44
|
+
application/json:
|
|
45
|
+
schema:
|
|
46
|
+
$ref: '#/components/schemas/Credential'
|
|
47
|
+
'401':
|
|
48
|
+
$ref: '#/components/responses/Unauthorized'
|
|
49
|
+
'415':
|
|
50
|
+
description: Unsupported media type.
|
|
51
|
+
'/credentials/{id}':
|
|
52
|
+
delete:
|
|
53
|
+
x-eov-operation-id: deleteCredential
|
|
54
|
+
x-eov-operation-handler: v1/handlers/credentials/credentials.handler
|
|
55
|
+
tags:
|
|
56
|
+
- Credential
|
|
57
|
+
summary: Delete credential by ID
|
|
58
|
+
description: Deletes a credential from your instance. You must be the owner of the credentials
|
|
59
|
+
operationId: deleteCredential
|
|
60
|
+
parameters:
|
|
61
|
+
- name: id
|
|
62
|
+
in: path
|
|
63
|
+
description: The credential ID that needs to be deleted
|
|
64
|
+
required: true
|
|
65
|
+
schema:
|
|
66
|
+
type: number
|
|
67
|
+
responses:
|
|
68
|
+
'200':
|
|
69
|
+
description: Operation successful.
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
$ref: '#/components/schemas/Credential'
|
|
74
|
+
'401':
|
|
75
|
+
$ref: '#/components/responses/Unauthorized'
|
|
76
|
+
'404':
|
|
77
|
+
$ref: '#/components/responses/NotFound'
|
|
78
|
+
'/credentials/schema/{credentialTypeName}':
|
|
79
|
+
get:
|
|
80
|
+
x-eov-operation-id: getCredentialType
|
|
81
|
+
x-eov-operation-handler: v1/handlers/credentials/credentials.handler
|
|
82
|
+
tags:
|
|
83
|
+
- Credential
|
|
84
|
+
summary: Show credential data schema
|
|
85
|
+
parameters:
|
|
86
|
+
- name: credentialTypeName
|
|
87
|
+
in: path
|
|
88
|
+
description: The credential type name that you want to get the schema for
|
|
89
|
+
required: true
|
|
90
|
+
schema:
|
|
91
|
+
type: string
|
|
92
|
+
responses:
|
|
93
|
+
'200':
|
|
94
|
+
description: Operation successful.
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
type: object
|
|
99
|
+
examples:
|
|
100
|
+
freshdeskApi:
|
|
101
|
+
value:
|
|
102
|
+
additionalProperties: false
|
|
103
|
+
type: object
|
|
104
|
+
properties:
|
|
105
|
+
apiKey:
|
|
106
|
+
type: string
|
|
107
|
+
domain:
|
|
108
|
+
type: string
|
|
109
|
+
required:
|
|
110
|
+
- apiKey
|
|
111
|
+
- domain
|
|
112
|
+
slackOAuth2Api:
|
|
113
|
+
value:
|
|
114
|
+
additionalProperties: false
|
|
115
|
+
type: object
|
|
116
|
+
properties:
|
|
117
|
+
clientId:
|
|
118
|
+
type: string
|
|
119
|
+
clientSecret:
|
|
120
|
+
type: string
|
|
121
|
+
required:
|
|
122
|
+
- clientId
|
|
123
|
+
- clientSecret
|
|
124
|
+
'401':
|
|
125
|
+
$ref: '#/components/responses/Unauthorized'
|
|
126
|
+
'404':
|
|
127
|
+
$ref: '#/components/responses/NotFound'
|
|
128
|
+
/executions:
|
|
129
|
+
get:
|
|
130
|
+
x-eov-operation-id: getExecutions
|
|
131
|
+
x-eov-operation-handler: v1/handlers/executions/executions.handler
|
|
132
|
+
tags:
|
|
133
|
+
- Execution
|
|
134
|
+
summary: Retrieve all executions
|
|
135
|
+
description: Retrieve all executions from your instance.
|
|
136
|
+
parameters:
|
|
137
|
+
- $ref: '#/components/parameters/IncludeData'
|
|
138
|
+
- name: status
|
|
139
|
+
in: query
|
|
140
|
+
description: Status to filter the executions by.
|
|
141
|
+
required: false
|
|
142
|
+
schema:
|
|
143
|
+
type: string
|
|
144
|
+
enum:
|
|
145
|
+
- error
|
|
146
|
+
- success
|
|
147
|
+
- waiting
|
|
148
|
+
- name: workflowId
|
|
149
|
+
in: query
|
|
150
|
+
description: Workflow to filter the executions by.
|
|
151
|
+
required: false
|
|
152
|
+
schema:
|
|
153
|
+
type: number
|
|
154
|
+
example: 1000
|
|
155
|
+
- $ref: '#/components/parameters/Limit'
|
|
156
|
+
- $ref: '#/components/parameters/Cursor'
|
|
157
|
+
responses:
|
|
158
|
+
'200':
|
|
159
|
+
description: Operation successful.
|
|
160
|
+
content:
|
|
161
|
+
application/json:
|
|
162
|
+
schema:
|
|
163
|
+
$ref: '#/components/schemas/ExecutionList'
|
|
164
|
+
'401':
|
|
165
|
+
$ref: '#/components/responses/Unauthorized'
|
|
166
|
+
'404':
|
|
167
|
+
$ref: '#/components/responses/NotFound'
|
|
168
|
+
'/executions/{id}':
|
|
169
|
+
get:
|
|
170
|
+
x-eov-operation-id: getExecution
|
|
171
|
+
x-eov-operation-handler: v1/handlers/executions/executions.handler
|
|
172
|
+
tags:
|
|
173
|
+
- Execution
|
|
174
|
+
summary: Retrieve an execution
|
|
175
|
+
description: Retrieve an execution from you instance.
|
|
176
|
+
parameters:
|
|
177
|
+
- $ref: '#/components/parameters/ExecutionId'
|
|
178
|
+
- $ref: '#/components/parameters/IncludeData'
|
|
179
|
+
responses:
|
|
180
|
+
'200':
|
|
181
|
+
description: Operation successful.
|
|
182
|
+
content:
|
|
183
|
+
application/json:
|
|
184
|
+
schema:
|
|
185
|
+
$ref: '#/components/schemas/Execution'
|
|
186
|
+
'401':
|
|
187
|
+
$ref: '#/components/responses/Unauthorized'
|
|
188
|
+
'404':
|
|
189
|
+
$ref: '#/components/responses/NotFound'
|
|
190
|
+
delete:
|
|
191
|
+
x-eov-operation-id: deleteExecution
|
|
192
|
+
x-eov-operation-handler: v1/handlers/executions/executions.handler
|
|
193
|
+
tags:
|
|
194
|
+
- Execution
|
|
195
|
+
summary: Delete an execution
|
|
196
|
+
description: Deletes an execution from your instance.
|
|
197
|
+
parameters:
|
|
198
|
+
- $ref: '#/components/parameters/ExecutionId'
|
|
199
|
+
responses:
|
|
200
|
+
'200':
|
|
201
|
+
description: Operation successful.
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
$ref: '#/components/schemas/Execution'
|
|
206
|
+
'401':
|
|
207
|
+
$ref: '#/components/responses/Unauthorized'
|
|
208
|
+
'404':
|
|
209
|
+
$ref: '#/components/responses/NotFound'
|
|
210
|
+
/workflows:
|
|
211
|
+
post:
|
|
212
|
+
x-eov-operation-id: createWorkflow
|
|
213
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
214
|
+
tags:
|
|
215
|
+
- Workflow
|
|
216
|
+
summary: Create a workflow
|
|
217
|
+
description: Create a workflow in your instance.
|
|
218
|
+
requestBody:
|
|
219
|
+
description: Created workflow object.
|
|
220
|
+
content:
|
|
221
|
+
application/json:
|
|
222
|
+
schema:
|
|
223
|
+
$ref: '#/components/schemas/Workflow'
|
|
224
|
+
required: true
|
|
225
|
+
responses:
|
|
226
|
+
'200':
|
|
227
|
+
description: A workflow object
|
|
228
|
+
content:
|
|
229
|
+
application/json:
|
|
230
|
+
schema:
|
|
231
|
+
$ref: '#/components/schemas/Workflow'
|
|
232
|
+
'400':
|
|
233
|
+
$ref: '#/components/responses/BadRequest'
|
|
234
|
+
'401':
|
|
235
|
+
$ref: '#/components/responses/Unauthorized'
|
|
236
|
+
get:
|
|
237
|
+
x-eov-operation-id: getWorkflows
|
|
238
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
239
|
+
tags:
|
|
240
|
+
- Workflow
|
|
241
|
+
summary: Retrieve all workflows
|
|
242
|
+
description: Retrieve all workflows from your instance.
|
|
243
|
+
parameters:
|
|
244
|
+
- name: active
|
|
245
|
+
in: query
|
|
246
|
+
schema:
|
|
247
|
+
type: boolean
|
|
248
|
+
example: true
|
|
249
|
+
- name: tags
|
|
250
|
+
in: query
|
|
251
|
+
required: false
|
|
252
|
+
explode: false
|
|
253
|
+
allowReserved: true
|
|
254
|
+
schema:
|
|
255
|
+
type: string
|
|
256
|
+
example: 'test,production'
|
|
257
|
+
- $ref: '#/components/parameters/Limit'
|
|
258
|
+
- $ref: '#/components/parameters/Cursor'
|
|
259
|
+
responses:
|
|
260
|
+
'200':
|
|
261
|
+
description: Operation successful.
|
|
262
|
+
content:
|
|
263
|
+
application/json:
|
|
264
|
+
schema:
|
|
265
|
+
$ref: '#/components/schemas/WorkflowList'
|
|
266
|
+
'401':
|
|
267
|
+
$ref: '#/components/responses/Unauthorized'
|
|
268
|
+
'/workflows/{id}':
|
|
269
|
+
get:
|
|
270
|
+
x-eov-operation-id: getWorkflow
|
|
271
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
272
|
+
tags:
|
|
273
|
+
- Workflow
|
|
274
|
+
summary: Retrieves a workflow
|
|
275
|
+
description: Retrieves a workflow.
|
|
276
|
+
parameters:
|
|
277
|
+
- $ref: '#/components/parameters/WorkflowId'
|
|
278
|
+
responses:
|
|
279
|
+
'200':
|
|
280
|
+
description: Operation successful.
|
|
281
|
+
content:
|
|
282
|
+
application/json:
|
|
283
|
+
schema:
|
|
284
|
+
$ref: '#/components/schemas/Workflow'
|
|
285
|
+
'401':
|
|
286
|
+
$ref: '#/components/responses/Unauthorized'
|
|
287
|
+
'404':
|
|
288
|
+
$ref: '#/components/responses/NotFound'
|
|
289
|
+
delete:
|
|
290
|
+
x-eov-operation-id: deleteWorkflow
|
|
291
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
292
|
+
tags:
|
|
293
|
+
- Workflow
|
|
294
|
+
summary: Delete a workflow
|
|
295
|
+
description: Deletes a workflow.
|
|
296
|
+
parameters:
|
|
297
|
+
- $ref: '#/components/parameters/WorkflowId'
|
|
298
|
+
responses:
|
|
299
|
+
'200':
|
|
300
|
+
description: Operation successful.
|
|
301
|
+
content:
|
|
302
|
+
application/json:
|
|
303
|
+
schema:
|
|
304
|
+
$ref: '#/components/schemas/Workflow'
|
|
305
|
+
'401':
|
|
306
|
+
$ref: '#/components/responses/Unauthorized'
|
|
307
|
+
'404':
|
|
308
|
+
$ref: '#/components/responses/NotFound'
|
|
309
|
+
put:
|
|
310
|
+
x-eov-operation-id: updateWorkflow
|
|
311
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
312
|
+
tags:
|
|
313
|
+
- Workflow
|
|
314
|
+
summary: Update a workflow
|
|
315
|
+
description: Update a workflow.
|
|
316
|
+
parameters:
|
|
317
|
+
- $ref: '#/components/parameters/WorkflowId'
|
|
318
|
+
requestBody:
|
|
319
|
+
description: Updated workflow object.
|
|
320
|
+
content:
|
|
321
|
+
application/json:
|
|
322
|
+
schema:
|
|
323
|
+
$ref: '#/components/schemas/Workflow'
|
|
324
|
+
required: true
|
|
325
|
+
responses:
|
|
326
|
+
'200':
|
|
327
|
+
description: Workflow object
|
|
328
|
+
content:
|
|
329
|
+
application/json:
|
|
330
|
+
schema:
|
|
331
|
+
$ref: '#/components/schemas/Workflow'
|
|
332
|
+
'400':
|
|
333
|
+
$ref: '#/components/responses/BadRequest'
|
|
334
|
+
'401':
|
|
335
|
+
$ref: '#/components/responses/Unauthorized'
|
|
336
|
+
'404':
|
|
337
|
+
$ref: '#/components/responses/NotFound'
|
|
338
|
+
'/workflows/{id}/activate':
|
|
339
|
+
post:
|
|
340
|
+
x-eov-operation-id: activateWorkflow
|
|
341
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
342
|
+
tags:
|
|
343
|
+
- Workflow
|
|
344
|
+
summary: Activate a workflow
|
|
345
|
+
description: Active a workflow.
|
|
346
|
+
parameters:
|
|
347
|
+
- $ref: '#/components/parameters/WorkflowId'
|
|
348
|
+
responses:
|
|
349
|
+
'200':
|
|
350
|
+
description: Workflow object
|
|
351
|
+
content:
|
|
352
|
+
application/json:
|
|
353
|
+
schema:
|
|
354
|
+
$ref: '#/components/schemas/Workflow'
|
|
355
|
+
'401':
|
|
356
|
+
$ref: '#/components/responses/Unauthorized'
|
|
357
|
+
'404':
|
|
358
|
+
$ref: '#/components/responses/NotFound'
|
|
359
|
+
'/workflows/{id}/deactivate':
|
|
360
|
+
post:
|
|
361
|
+
x-eov-operation-id: deactivateWorkflow
|
|
362
|
+
x-eov-operation-handler: v1/handlers/workflows/workflows.handler
|
|
363
|
+
tags:
|
|
364
|
+
- Workflow
|
|
365
|
+
summary: Deactivate a workflow
|
|
366
|
+
description: Deactivate a workflow.
|
|
367
|
+
parameters:
|
|
368
|
+
- $ref: '#/components/parameters/WorkflowId'
|
|
369
|
+
responses:
|
|
370
|
+
'200':
|
|
371
|
+
description: Workflow object
|
|
372
|
+
content:
|
|
373
|
+
application/json:
|
|
374
|
+
schema:
|
|
375
|
+
$ref: '#/components/schemas/Workflow'
|
|
376
|
+
'401':
|
|
377
|
+
$ref: '#/components/responses/Unauthorized'
|
|
378
|
+
'404':
|
|
379
|
+
$ref: '#/components/responses/NotFound'
|
|
380
|
+
components:
|
|
381
|
+
schemas:
|
|
382
|
+
Error:
|
|
383
|
+
required:
|
|
384
|
+
- message
|
|
385
|
+
type: object
|
|
386
|
+
properties:
|
|
387
|
+
code:
|
|
388
|
+
type: string
|
|
389
|
+
message:
|
|
390
|
+
type: string
|
|
391
|
+
description:
|
|
392
|
+
type: string
|
|
393
|
+
Execution:
|
|
394
|
+
type: object
|
|
395
|
+
properties:
|
|
396
|
+
id:
|
|
397
|
+
type: number
|
|
398
|
+
example: 1000
|
|
399
|
+
data:
|
|
400
|
+
type: object
|
|
401
|
+
finished:
|
|
402
|
+
type: boolean
|
|
403
|
+
example: true
|
|
404
|
+
mode:
|
|
405
|
+
type: string
|
|
406
|
+
enum:
|
|
407
|
+
- cli
|
|
408
|
+
- error
|
|
409
|
+
- integrated
|
|
410
|
+
- internal
|
|
411
|
+
- manual
|
|
412
|
+
- retry
|
|
413
|
+
- trigger
|
|
414
|
+
- webhook
|
|
415
|
+
retryOf:
|
|
416
|
+
type: string
|
|
417
|
+
nullable: true
|
|
418
|
+
retrySuccessId:
|
|
419
|
+
type: string
|
|
420
|
+
nullable: true
|
|
421
|
+
example: 2
|
|
422
|
+
startedAt:
|
|
423
|
+
type: string
|
|
424
|
+
format: date-time
|
|
425
|
+
stoppedAt:
|
|
426
|
+
type: string
|
|
427
|
+
format: date-time
|
|
428
|
+
workflowId:
|
|
429
|
+
type: string
|
|
430
|
+
example: 1000
|
|
431
|
+
waitTill:
|
|
432
|
+
type: string
|
|
433
|
+
nullable: true
|
|
434
|
+
format: date-time
|
|
435
|
+
Node:
|
|
436
|
+
type: object
|
|
437
|
+
additionalProperties: false
|
|
438
|
+
properties:
|
|
439
|
+
name:
|
|
440
|
+
type: string
|
|
441
|
+
example: Jira
|
|
442
|
+
webhookId:
|
|
443
|
+
type: string
|
|
444
|
+
disabled:
|
|
445
|
+
type: boolean
|
|
446
|
+
notesInFlow:
|
|
447
|
+
type: boolean
|
|
448
|
+
notes:
|
|
449
|
+
type: string
|
|
450
|
+
type:
|
|
451
|
+
type: string
|
|
452
|
+
example: n8n-nodes-base.Jira
|
|
453
|
+
typeVersion:
|
|
454
|
+
type: number
|
|
455
|
+
example: 1
|
|
456
|
+
position:
|
|
457
|
+
type: array
|
|
458
|
+
items:
|
|
459
|
+
type: number
|
|
460
|
+
example:
|
|
461
|
+
- -100
|
|
462
|
+
- 80
|
|
463
|
+
parameters:
|
|
464
|
+
type: object
|
|
465
|
+
example:
|
|
466
|
+
additionalProperties: {}
|
|
467
|
+
credentials:
|
|
468
|
+
type: object
|
|
469
|
+
example:
|
|
470
|
+
jiraSoftwareCloudApi:
|
|
471
|
+
id: '35'
|
|
472
|
+
name: jiraApi
|
|
473
|
+
createdAt:
|
|
474
|
+
type: string
|
|
475
|
+
format: date-time
|
|
476
|
+
readOnly: true
|
|
477
|
+
updatedAt:
|
|
478
|
+
type: string
|
|
479
|
+
format: date-time
|
|
480
|
+
readOnly: true
|
|
481
|
+
Tag:
|
|
482
|
+
type: object
|
|
483
|
+
properties:
|
|
484
|
+
id:
|
|
485
|
+
type: string
|
|
486
|
+
example: 12
|
|
487
|
+
name:
|
|
488
|
+
type: string
|
|
489
|
+
example: Production
|
|
490
|
+
createdAt:
|
|
491
|
+
type: string
|
|
492
|
+
format: date-time
|
|
493
|
+
readOnly: true
|
|
494
|
+
updatedAt:
|
|
495
|
+
type: string
|
|
496
|
+
format: date-time
|
|
497
|
+
readOnly: true
|
|
498
|
+
Workflow:
|
|
499
|
+
type: object
|
|
500
|
+
required:
|
|
501
|
+
- name
|
|
502
|
+
- nodes
|
|
503
|
+
- connections
|
|
504
|
+
- settings
|
|
505
|
+
properties:
|
|
506
|
+
id:
|
|
507
|
+
type: number
|
|
508
|
+
readOnly: true
|
|
509
|
+
example: 1
|
|
510
|
+
name:
|
|
511
|
+
type: string
|
|
512
|
+
example: Workflow 1
|
|
513
|
+
active:
|
|
514
|
+
type: boolean
|
|
515
|
+
readOnly: true
|
|
516
|
+
createdAt:
|
|
517
|
+
type: string
|
|
518
|
+
format: date-time
|
|
519
|
+
readOnly: true
|
|
520
|
+
updatedAt:
|
|
521
|
+
type: string
|
|
522
|
+
format: date-time
|
|
523
|
+
readOnly: true
|
|
524
|
+
nodes:
|
|
525
|
+
type: array
|
|
526
|
+
items:
|
|
527
|
+
$ref: '#/components/schemas/Node'
|
|
528
|
+
connections:
|
|
529
|
+
type: object
|
|
530
|
+
example:
|
|
531
|
+
main:
|
|
532
|
+
- node: Jira
|
|
533
|
+
type: main
|
|
534
|
+
index: 0
|
|
535
|
+
settings:
|
|
536
|
+
$ref: '#/components/schemas/WorkflowSettings'
|
|
537
|
+
staticData:
|
|
538
|
+
type: string
|
|
539
|
+
nullable: true
|
|
540
|
+
example: '{ iterationId: 2 }'
|
|
541
|
+
tags:
|
|
542
|
+
type: array
|
|
543
|
+
items:
|
|
544
|
+
$ref: '#/components/schemas/Tag'
|
|
545
|
+
readOnly: true
|
|
546
|
+
WorkflowSettings:
|
|
547
|
+
type: object
|
|
548
|
+
additionalProperties: false
|
|
549
|
+
properties:
|
|
550
|
+
saveExecutionProgress:
|
|
551
|
+
type: boolean
|
|
552
|
+
saveManualExecutions:
|
|
553
|
+
type: boolean
|
|
554
|
+
saveDataErrorExecution:
|
|
555
|
+
type: string
|
|
556
|
+
enum:
|
|
557
|
+
- all
|
|
558
|
+
- none
|
|
559
|
+
saveDataSuccessExecution:
|
|
560
|
+
type: string
|
|
561
|
+
enum:
|
|
562
|
+
- all
|
|
563
|
+
- none
|
|
564
|
+
executionTimeout:
|
|
565
|
+
type: number
|
|
566
|
+
example: 3600
|
|
567
|
+
maxLength: 3600
|
|
568
|
+
errorWorkflow:
|
|
569
|
+
type: string
|
|
570
|
+
example: 10
|
|
571
|
+
description: The ID of the workflow that contains the error trigger node.
|
|
572
|
+
timezone:
|
|
573
|
+
type: string
|
|
574
|
+
example: America/New_York
|
|
575
|
+
ExecutionList:
|
|
576
|
+
type: object
|
|
577
|
+
properties:
|
|
578
|
+
data:
|
|
579
|
+
type: array
|
|
580
|
+
items:
|
|
581
|
+
$ref: '#/components/schemas/Execution'
|
|
582
|
+
nextCursor:
|
|
583
|
+
type: string
|
|
584
|
+
description: Paginate through executions by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.
|
|
585
|
+
nullable: true
|
|
586
|
+
example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
|
|
587
|
+
WorkflowList:
|
|
588
|
+
type: object
|
|
589
|
+
properties:
|
|
590
|
+
data:
|
|
591
|
+
type: array
|
|
592
|
+
items:
|
|
593
|
+
$ref: '#/components/schemas/Workflow'
|
|
594
|
+
nextCursor:
|
|
595
|
+
type: string
|
|
596
|
+
description: Paginate through workflows by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.
|
|
597
|
+
nullable: true
|
|
598
|
+
example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
|
|
599
|
+
Credential:
|
|
600
|
+
required:
|
|
601
|
+
- name
|
|
602
|
+
- type
|
|
603
|
+
- data
|
|
604
|
+
type: object
|
|
605
|
+
properties:
|
|
606
|
+
id:
|
|
607
|
+
type: number
|
|
608
|
+
readOnly: true
|
|
609
|
+
example: 42
|
|
610
|
+
name:
|
|
611
|
+
type: string
|
|
612
|
+
example: Joe's Github Credentials
|
|
613
|
+
type:
|
|
614
|
+
type: string
|
|
615
|
+
example: github
|
|
616
|
+
data:
|
|
617
|
+
type: object
|
|
618
|
+
writeOnly: true
|
|
619
|
+
example:
|
|
620
|
+
token: ada612vad6fa5df4adf5a5dsf4389adsf76da7s
|
|
621
|
+
createdAt:
|
|
622
|
+
type: string
|
|
623
|
+
format: date-time
|
|
624
|
+
readOnly: true
|
|
625
|
+
example: '2022-04-29T11:02:29.842Z'
|
|
626
|
+
updatedAt:
|
|
627
|
+
type: string
|
|
628
|
+
format: date-time
|
|
629
|
+
readOnly: true
|
|
630
|
+
example: '2022-04-29T11:02:29.842Z'
|
|
631
|
+
CredentialType:
|
|
632
|
+
type: object
|
|
633
|
+
properties:
|
|
634
|
+
displayName:
|
|
635
|
+
type: string
|
|
636
|
+
readOnly: true
|
|
637
|
+
example: Email
|
|
638
|
+
name:
|
|
639
|
+
type: string
|
|
640
|
+
readOnly: true
|
|
641
|
+
example: email
|
|
642
|
+
type:
|
|
643
|
+
type: string
|
|
644
|
+
readOnly: true
|
|
645
|
+
example: string
|
|
646
|
+
default:
|
|
647
|
+
type: string
|
|
648
|
+
readOnly: true
|
|
649
|
+
example: string
|
|
650
|
+
responses:
|
|
651
|
+
NotFound:
|
|
652
|
+
description: The specified resource was not found.
|
|
653
|
+
Unauthorized:
|
|
654
|
+
description: Unauthorized
|
|
655
|
+
BadRequest:
|
|
656
|
+
description: The request is invalid or provides malformed data.
|
|
657
|
+
parameters:
|
|
658
|
+
Cursor:
|
|
659
|
+
name: cursor
|
|
660
|
+
in: query
|
|
661
|
+
description: Paginate through users by setting the cursor parameter to a nextCursor attribute returned by a previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.
|
|
662
|
+
required: false
|
|
663
|
+
style: form
|
|
664
|
+
schema:
|
|
665
|
+
type: string
|
|
666
|
+
Limit:
|
|
667
|
+
name: limit
|
|
668
|
+
in: query
|
|
669
|
+
description: The maximum number of items to return.
|
|
670
|
+
required: false
|
|
671
|
+
schema:
|
|
672
|
+
type: number
|
|
673
|
+
example: 100
|
|
674
|
+
default: 100
|
|
675
|
+
maximum: 250
|
|
676
|
+
ExecutionId:
|
|
677
|
+
name: id
|
|
678
|
+
in: path
|
|
679
|
+
description: The ID of the execution.
|
|
680
|
+
required: true
|
|
681
|
+
schema:
|
|
682
|
+
type: number
|
|
683
|
+
WorkflowId:
|
|
684
|
+
name: id
|
|
685
|
+
in: path
|
|
686
|
+
description: The ID of the workflow.
|
|
687
|
+
required: true
|
|
688
|
+
schema:
|
|
689
|
+
type: number
|
|
690
|
+
IncludeData:
|
|
691
|
+
name: includeData
|
|
692
|
+
in: query
|
|
693
|
+
description: Whether or not to include the execution's detailed data.
|
|
694
|
+
required: false
|
|
695
|
+
schema:
|
|
696
|
+
type: boolean
|
|
697
|
+
securitySchemes:
|
|
698
|
+
ApiKeyAuth:
|
|
699
|
+
type: apiKey
|
|
700
|
+
in: header
|
|
701
|
+
name: X-N8N-API-KEY
|
|
702
|
+
security:
|
|
703
|
+
- ApiKeyAuth: []
|