Raw
1 get:
2 operationId: GetWorkflowsExecutions
3 summary: List Workflows Executions
4 description: >-
5 Retrieve a list of workflows executions. The workflows executions can be
6 filtered by fields such as `id`. The workflows executions can also be sorted
7 or paginated.
8 x-authenticated: true
9 parameters:
10 - name: fields
11 in: query
12 description: >-
13 Comma-separated fields that should be included in the returned data. if
14 a field is prefixed with `+` it will be added to the default fields,
15 using `-` will remove it from the default fields. without prefix it will
16 replace the entire default fields.
17 required: false
18 schema:
19 type: string
20 title: fields
21 description: >-
22 Comma-separated fields that should be included in the returned data.
23 if a field is prefixed with `+` it will be added to the default
24 fields, using `-` will remove it from the default fields. without
25 prefix it will replace the entire default fields.
26 externalDocs:
27 url: '#select-fields-and-relations'
28 - name: offset
29 in: query
30 description: The number of items to skip when retrieving a list.
31 required: false
32 schema:
33 type: number
34 title: offset
35 description: The number of items to skip when retrieving a list.
36 externalDocs:
37 url: '#pagination'
38 - name: limit
39 in: query
40 description: Limit the number of items returned in the list.
41 required: false
42 schema:
43 type: number
44 title: limit
45 description: Limit the number of items returned in the list.
46 externalDocs:
47 url: '#pagination'
48 - name: order
49 in: query
50 description: >-
51 The field to sort the data by. By default, the sort order is ascending.
52 To change the order to descending, prefix the field name with `-`.
53 required: false
54 schema:
55 type: string
56 title: order
57 description: >-
58 The field to sort the data by. By default, the sort order is
59 ascending. To change the order to descending, prefix the field name
60 with `-`.
61 - name: transaction_id
62 in: query
63 required: false
64 schema:
65 oneOf:
66 - type: string
67 title: transaction_id
68 description: Filter by a transaction ID.
69 - type: array
70 description: Filter by transaction IDs.
71 items:
72 type: string
73 title: transaction_id
74 description: A transaction ID.
75 - name: workflow_id
76 in: query
77 required: false
78 schema:
79 oneOf:
80 - type: string
81 title: workflow_id
82 description: Filter by a workflow ID.
83 - type: array
84 description: Filter by workflow IDs.
85 items:
86 type: string
87 title: workflow_id
88 description: A workflow ID.
89 - name: q
90 in: query
91 description: Search query to filter by a workflow execution's searchable fields.
92 required: false
93 schema:
94 type: string
95 title: q
96 description: Search query to filter by a workflow execution's searchable fields.
97 - name: with_deleted
98 in: query
99 description: Whether to include deleted records in the result.
100 required: false
101 schema:
102 type: boolean
103 title: with_deleted
104 description: Whether to include deleted records in the result.
105 - name: state
106 in: query
107 required: false
108 schema:
109 oneOf:
110 - type: string
111 title: state
112 description: Filter by a workflow execution's state.
113 - type: array
114 description: Filter by workflow execution states.
115 items:
116 type: string
117 title: state
118 description: A workflow execution state.
119 - name: created_at
120 in: query
121 description: Filter by the workflow execution's creation date.
122 required: false
123 schema:
124 type: object
125 properties:
126 $and:
127 type: array
128 description: >-
129 Join query parameters with an AND condition. Each object's content
130 is the same type as the expected query parameters.
131 items:
132 type: object
133 $or:
134 type: array
135 description: >-
136 Join query parameters with an OR condition. Each object's content
137 is the same type as the expected query parameters.
138 items:
139 type: object
140 $eq:
141 oneOf:
142 - type: string
143 title: $eq
144 description: Filter by exact value.
145 - type: array
146 title: $eq
147 description: Filter by exact value.
148 items:
149 type: string
150 $ne:
151 type: string
152 title: $ne
153 description: Filter by not equal to the given value.
154 $in:
155 type: array
156 title: $in
157 description: Filter by values included in the given array.
158 items:
159 type: string
160 $nin:
161 type: array
162 title: $nin
163 description: Filter by values not included in the given array.
164 items:
165 type: string
166 $not:
167 oneOf:
168 - type: string
169 title: $not
170 description: Filter by not equal to the given value.
171 - type: object
172 title: $not
173 description: >-
174 Filter by values not matching the conditions in this
175 parameter.
176 - type: array
177 title: $not
178 description: >-
179 Filter by values not matching the conditions in this
180 parameter.
181 items:
182 type: string
183 $gt:
184 type: string
185 title: $gt
186 description: Filter by values greater than the given value.
187 $gte:
188 type: string
189 title: $gte
190 description: Filter by values greater than or equal to the given value.
191 $lt:
192 type: string
193 title: $lt
194 description: Filter by values less than the given value.
195 $lte:
196 type: string
197 title: $lte
198 description: Filter by values less than or equal to the given value.
199 $like:
200 type: string
201 title: $like
202 description: Apply a `like` filter. Useful for strings only.
203 $re:
204 type: string
205 title: $re
206 description: Apply a regex filter. Useful for strings only.
207 $ilike:
208 type: string
209 title: $ilike
210 description: Apply a case-insensitive `like` filter. Useful for strings only.
211 $fulltext:
212 type: string
213 title: $fulltext
214 description: Filter to apply on full-text properties.
215 $overlap:
216 type: array
217 title: $overlap
218 description: Filter to apply on array properties to find overlapping values.
219 items:
220 type: string
221 $contains:
222 type: array
223 title: $contains
224 description: Filter to apply on array properties to find contained values.
225 items:
226 type: string
227 $contained:
228 type: array
229 title: $contained
230 description: Filter to apply on array properties to find contained values.
231 items:
232 type: string
233 $exists:
234 type: boolean
235 title: $exists
236 description: Filter by whether a value exists or not.
237 title: created_at
238 description: The workflows execution's created at.
239 security:
240 - api_token: []
241 - cookie_auth: []
242 - jwt_token: []
243 x-codeSamples:
244 - lang: JavaScript
245 label: JS SDK
246 source:
247 $ref: ../code_samples/JavaScript/admin_workflows-executions/get.js
248 - lang: Shell
249 label: cURL
250 source:
251 $ref: ../code_samples/Shell/admin_workflows-executions/get.sh
252 tags:
253 - Workflows Executions
254 responses:
255 '200':
256 description: OK
257 content:
258 application/json:
259 schema:
260 allOf:
261 - type: object
262 description: The paginated list of workflow executions.
263 required:
264 - limit
265 - offset
266 - count
267 properties:
268 limit:
269 type: number
270 title: limit
271 description: The maximum number of items returned.
272 offset:
273 type: number
274 title: offset
275 description: >-
276 The number of items skipped before retrieving the returned
277 items.
278 count:
279 type: number
280 title: count
281 description: The total number of items.
282 - type: object
283 description: The paginated list of workflow executions.
284 required:
285 - workflow_executions
286 properties:
287 workflow_executions:
288 type: array
289 description: The workflows execution's workflow executions.
290 items:
291 $ref: ../components/schemas/AdminWorkflowExecution.yaml
292 '400':
293 $ref: ../components/responses/400_error.yaml
294 '401':
295 $ref: ../components/responses/unauthorized.yaml
296 '404':
297 $ref: ../components/responses/not_found_error.yaml
298 '409':
299 $ref: ../components/responses/invalid_state_error.yaml
300 '422':
301 $ref: ../components/responses/invalid_request_error.yaml
302 '500':
303 $ref: ../components/responses/500_error.yaml