1 /**
2 * @oas [get] /admin/api-keys
3 * operationId: GetApiKeys
4 * summary: List API Keys
5 * description: Retrieve a list of API keys. The API keys can be filtered by fields such as `id`. The API keys can also be sorted or paginated.
6 * x-authenticated: true
7 * parameters:
8 * - name: fields
9 * in: query
10 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
11 * fields. without prefix it will replace the entire default fields.
12 * required: false
13 * schema:
14 * type: string
15 * title: fields
16 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
17 * fields. without prefix it will replace the entire default fields.
18 * externalDocs:
19 * url: "#select-fields-and-relations"
20 * - name: offset
21 * in: query
22 * description: The number of items to skip when retrieving a list.
23 * required: false
24 * schema:
25 * type: number
26 * title: offset
27 * description: The number of items to skip when retrieving a list.
28 * externalDocs:
29 * url: "#pagination"
30 * - name: limit
31 * in: query
32 * description: Limit the number of items returned in the list.
33 * required: false
34 * schema:
35 * type: number
36 * title: limit
37 * description: Limit the number of items returned in the list.
38 * externalDocs:
39 * url: "#pagination"
40 * - name: order
41 * in: query
42 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
43 * required: false
44 * schema:
45 * type: string
46 * title: order
47 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
48 * externalDocs:
49 * url: "#pagination"
50 * - name: q
51 * in: query
52 * description: A search term to search the API keys' searchable properties.
53 * required: false
54 * schema:
55 * type: string
56 * title: q
57 * description: The search term.
58 * - name: id
59 * in: query
60 * required: false
61 * schema:
62 * oneOf:
63 * - type: string
64 * title: id
65 * description: Filter by an API key's ID.
66 * - type: array
67 * description: Filter by API key IDs.
68 * items:
69 * type: string
70 * title: id
71 * description: The API key ID.
72 * - name: title
73 * in: query
74 * required: false
75 * schema:
76 * oneOf:
77 * - type: string
78 * title: title
79 * description: Filter by an API key's title.
80 * - type: array
81 * description: Filter by API key titles.
82 * items:
83 * type: string
84 * title: title
85 * description: The API key title.
86 * - name: token
87 * in: query
88 * required: false
89 * schema:
90 * oneOf:
91 * - type: string
92 * title: token
93 * description: Filter by an API key's token.
94 * - type: array
95 * description: Filter by API key tokens.
96 * items:
97 * type: string
98 * title: token
99 * description: The API key token.
100 * - name: type
101 * in: query
102 * description: Filter by the API key's type.
103 * required: false
104 * schema:
105 * type: string
106 * enum:
107 * - secret
108 * - publishable
109 * - name: created_at
110 * in: query
111 * description: Filter by the API key's creation date.
112 * required: false
113 * schema:
114 * type: object
115 * description: Filter by the API key's creation date.
116 * properties:
117 * $and:
118 * type: array
119 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
120 * items:
121 * type: object
122 * title: $and
123 * $or:
124 * type: array
125 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
126 * items:
127 * type: object
128 * title: $or
129 * $eq:
130 * oneOf:
131 * - type: string
132 * title: $eq
133 * description: Filter by an exact match.
134 * - type: array
135 * description: Filter by multiple exact matches.
136 * items:
137 * type: string
138 * title: $eq
139 * description: An exact match.
140 * $ne:
141 * type: string
142 * title: $ne
143 * description: Filter by values not equal to this parameter.
144 * $in:
145 * type: array
146 * description: Filter by values in this array.
147 * items:
148 * type: string
149 * title: $in
150 * description: The value to match.
151 * $nin:
152 * type: array
153 * description: Filter by values not in this array.
154 * items:
155 * type: string
156 * title: $nin
157 * description: The value not to match.
158 * $not:
159 * oneOf:
160 * - type: string
161 * title: $not
162 * description: Filter by values not matching this parameter.
163 * - type: object
164 * description: Filter by values not matching the conditions in this parameter.
165 * properties:
166 * $and:
167 * type: array
168 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
169 * items:
170 * type: object
171 * title: $and
172 * $or:
173 * type: array
174 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
175 * items:
176 * type: object
177 * title: $or
178 * $eq:
179 * oneOf:
180 * - type: string
181 * title: $eq
182 * description: Filter by an exact match.
183 * - type: array
184 * description: Filter by multiple exact matches.
185 * items:
186 * type: string
187 * title: $eq
188 * description: The value to match.
189 * $ne:
190 * type: string
191 * title: $ne
192 * description: Filter by values not matching this parameter.
193 * $in:
194 * type: array
195 * description: Filter by values in this array.
196 * items:
197 * type: string
198 * title: $in
199 * description: The value to match.
200 * $nin:
201 * type: array
202 * description: Filter by values not in this array.
203 * items:
204 * type: string
205 * title: $nin
206 * description: The value to not match
207 * $not:
208 * oneOf:
209 * - type: string
210 * title: $not
211 * description: Filter by values not matching this parameter
212 * - type: object
213 * description: Filter by values not matching the conditions in this parameter.
214 * - type: array
215 * description: Filter by values not matching the values of this parameter.
216 * items:
217 * type: string
218 * title: $not
219 * description: The values to not match.
220 * $gt:
221 * type: string
222 * title: $gt
223 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
224 * $gte:
225 * type: string
226 * title: $gte
227 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
228 * $lt:
229 * type: string
230 * title: $lt
231 * description: Filter by values less than this parameter. Useful for numbers and dates only.
232 * $lte:
233 * type: string
234 * title: $lte
235 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
236 * $like:
237 * type: string
238 * title: $like
239 * description: Apply a `like` filter. Useful for strings only.
240 * $re:
241 * type: string
242 * title: $re
243 * description: Apply a regex filter. Useful for strings only.
244 * $ilike:
245 * type: string
246 * title: $ilike
247 * description: Apply a case-insensitive `like` filter. Useful for strings only.
248 * $fulltext:
249 * type: string
250 * title: $fulltext
251 * description: Filter to apply on full-text properties.
252 * $overlap:
253 * type: array
254 * description: Filter arrays that have overlapping values with this parameter.
255 * items:
256 * type: string
257 * title: $overlap
258 * description: The value to match.
259 * $contains:
260 * type: array
261 * description: Filter arrays that contain some of the values of this parameter.
262 * items:
263 * type: string
264 * title: $contains
265 * description: The values to match.
266 * $contained:
267 * type: array
268 * description: Filter arrays that contain all values of this parameter.
269 * items:
270 * type: string
271 * title: $contained
272 * description: The values to match.
273 * $exists:
274 * type: boolean
275 * title: $exists
276 * description: Filter by whether a value for this parameter exists (not `null`).
277 * - type: array
278 * description: Filter by values not matching those in this parameter.
279 * items:
280 * type: string
281 * title: $not
282 * description: The values to not match.
283 * $gt:
284 * type: string
285 * title: $gt
286 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
287 * $gte:
288 * type: string
289 * title: $gte
290 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
291 * $lt:
292 * type: string
293 * title: $lt
294 * description: Filter by values less than this parameter. Useful for numbers and dates only.
295 * $lte:
296 * type: string
297 * title: $lte
298 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
299 * $like:
300 * type: string
301 * title: $like
302 * description: Apply a `like` filter. Useful for strings only.
303 * $re:
304 * type: string
305 * title: $re
306 * description: Apply a regex filter. Useful for strings only.
307 * $ilike:
308 * type: string
309 * title: $ilike
310 * description: Apply a case-insensitive `like` filter. Useful for strings only.
311 * $fulltext:
312 * type: string
313 * title: $fulltext
314 * description: Filter to apply on full-text properties.
315 * $overlap:
316 * type: array
317 * description: Filter arrays that have overlapping values with this parameter.
318 * items:
319 * type: string
320 * title: $overlap
321 * description: The values to match.
322 * $contains:
323 * type: array
324 * description: Filter arrays that contain some of the values of this parameter.
325 * items:
326 * type: string
327 * title: $contains
328 * description: The values to match.
329 * $contained:
330 * type: array
331 * description: Filter arrays that contain all values of this parameter.
332 * items:
333 * type: string
334 * title: $contained
335 * description: The values to match.
336 * $exists:
337 * type: boolean
338 * title: $exists
339 * description: Filter by whether a value for this parameter exists (not `null`).
340 * title: created_at
341 * - name: updated_at
342 * in: query
343 * description: Filter by the API key's update date.
344 * required: false
345 * schema:
346 * type: object
347 * description: Filter by the API key's update date.
348 * properties:
349 * $and:
350 * type: array
351 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
352 * items:
353 * type: object
354 * title: $and
355 * $or:
356 * type: array
357 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
358 * items:
359 * type: object
360 * title: $or
361 * $eq:
362 * oneOf:
363 * - type: string
364 * title: $eq
365 * description: Filter by an exact match.
366 * - type: array
367 * description: Filter by multiple exact matches.
368 * items:
369 * type: string
370 * title: $eq
371 * description: An exact match.
372 * $ne:
373 * type: string
374 * title: $ne
375 * description: Filter by values not equal to this parameter.
376 * $in:
377 * type: array
378 * description: Filter by values in this array.
379 * items:
380 * type: string
381 * title: $in
382 * description: The value to match.
383 * $nin:
384 * type: array
385 * description: Filter by values not in this array.
386 * items:
387 * type: string
388 * title: $nin
389 * description: The value not to match.
390 * $not:
391 * oneOf:
392 * - type: string
393 * title: $not
394 * description: Filter by values not matching this parameter.
395 * - type: object
396 * description: Filter by values not matching the conditions in this parameter.
397 * properties:
398 * $and:
399 * type: array
400 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
401 * items:
402 * type: object
403 * title: $and
404 * $or:
405 * type: array
406 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
407 * items:
408 * type: object
409 * title: $or
410 * $eq:
411 * oneOf:
412 * - type: string
413 * title: $eq
414 * description: Filter by an exact match.
415 * - type: array
416 * description: Filter by multiple exact matches.
417 * items:
418 * type: string
419 * title: $eq
420 * description: The value to match.
421 * $ne:
422 * type: string
423 * title: $ne
424 * description: Filter by values not matching this parameter.
425 * $in:
426 * type: array
427 * description: Filter by values in this array.
428 * items:
429 * type: string
430 * title: $in
431 * description: The value to match.
432 * $nin:
433 * type: array
434 * description: Filter by values not in this array.
435 * items:
436 * type: string
437 * title: $nin
438 * description: The value to not match
439 * $not:
440 * oneOf:
441 * - type: string
442 * title: $not
443 * description: Filter by values not matching this parameter
444 * - type: object
445 * description: Filter by values not matching the conditions in this parameter.
446 * - type: array
447 * description: Filter by values not matching the values of this parameter.
448 * items:
449 * type: string
450 * title: $not
451 * description: The values to not match.
452 * $gt:
453 * type: string
454 * title: $gt
455 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
456 * $gte:
457 * type: string
458 * title: $gte
459 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
460 * $lt:
461 * type: string
462 * title: $lt
463 * description: Filter by values less than this parameter. Useful for numbers and dates only.
464 * $lte:
465 * type: string
466 * title: $lte
467 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
468 * $like:
469 * type: string
470 * title: $like
471 * description: Apply a `like` filter. Useful for strings only.
472 * $re:
473 * type: string
474 * title: $re
475 * description: Apply a regex filter. Useful for strings only.
476 * $ilike:
477 * type: string
478 * title: $ilike
479 * description: Apply a case-insensitive `like` filter. Useful for strings only.
480 * $fulltext:
481 * type: string
482 * title: $fulltext
483 * description: Filter to apply on full-text properties.
484 * $overlap:
485 * type: array
486 * description: Filter arrays that have overlapping values with this parameter.
487 * items:
488 * type: string
489 * title: $overlap
490 * description: The value to match.
491 * $contains:
492 * type: array
493 * description: Filter arrays that contain some of the values of this parameter.
494 * items:
495 * type: string
496 * title: $contains
497 * description: The values to match.
498 * $contained:
499 * type: array
500 * description: Filter arrays that contain all values of this parameter.
501 * items:
502 * type: string
503 * title: $contained
504 * description: The values to match.
505 * $exists:
506 * type: boolean
507 * title: $exists
508 * description: Filter by whether a value for this parameter exists (not `null`).
509 * - type: array
510 * description: Filter by values not matching those in this parameter.
511 * items:
512 * type: string
513 * title: $not
514 * description: The values to not match.
515 * $gt:
516 * type: string
517 * title: $gt
518 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
519 * $gte:
520 * type: string
521 * title: $gte
522 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
523 * $lt:
524 * type: string
525 * title: $lt
526 * description: Filter by values less than this parameter. Useful for numbers and dates only.
527 * $lte:
528 * type: string
529 * title: $lte
530 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
531 * $like:
532 * type: string
533 * title: $like
534 * description: Apply a `like` filter. Useful for strings only.
535 * $re:
536 * type: string
537 * title: $re
538 * description: Apply a regex filter. Useful for strings only.
539 * $ilike:
540 * type: string
541 * title: $ilike
542 * description: Apply a case-insensitive `like` filter. Useful for strings only.
543 * $fulltext:
544 * type: string
545 * title: $fulltext
546 * description: Filter to apply on full-text properties.
547 * $overlap:
548 * type: array
549 * description: Filter arrays that have overlapping values with this parameter.
550 * items:
551 * type: string
552 * title: $overlap
553 * description: The values to match.
554 * $contains:
555 * type: array
556 * description: Filter arrays that contain some of the values of this parameter.
557 * items:
558 * type: string
559 * title: $contains
560 * description: The values to match.
561 * $contained:
562 * type: array
563 * description: Filter arrays that contain all values of this parameter.
564 * items:
565 * type: string
566 * title: $contained
567 * description: The values to match.
568 * $exists:
569 * type: boolean
570 * title: $exists
571 * description: Filter by whether a value for this parameter exists (not `null`).
572 * title: updated_at
573 * - name: deleted_at
574 * in: query
575 * description: Filter by the API key's deletion date.
576 * required: false
577 * schema:
578 * type: object
579 * description: Filter by the API key's deletion date.
580 * properties:
581 * $and:
582 * type: array
583 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
584 * items:
585 * type: object
586 * title: $and
587 * $or:
588 * type: array
589 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
590 * items:
591 * type: object
592 * title: $or
593 * $eq:
594 * oneOf:
595 * - type: string
596 * title: $eq
597 * description: Filter by an exact match.
598 * - type: array
599 * description: Filter by multiple exact matches.
600 * items:
601 * type: string
602 * title: $eq
603 * description: An exact match.
604 * $ne:
605 * type: string
606 * title: $ne
607 * description: Filter by values not equal to this parameter.
608 * $in:
609 * type: array
610 * description: Filter by values in this array.
611 * items:
612 * type: string
613 * title: $in
614 * description: The value to match.
615 * $nin:
616 * type: array
617 * description: Filter by values not in this array.
618 * items:
619 * type: string
620 * title: $nin
621 * description: The value not to match.
622 * $not:
623 * oneOf:
624 * - type: string
625 * title: $not
626 * description: Filter by values not matching this parameter.
627 * - type: object
628 * description: Filter by values not matching the conditions in this parameter.
629 * properties:
630 * $and:
631 * type: array
632 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
633 * items:
634 * type: object
635 * title: $and
636 * $or:
637 * type: array
638 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
639 * items:
640 * type: object
641 * title: $or
642 * $eq:
643 * oneOf:
644 * - type: string
645 * title: $eq
646 * description: Filter by an exact match.
647 * - type: array
648 * description: Filter by multiple exact matches.
649 * items:
650 * type: string
651 * title: $eq
652 * description: The value to match.
653 * $ne:
654 * type: string
655 * title: $ne
656 * description: Filter by values not matching this parameter.
657 * $in:
658 * type: array
659 * description: Filter by values in this array.
660 * items:
661 * type: string
662 * title: $in
663 * description: The value to match.
664 * $nin:
665 * type: array
666 * description: Filter by values not in this array.
667 * items:
668 * type: string
669 * title: $nin
670 * description: The value to not match
671 * $not:
672 * oneOf:
673 * - type: string
674 * title: $not
675 * description: Filter by values not matching this parameter
676 * - type: object
677 * description: Filter by values not matching the conditions in this parameter.
678 * - type: array
679 * description: Filter by values not matching the values of this parameter.
680 * items:
681 * type: string
682 * title: $not
683 * description: The values to not match.
684 * $gt:
685 * type: string
686 * title: $gt
687 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
688 * $gte:
689 * type: string
690 * title: $gte
691 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
692 * $lt:
693 * type: string
694 * title: $lt
695 * description: Filter by values less than this parameter. Useful for numbers and dates only.
696 * $lte:
697 * type: string
698 * title: $lte
699 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
700 * $like:
701 * type: string
702 * title: $like
703 * description: Apply a `like` filter. Useful for strings only.
704 * $re:
705 * type: string
706 * title: $re
707 * description: Apply a regex filter. Useful for strings only.
708 * $ilike:
709 * type: string
710 * title: $ilike
711 * description: Apply a case-insensitive `like` filter. Useful for strings only.
712 * $fulltext:
713 * type: string
714 * title: $fulltext
715 * description: Filter to apply on full-text properties.
716 * $overlap:
717 * type: array
718 * description: Filter arrays that have overlapping values with this parameter.
719 * items:
720 * type: string
721 * title: $overlap
722 * description: The value to match.
723 * $contains:
724 * type: array
725 * description: Filter arrays that contain some of the values of this parameter.
726 * items:
727 * type: string
728 * title: $contains
729 * description: The values to match.
730 * $contained:
731 * type: array
732 * description: Filter arrays that contain all values of this parameter.
733 * items:
734 * type: string
735 * title: $contained
736 * description: The values to match.
737 * $exists:
738 * type: boolean
739 * title: $exists
740 * description: Filter by whether a value for this parameter exists (not `null`).
741 * - type: array
742 * description: Filter by values not matching those in this parameter.
743 * items:
744 * type: string
745 * title: $not
746 * description: The values to not match.
747 * $gt:
748 * type: string
749 * title: $gt
750 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
751 * $gte:
752 * type: string
753 * title: $gte
754 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
755 * $lt:
756 * type: string
757 * title: $lt
758 * description: Filter by values less than this parameter. Useful for numbers and dates only.
759 * $lte:
760 * type: string
761 * title: $lte
762 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
763 * $like:
764 * type: string
765 * title: $like
766 * description: Apply a `like` filter. Useful for strings only.
767 * $re:
768 * type: string
769 * title: $re
770 * description: Apply a regex filter. Useful for strings only.
771 * $ilike:
772 * type: string
773 * title: $ilike
774 * description: Apply a case-insensitive `like` filter. Useful for strings only.
775 * $fulltext:
776 * type: string
777 * title: $fulltext
778 * description: Filter to apply on full-text properties.
779 * $overlap:
780 * type: array
781 * description: Filter arrays that have overlapping values with this parameter.
782 * items:
783 * type: string
784 * title: $overlap
785 * description: The values to match.
786 * $contains:
787 * type: array
788 * description: Filter arrays that contain some of the values of this parameter.
789 * items:
790 * type: string
791 * title: $contains
792 * description: The values to match.
793 * $contained:
794 * type: array
795 * description: Filter arrays that contain all values of this parameter.
796 * items:
797 * type: string
798 * title: $contained
799 * description: The values to match.
800 * $exists:
801 * type: boolean
802 * title: $exists
803 * description: Filter by whether a value for this parameter exists (not `null`).
804 * title: deleted_at
805 * - name: revoked_at
806 * in: query
807 * description: Filter by the API key's revoke date.
808 * required: false
809 * schema:
810 * type: object
811 * description: Filter by the API key's revoke date.
812 * properties:
813 * $and:
814 * type: array
815 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
816 * items:
817 * type: object
818 * title: $and
819 * $or:
820 * type: array
821 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
822 * items:
823 * type: object
824 * title: $or
825 * $eq:
826 * oneOf:
827 * - type: string
828 * title: $eq
829 * description: Filter by an exact match.
830 * - type: array
831 * description: Filter by multiple exact matches.
832 * items:
833 * type: string
834 * title: $eq
835 * description: An exact match.
836 * $ne:
837 * type: string
838 * title: $ne
839 * description: Filter by values not equal to this parameter.
840 * $in:
841 * type: array
842 * description: Filter by values in this array.
843 * items:
844 * type: string
845 * title: $in
846 * description: The value to match.
847 * $nin:
848 * type: array
849 * description: Filter by values not in this array.
850 * items:
851 * type: string
852 * title: $nin
853 * description: The value not to match.
854 * $not:
855 * oneOf:
856 * - type: string
857 * title: $not
858 * description: Filter by values not matching this parameter.
859 * - type: object
860 * description: Filter by values not matching the conditions in this parameter.
861 * properties:
862 * $and:
863 * type: array
864 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
865 * items:
866 * type: object
867 * title: $and
868 * $or:
869 * type: array
870 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
871 * items:
872 * type: object
873 * title: $or
874 * $eq:
875 * oneOf:
876 * - type: string
877 * title: $eq
878 * description: Filter by an exact match.
879 * - type: array
880 * description: Filter by multiple exact matches.
881 * items:
882 * type: string
883 * title: $eq
884 * description: The value to match.
885 * $ne:
886 * type: string
887 * title: $ne
888 * description: Filter by values not matching this parameter.
889 * $in:
890 * type: array
891 * description: Filter by values in this array.
892 * items:
893 * type: string
894 * title: $in
895 * description: The value to match.
896 * $nin:
897 * type: array
898 * description: Filter by values not in this array.
899 * items:
900 * type: string
901 * title: $nin
902 * description: The value to not match
903 * $not:
904 * oneOf:
905 * - type: string
906 * title: $not
907 * description: Filter by values not matching this parameter
908 * - type: object
909 * description: Filter by values not matching the conditions in this parameter.
910 * - type: array
911 * description: Filter by values not matching the values of this parameter.
912 * items:
913 * type: string
914 * title: $not
915 * description: The values to not match.
916 * $gt:
917 * type: string
918 * title: $gt
919 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
920 * $gte:
921 * type: string
922 * title: $gte
923 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
924 * $lt:
925 * type: string
926 * title: $lt
927 * description: Filter by values less than this parameter. Useful for numbers and dates only.
928 * $lte:
929 * type: string
930 * title: $lte
931 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
932 * $like:
933 * type: string
934 * title: $like
935 * description: Apply a `like` filter. Useful for strings only.
936 * $re:
937 * type: string
938 * title: $re
939 * description: Apply a regex filter. Useful for strings only.
940 * $ilike:
941 * type: string
942 * title: $ilike
943 * description: Apply a case-insensitive `like` filter. Useful for strings only.
944 * $fulltext:
945 * type: string
946 * title: $fulltext
947 * description: Filter to apply on full-text properties.
948 * $overlap:
949 * type: array
950 * description: Filter arrays that have overlapping values with this parameter.
951 * items:
952 * type: string
953 * title: $overlap
954 * description: The value to match.
955 * $contains:
956 * type: array
957 * description: Filter arrays that contain some of the values of this parameter.
958 * items:
959 * type: string
960 * title: $contains
961 * description: The values to match.
962 * $contained:
963 * type: array
964 * description: Filter arrays that contain all values of this parameter.
965 * items:
966 * type: string
967 * title: $contained
968 * description: The values to match.
969 * $exists:
970 * type: boolean
971 * title: $exists
972 * description: Filter by whether a value for this parameter exists (not `null`).
973 * - type: array
974 * description: Filter by values not matching those in this parameter.
975 * items:
976 * type: string
977 * title: $not
978 * description: The values to not match.
979 * $gt:
980 * type: string
981 * title: $gt
982 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
983 * $gte:
984 * type: string
985 * title: $gte
986 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
987 * $lt:
988 * type: string
989 * title: $lt
990 * description: Filter by values less than this parameter. Useful for numbers and dates only.
991 * $lte:
992 * type: string
993 * title: $lte
994 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
995 * $like:
996 * type: string
997 * title: $like
998 * description: Apply a `like` filter. Useful for strings only.
999 * $re:
1000 * type: string
1001 * title: $re
1002 * description: Apply a regex filter. Useful for strings only.
1003 * $ilike:
1004 * type: string
1005 * title: $ilike
1006 * description: Apply a case-insensitive `like` filter. Useful for strings only.
1007 * $fulltext:
1008 * type: string
1009 * title: $fulltext
1010 * description: Filter to apply on full-text properties.
1011 * $overlap:
1012 * type: array
1013 * description: Filter arrays that have overlapping values with this parameter.
1014 * items:
1015 * type: string
1016 * title: $overlap
1017 * description: The values to match.
1018 * $contains:
1019 * type: array
1020 * description: Filter arrays that contain some of the values of this parameter.
1021 * items:
1022 * type: string
1023 * title: $contains
1024 * description: The values to match.
1025 * $contained:
1026 * type: array
1027 * description: Filter arrays that contain all values of this parameter.
1028 * items:
1029 * type: string
1030 * title: $contained
1031 * description: The values to match.
1032 * $exists:
1033 * type: boolean
1034 * title: $exists
1035 * description: Filter by whether a value for this parameter exists (not `null`).
1036 * title: revoked_at
1037 * - name: $and
1038 * in: query
1039 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
1040 * required: false
1041 * schema:
1042 * type: array
1043 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
1044 * items:
1045 * type: object
1046 * title: $and
1047 * - name: $or
1048 * in: query
1049 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
1050 * required: false
1051 * schema:
1052 * type: array
1053 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
1054 * items:
1055 * type: object
1056 * title: $or
1057 * - name: with_deleted
1058 * in: query
1059 * description: Whether to include deleted records in the result.
1060 * required: false
1061 * schema:
1062 * type: boolean
1063 * title: with_deleted
1064 * description: Whether to include deleted records in the result.
1065 * security:
1066 * - api_token: []
1067 * - cookie_auth: []
1068 * - jwt_token: []
1069 * x-codeSamples:
1070 * - lang: JavaScript
1071 * label: JS SDK
1072 * source: |-
1073 * import Medusa from "@medusajs/js-sdk"
1074 *
1075 * export const sdk = new Medusa({
1076 * baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
1077 * debug: import.meta.env.DEV,
1078 * auth: {
1079 * type: "session",
1080 * },
1081 * })
1082 *
1083 * sdk.admin.apiKey.list()
1084 * .then(({ api_keys, count, limit, offset }) => {
1085 * console.log(api_keys)
1086 * })
1087 * - lang: Shell
1088 * label: cURL
1089 * source: |-
1090 * curl '{backend_url}/admin/api-keys' \
1091 * -H 'Authorization: Bearer {jwt_token}'
1092 * tags:
1093 * - Api Keys
1094 * responses:
1095 * "200":
1096 * description: OK
1097 * content:
1098 * application/json:
1099 * schema:
1100 * allOf:
1101 * - type: object
1102 * required:
1103 * - limit
1104 * - offset
1105 * - count
1106 * properties:
1107 * limit:
1108 * type: number
1109 * title: limit
1110 * description: The maximum number of items returned in the list.
1111 * offset:
1112 * type: number
1113 * title: offset
1114 * description: The number of items skipped before retrieving the returned items.
1115 * count:
1116 * type: number
1117 * title: count
1118 * description: The total count of items.
1119 * - type: object
1120 * required:
1121 * - api_keys
1122 * properties:
1123 * api_keys:
1124 * type: array
1125 * description: The list of API keys.
1126 * items:
1127 * $ref: "#/components/schemas/ApiKeyResponse"
1128 * "400":
1129 * $ref: "#/components/responses/400_error"
1130 * "401":
1131 * $ref: "#/components/responses/unauthorized"
1132 * "404":
1133 * $ref: "#/components/responses/not_found_error"
1134 * "409":
1135 * $ref: "#/components/responses/invalid_state_error"
1136 * "422":
1137 * $ref: "#/components/responses/invalid_request_error"
1138 * "500":
1139 * $ref: "#/components/responses/500_error"
1140 *
1141 */
1142