Raw
1 get:
2 operationId: GetUsers
3 summary: List Users
4 description: >-
5 Retrieve a list of users. The users can be filtered by fields such as `id`.
6 The users can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: fields
10 in: query
11 description: >-
12 Comma-separated fields that should be included in the returned data. if
13 a field is prefixed with `+` it will be added to the default fields,
14 using `-` will remove it from the default fields. without prefix it will
15 replace the entire default fields.
16 required: false
17 schema:
18 type: string
19 title: fields
20 description: >-
21 Comma-separated fields that should be included in the returned data.
22 if a field is prefixed with `+` it will be added to the default
23 fields, using `-` will remove it from the default fields. without
24 prefix it will replace the entire default fields.
25 externalDocs:
26 url: '#select-fields-and-relations'
27 - name: offset
28 in: query
29 description: The number of items to skip when retrieving a list.
30 required: false
31 schema:
32 type: number
33 title: offset
34 description: The number of items to skip when retrieving a list.
35 externalDocs:
36 url: '#pagination'
37 - name: limit
38 in: query
39 description: Limit the number of items returned in the list.
40 required: false
41 schema:
42 type: number
43 title: limit
44 description: Limit the number of items returned in the list.
45 externalDocs:
46 url: '#pagination'
47 - name: order
48 in: query
49 description: >-
50 The field to sort the data by. By default, the sort order is ascending.
51 To change the order to descending, prefix the field name with `-`.
52 required: false
53 schema:
54 type: string
55 title: order
56 description: >-
57 The field to sort the data by. By default, the sort order is
58 ascending. To change the order to descending, prefix the field name
59 with `-`.
60 - name: q
61 in: query
62 description: The search term to filter the user's searchable properties.
63 required: false
64 schema:
65 type: string
66 title: q
67 description: The search term to filter the user's searchable properties.
68 - name: id
69 in: query
70 required: false
71 schema:
72 oneOf:
73 - type: string
74 title: id
75 description: Filter by a user's ID.
76 - type: array
77 description: Filter by user IDs.
78 items:
79 type: string
80 title: id
81 description: A user's ID.
82 - name: email
83 in: query
84 description: Filter by an email.
85 required: false
86 schema:
87 type: string
88 title: email
89 description: Filter by an email.
90 format: email
91 - name: first_name
92 in: query
93 description: Filter by a first name.
94 required: false
95 schema:
96 type: string
97 title: first_name
98 description: Filter by a first name.
99 - name: last_name
100 in: query
101 description: Filter by a last name.
102 required: false
103 schema:
104 type: string
105 title: last_name
106 description: Filter by a last name.
107 - name: created_at
108 in: query
109 description: Filter by a user's creation date.
110 required: false
111 schema:
112 type: object
113 description: Filter by a user's creation date.
114 properties:
115 $and:
116 type: array
117 description: >-
118 Join query parameters with an AND condition. Each object's content
119 is the same type as the expected query parameters.
120 items:
121 type: object
122 title: $and
123 $or:
124 type: array
125 description: >-
126 Join query parameters with an OR condition. Each object's content
127 is the same type as the expected query parameters.
128 items:
129 type: object
130 title: $or
131 $eq:
132 oneOf:
133 - type: string
134 title: $eq
135 description: Filter by an exact match.
136 - type: array
137 description: Filter by an exact match.
138 items:
139 type: string
140 title: $eq
141 description: Filter by an exact match.
142 $ne:
143 type: string
144 title: $ne
145 description: Filter by values not equal to this parameter.
146 $in:
147 type: array
148 description: Filter by values in this array.
149 items:
150 type: string
151 title: $in
152 description: Filter by values in this array.
153 $nin:
154 type: array
155 description: Filter by values not in this array.
156 items:
157 type: string
158 title: $nin
159 description: Filter by values not in this array.
160 $not:
161 oneOf:
162 - type: string
163 title: $not
164 description: >-
165 Filter by values not matching the conditions in this
166 parameter.
167 - type: object
168 description: >-
169 Filter by values not matching the conditions in this
170 parameter.
171 - type: array
172 description: >-
173 Filter by values not matching the conditions in this
174 parameter.
175 items:
176 type: string
177 title: $not
178 description: >-
179 Filter by values not matching the conditions in this
180 parameter.
181 $gt:
182 type: string
183 title: $gt
184 description: >-
185 Filter by values greater than this parameter. Useful for numbers
186 and dates only.
187 $gte:
188 type: string
189 title: $gte
190 description: >-
191 Filter by values greater than or equal to this parameter. Useful
192 for numbers and dates only.
193 $lt:
194 type: string
195 title: $lt
196 description: >-
197 Filter by values less than this parameter. Useful for numbers and
198 dates only.
199 $lte:
200 type: string
201 title: $lte
202 description: >-
203 Filter by values less than or equal to this parameter. Useful for
204 numbers and dates only.
205 $like:
206 type: string
207 title: $like
208 description: Apply a `like` filter. Useful for strings only.
209 $re:
210 type: string
211 title: $re
212 description: Apply a regex filter. Useful for strings only.
213 $ilike:
214 type: string
215 title: $ilike
216 description: Apply a case-insensitive `like` filter. Useful for strings only.
217 $fulltext:
218 type: string
219 title: $fulltext
220 description: Filter to apply on full-text properties.
221 $overlap:
222 type: array
223 description: Filter arrays that have overlapping values with this parameter.
224 items:
225 type: string
226 title: $overlap
227 description: Filter arrays that have overlapping values with this parameter.
228 $contains:
229 type: array
230 description: Filter arrays that contain some of the values of this parameter.
231 items:
232 type: string
233 title: $contains
234 description: Filter arrays that contain some of the values of this parameter.
235 $contained:
236 type: array
237 description: Filter arrays that contain all values of this parameter.
238 items:
239 type: string
240 title: $contained
241 description: Filter arrays that contain all values of this parameter.
242 $exists:
243 type: boolean
244 title: $exists
245 description: Filter by whether a value for this parameter exists (not `null`).
246 title: created_at
247 - name: updated_at
248 in: query
249 description: Filter by a user's update date.
250 required: false
251 schema:
252 type: object
253 description: Filter by a user's update date.
254 properties:
255 $and:
256 type: array
257 description: >-
258 Join query parameters with an AND condition. Each object's content
259 is the same type as the expected query parameters.
260 items:
261 type: object
262 title: $and
263 $or:
264 type: array
265 description: >-
266 Join query parameters with an OR condition. Each object's content
267 is the same type as the expected query parameters.
268 items:
269 type: object
270 title: $or
271 $eq:
272 oneOf:
273 - type: string
274 title: $eq
275 description: Filter by an exact match.
276 - type: array
277 description: Filter by an exact match.
278 items:
279 type: string
280 title: $eq
281 description: Filter by an exact match.
282 $ne:
283 type: string
284 title: $ne
285 description: Filter by values not equal to this parameter.
286 $in:
287 type: array
288 description: Filter by values in this array.
289 items:
290 type: string
291 title: $in
292 description: Filter by values in this array.
293 $nin:
294 type: array
295 description: Filter by values not in this array.
296 items:
297 type: string
298 title: $nin
299 description: Filter by values not in this array.
300 $not:
301 oneOf:
302 - type: string
303 title: $not
304 description: >-
305 Filter by values not matching the conditions in this
306 parameter.
307 - type: object
308 description: >-
309 Filter by values not matching the conditions in this
310 parameter.
311 - type: array
312 description: >-
313 Filter by values not matching the conditions in this
314 parameter.
315 items:
316 type: string
317 title: $not
318 description: >-
319 Filter by values not matching the conditions in this
320 parameter.
321 $gt:
322 type: string
323 title: $gt
324 description: >-
325 Filter by values greater than this parameter. Useful for numbers
326 and dates only.
327 $gte:
328 type: string
329 title: $gte
330 description: >-
331 Filter by values greater than or equal to this parameter. Useful
332 for numbers and dates only.
333 $lt:
334 type: string
335 title: $lt
336 description: >-
337 Filter by values less than this parameter. Useful for numbers and
338 dates only.
339 $lte:
340 type: string
341 title: $lte
342 description: >-
343 Filter by values less than or equal to this parameter. Useful for
344 numbers and dates only.
345 $like:
346 type: string
347 title: $like
348 description: Apply a `like` filter. Useful for strings only.
349 $re:
350 type: string
351 title: $re
352 description: Apply a regex filter. Useful for strings only.
353 $ilike:
354 type: string
355 title: $ilike
356 description: Apply a case-insensitive `like` filter. Useful for strings only.
357 $fulltext:
358 type: string
359 title: $fulltext
360 description: Filter to apply on full-text properties.
361 $overlap:
362 type: array
363 description: Filter arrays that have overlapping values with this parameter.
364 items:
365 type: string
366 title: $overlap
367 description: Filter arrays that have overlapping values with this parameter.
368 $contains:
369 type: array
370 description: Filter arrays that contain some of the values of this parameter.
371 items:
372 type: string
373 title: $contains
374 description: Filter arrays that contain some of the values of this parameter.
375 $contained:
376 type: array
377 description: Filter arrays that contain all values of this parameter.
378 items:
379 type: string
380 title: $contained
381 description: Filter arrays that contain all values of this parameter.
382 $exists:
383 type: boolean
384 title: $exists
385 description: Filter by whether a value for this parameter exists (not `null`).
386 title: updated_at
387 - name: deleted_at
388 in: query
389 description: Filter by a user's deletion date.
390 required: false
391 schema:
392 type: object
393 description: Filter by a user's deletion date.
394 properties:
395 $and:
396 type: array
397 description: >-
398 Join query parameters with an AND condition. Each object's content
399 is the same type as the expected query parameters.
400 items:
401 type: object
402 title: $and
403 $or:
404 type: array
405 description: >-
406 Join query parameters with an OR condition. Each object's content
407 is the same type as the expected query parameters.
408 items:
409 type: object
410 title: $or
411 $eq:
412 oneOf:
413 - type: string
414 title: $eq
415 description: Filter by an exact match.
416 - type: array
417 description: Filter by an exact match.
418 items:
419 type: string
420 title: $eq
421 description: Filter by an exact match.
422 $ne:
423 type: string
424 title: $ne
425 description: Filter by values not equal to this parameter.
426 $in:
427 type: array
428 description: Filter by values in this array.
429 items:
430 type: string
431 title: $in
432 description: Filter by values in this array.
433 $nin:
434 type: array
435 description: Filter by values not in this array.
436 items:
437 type: string
438 title: $nin
439 description: Filter by values not in this array.
440 $not:
441 oneOf:
442 - type: string
443 title: $not
444 description: >-
445 Filter by values not matching the conditions in this
446 parameter.
447 - type: object
448 description: >-
449 Filter by values not matching the conditions in this
450 parameter.
451 - type: array
452 description: >-
453 Filter by values not matching the conditions in this
454 parameter.
455 items:
456 type: string
457 title: $not
458 description: >-
459 Filter by values not matching the conditions in this
460 parameter.
461 $gt:
462 type: string
463 title: $gt
464 description: >-
465 Filter by values greater than this parameter. Useful for numbers
466 and dates only.
467 $gte:
468 type: string
469 title: $gte
470 description: >-
471 Filter by values greater than or equal to this parameter. Useful
472 for numbers and dates only.
473 $lt:
474 type: string
475 title: $lt
476 description: >-
477 Filter by values less than this parameter. Useful for numbers and
478 dates only.
479 $lte:
480 type: string
481 title: $lte
482 description: >-
483 Filter by values less than or equal to this parameter. Useful for
484 numbers and dates only.
485 $like:
486 type: string
487 title: $like
488 description: Apply a `like` filter. Useful for strings only.
489 $re:
490 type: string
491 title: $re
492 description: Apply a regex filter. Useful for strings only.
493 $ilike:
494 type: string
495 title: $ilike
496 description: Apply a case-insensitive `like` filter. Useful for strings only.
497 $fulltext:
498 type: string
499 title: $fulltext
500 description: Filter to apply on full-text properties.
501 $overlap:
502 type: array
503 description: Filter arrays that have overlapping values with this parameter.
504 items:
505 type: string
506 title: $overlap
507 description: Filter arrays that have overlapping values with this parameter.
508 $contains:
509 type: array
510 description: Filter arrays that contain some of the values of this parameter.
511 items:
512 type: string
513 title: $contains
514 description: Filter arrays that contain some of the values of this parameter.
515 $contained:
516 type: array
517 description: Filter arrays that contain all values of this parameter.
518 items:
519 type: string
520 title: $contained
521 description: Filter arrays that contain all values of this parameter.
522 $exists:
523 type: boolean
524 title: $exists
525 description: Filter by whether a value for this parameter exists (not `null`).
526 title: deleted_at
527 - name: with_deleted
528 in: query
529 description: Whether to include deleted records in the result.
530 required: false
531 schema:
532 type: boolean
533 title: with_deleted
534 description: Whether to include deleted records in the result.
535 x-codeSamples:
536 - lang: JavaScript
537 label: JS SDK
538 source:
539 $ref: ../code_samples/JavaScript/admin_users/get.js
540 - lang: Shell
541 label: cURL
542 source:
543 $ref: ../code_samples/Shell/admin_users/get.sh
544 tags:
545 - Users
546 responses:
547 '200':
548 description: OK
549 content:
550 application/json:
551 schema:
552 $ref: ../components/schemas/AdminUserListResponse.yaml
553 '400':
554 $ref: ../components/responses/400_error.yaml
555 '401':
556 $ref: ../components/responses/unauthorized.yaml
557 '404':
558 $ref: ../components/responses/not_found_error.yaml
559 '409':
560 $ref: ../components/responses/invalid_state_error.yaml
561 '422':
562 $ref: ../components/responses/invalid_request_error.yaml
563 '500':
564 $ref: ../components/responses/500_error.yaml
565 security:
566 - cookie_auth: []
567 - jwt_token: []