|
1
|
get: |
|
2
|
operationId: GetApiKeys |
|
3
|
summary: List API Keys |
|
4
|
description: >- |
|
5
|
Retrieve a list of API keys. The API keys can be filtered by fields such as |
|
6
|
`id`. The API keys 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
|
externalDocs: |
|
61
|
url: '#pagination' |
|
62
|
- name: q |
|
63
|
in: query |
|
64
|
description: A search term to search the API keys' searchable properties. |
|
65
|
required: false |
|
66
|
schema: |
|
67
|
type: string |
|
68
|
title: q |
|
69
|
description: The search term. |
|
70
|
- name: id |
|
71
|
in: query |
|
72
|
required: false |
|
73
|
schema: |
|
74
|
oneOf: |
|
75
|
- type: string |
|
76
|
title: id |
|
77
|
description: Filter by an API key's ID. |
|
78
|
- type: array |
|
79
|
description: Filter by API key IDs. |
|
80
|
items: |
|
81
|
type: string |
|
82
|
title: id |
|
83
|
description: The API key ID. |
|
84
|
- name: title |
|
85
|
in: query |
|
86
|
required: false |
|
87
|
schema: |
|
88
|
oneOf: |
|
89
|
- type: string |
|
90
|
title: title |
|
91
|
description: Filter by an API key's title. |
|
92
|
- type: array |
|
93
|
description: Filter by API key titles. |
|
94
|
items: |
|
95
|
type: string |
|
96
|
title: title |
|
97
|
description: The API key title. |
|
98
|
- name: token |
|
99
|
in: query |
|
100
|
required: false |
|
101
|
schema: |
|
102
|
oneOf: |
|
103
|
- type: string |
|
104
|
title: token |
|
105
|
description: Filter by an API key's token. |
|
106
|
- type: array |
|
107
|
description: Filter by API key tokens. |
|
108
|
items: |
|
109
|
type: string |
|
110
|
title: token |
|
111
|
description: The API key token. |
|
112
|
- name: type |
|
113
|
in: query |
|
114
|
description: Filter by the API key's type. |
|
115
|
required: false |
|
116
|
schema: |
|
117
|
type: string |
|
118
|
enum: |
|
119
|
- secret |
|
120
|
- publishable |
|
121
|
- name: created_at |
|
122
|
in: query |
|
123
|
description: Filter by the API key's creation date. |
|
124
|
required: false |
|
125
|
schema: |
|
126
|
type: object |
|
127
|
description: Filter by the API key's creation date. |
|
128
|
properties: |
|
129
|
$and: |
|
130
|
type: array |
|
131
|
description: >- |
|
132
|
Join query parameters with an AND condition. Each object's content |
|
133
|
is the same type as the expected query parameters. |
|
134
|
items: |
|
135
|
type: object |
|
136
|
title: $and |
|
137
|
$or: |
|
138
|
type: array |
|
139
|
description: >- |
|
140
|
Join query parameters with an OR condition. Each object's content |
|
141
|
is the same type as the expected query parameters. |
|
142
|
items: |
|
143
|
type: object |
|
144
|
title: $or |
|
145
|
$eq: |
|
146
|
oneOf: |
|
147
|
- type: string |
|
148
|
title: $eq |
|
149
|
description: Filter by an exact match. |
|
150
|
- type: array |
|
151
|
description: Filter by multiple exact matches. |
|
152
|
items: |
|
153
|
type: string |
|
154
|
title: $eq |
|
155
|
description: An exact match. |
|
156
|
$ne: |
|
157
|
type: string |
|
158
|
title: $ne |
|
159
|
description: Filter by values not equal to this parameter. |
|
160
|
$in: |
|
161
|
type: array |
|
162
|
description: Filter by values in this array. |
|
163
|
items: |
|
164
|
type: string |
|
165
|
title: $in |
|
166
|
description: The value to match. |
|
167
|
$nin: |
|
168
|
type: array |
|
169
|
description: Filter by values not in this array. |
|
170
|
items: |
|
171
|
type: string |
|
172
|
title: $nin |
|
173
|
description: The value not to match. |
|
174
|
$not: |
|
175
|
oneOf: |
|
176
|
- type: string |
|
177
|
title: $not |
|
178
|
description: Filter by values not matching this parameter. |
|
179
|
- type: object |
|
180
|
description: >- |
|
181
|
Filter by values not matching the conditions in this |
|
182
|
parameter. |
|
183
|
properties: |
|
184
|
$and: |
|
185
|
type: array |
|
186
|
description: >- |
|
187
|
Join query parameters with an AND condition. Each object's |
|
188
|
content is the same type as the expected query parameters. |
|
189
|
items: |
|
190
|
type: object |
|
191
|
title: $and |
|
192
|
$or: |
|
193
|
type: array |
|
194
|
description: >- |
|
195
|
Join query parameters with an OR condition. Each object's |
|
196
|
content is the same type as the expected query parameters. |
|
197
|
items: |
|
198
|
type: object |
|
199
|
title: $or |
|
200
|
$eq: |
|
201
|
oneOf: |
|
202
|
- type: string |
|
203
|
title: $eq |
|
204
|
description: Filter by an exact match. |
|
205
|
- type: array |
|
206
|
description: Filter by multiple exact matches. |
|
207
|
items: |
|
208
|
type: string |
|
209
|
title: $eq |
|
210
|
description: The value to match. |
|
211
|
$ne: |
|
212
|
type: string |
|
213
|
title: $ne |
|
214
|
description: Filter by values not matching this parameter. |
|
215
|
$in: |
|
216
|
type: array |
|
217
|
description: Filter by values in this array. |
|
218
|
items: |
|
219
|
type: string |
|
220
|
title: $in |
|
221
|
description: The value to match. |
|
222
|
$nin: |
|
223
|
type: array |
|
224
|
description: Filter by values not in this array. |
|
225
|
items: |
|
226
|
type: string |
|
227
|
title: $nin |
|
228
|
description: The value to not match |
|
229
|
$not: |
|
230
|
oneOf: |
|
231
|
- type: string |
|
232
|
title: $not |
|
233
|
description: Filter by values not matching this parameter |
|
234
|
- type: object |
|
235
|
description: >- |
|
236
|
Filter by values not matching the conditions in this |
|
237
|
parameter. |
|
238
|
- type: array |
|
239
|
description: >- |
|
240
|
Filter by values not matching the values of this |
|
241
|
parameter. |
|
242
|
items: |
|
243
|
type: string |
|
244
|
title: $not |
|
245
|
description: The values to not match. |
|
246
|
$gt: |
|
247
|
type: string |
|
248
|
title: $gt |
|
249
|
description: >- |
|
250
|
Filter by values greater than this parameter. Useful for |
|
251
|
numbers and dates only. |
|
252
|
$gte: |
|
253
|
type: string |
|
254
|
title: $gte |
|
255
|
description: >- |
|
256
|
Filter by values greater than or equal to this parameter. |
|
257
|
Useful for numbers and dates only. |
|
258
|
$lt: |
|
259
|
type: string |
|
260
|
title: $lt |
|
261
|
description: >- |
|
262
|
Filter by values less than this parameter. Useful for |
|
263
|
numbers and dates only. |
|
264
|
$lte: |
|
265
|
type: string |
|
266
|
title: $lte |
|
267
|
description: >- |
|
268
|
Filter by values less than or equal to this parameter. |
|
269
|
Useful for numbers and dates only. |
|
270
|
$like: |
|
271
|
type: string |
|
272
|
title: $like |
|
273
|
description: Apply a `like` filter. Useful for strings only. |
|
274
|
$re: |
|
275
|
type: string |
|
276
|
title: $re |
|
277
|
description: Apply a regex filter. Useful for strings only. |
|
278
|
$ilike: |
|
279
|
type: string |
|
280
|
title: $ilike |
|
281
|
description: >- |
|
282
|
Apply a case-insensitive `like` filter. Useful for strings |
|
283
|
only. |
|
284
|
$fulltext: |
|
285
|
type: string |
|
286
|
title: $fulltext |
|
287
|
description: Filter to apply on full-text properties. |
|
288
|
$overlap: |
|
289
|
type: array |
|
290
|
description: >- |
|
291
|
Filter arrays that have overlapping values with this |
|
292
|
parameter. |
|
293
|
items: |
|
294
|
type: string |
|
295
|
title: $overlap |
|
296
|
description: The value to match. |
|
297
|
$contains: |
|
298
|
type: array |
|
299
|
description: >- |
|
300
|
Filter arrays that contain some of the values of this |
|
301
|
parameter. |
|
302
|
items: |
|
303
|
type: string |
|
304
|
title: $contains |
|
305
|
description: The values to match. |
|
306
|
$contained: |
|
307
|
type: array |
|
308
|
description: Filter arrays that contain all values of this parameter. |
|
309
|
items: |
|
310
|
type: string |
|
311
|
title: $contained |
|
312
|
description: The values to match. |
|
313
|
$exists: |
|
314
|
type: boolean |
|
315
|
title: $exists |
|
316
|
description: >- |
|
317
|
Filter by whether a value for this parameter exists (not |
|
318
|
`null`). |
|
319
|
- type: array |
|
320
|
description: Filter by values not matching those in this parameter. |
|
321
|
items: |
|
322
|
type: string |
|
323
|
title: $not |
|
324
|
description: The values to not match. |
|
325
|
$gt: |
|
326
|
type: string |
|
327
|
title: $gt |
|
328
|
description: >- |
|
329
|
Filter by values greater than this parameter. Useful for numbers |
|
330
|
and dates only. |
|
331
|
$gte: |
|
332
|
type: string |
|
333
|
title: $gte |
|
334
|
description: >- |
|
335
|
Filter by values greater than or equal to this parameter. Useful |
|
336
|
for numbers and dates only. |
|
337
|
$lt: |
|
338
|
type: string |
|
339
|
title: $lt |
|
340
|
description: >- |
|
341
|
Filter by values less than this parameter. Useful for numbers and |
|
342
|
dates only. |
|
343
|
$lte: |
|
344
|
type: string |
|
345
|
title: $lte |
|
346
|
description: >- |
|
347
|
Filter by values less than or equal to this parameter. Useful for |
|
348
|
numbers and dates only. |
|
349
|
$like: |
|
350
|
type: string |
|
351
|
title: $like |
|
352
|
description: Apply a `like` filter. Useful for strings only. |
|
353
|
$re: |
|
354
|
type: string |
|
355
|
title: $re |
|
356
|
description: Apply a regex filter. Useful for strings only. |
|
357
|
$ilike: |
|
358
|
type: string |
|
359
|
title: $ilike |
|
360
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
361
|
$fulltext: |
|
362
|
type: string |
|
363
|
title: $fulltext |
|
364
|
description: Filter to apply on full-text properties. |
|
365
|
$overlap: |
|
366
|
type: array |
|
367
|
description: Filter arrays that have overlapping values with this parameter. |
|
368
|
items: |
|
369
|
type: string |
|
370
|
title: $overlap |
|
371
|
description: The values to match. |
|
372
|
$contains: |
|
373
|
type: array |
|
374
|
description: Filter arrays that contain some of the values of this parameter. |
|
375
|
items: |
|
376
|
type: string |
|
377
|
title: $contains |
|
378
|
description: The values to match. |
|
379
|
$contained: |
|
380
|
type: array |
|
381
|
description: Filter arrays that contain all values of this parameter. |
|
382
|
items: |
|
383
|
type: string |
|
384
|
title: $contained |
|
385
|
description: The values to match. |
|
386
|
$exists: |
|
387
|
type: boolean |
|
388
|
title: $exists |
|
389
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
390
|
title: created_at |
|
391
|
- name: updated_at |
|
392
|
in: query |
|
393
|
description: Filter by the API key's update date. |
|
394
|
required: false |
|
395
|
schema: |
|
396
|
type: object |
|
397
|
description: Filter by the API key's update date. |
|
398
|
properties: |
|
399
|
$and: |
|
400
|
type: array |
|
401
|
description: >- |
|
402
|
Join query parameters with an AND condition. Each object's content |
|
403
|
is the same type as the expected query parameters. |
|
404
|
items: |
|
405
|
type: object |
|
406
|
title: $and |
|
407
|
$or: |
|
408
|
type: array |
|
409
|
description: >- |
|
410
|
Join query parameters with an OR condition. Each object's content |
|
411
|
is the same type as the expected query parameters. |
|
412
|
items: |
|
413
|
type: object |
|
414
|
title: $or |
|
415
|
$eq: |
|
416
|
oneOf: |
|
417
|
- type: string |
|
418
|
title: $eq |
|
419
|
description: Filter by an exact match. |
|
420
|
- type: array |
|
421
|
description: Filter by multiple exact matches. |
|
422
|
items: |
|
423
|
type: string |
|
424
|
title: $eq |
|
425
|
description: An exact match. |
|
426
|
$ne: |
|
427
|
type: string |
|
428
|
title: $ne |
|
429
|
description: Filter by values not equal to this parameter. |
|
430
|
$in: |
|
431
|
type: array |
|
432
|
description: Filter by values in this array. |
|
433
|
items: |
|
434
|
type: string |
|
435
|
title: $in |
|
436
|
description: The value to match. |
|
437
|
$nin: |
|
438
|
type: array |
|
439
|
description: Filter by values not in this array. |
|
440
|
items: |
|
441
|
type: string |
|
442
|
title: $nin |
|
443
|
description: The value not to match. |
|
444
|
$not: |
|
445
|
oneOf: |
|
446
|
- type: string |
|
447
|
title: $not |
|
448
|
description: Filter by values not matching this parameter. |
|
449
|
- type: object |
|
450
|
description: >- |
|
451
|
Filter by values not matching the conditions in this |
|
452
|
parameter. |
|
453
|
properties: |
|
454
|
$and: |
|
455
|
type: array |
|
456
|
description: >- |
|
457
|
Join query parameters with an AND condition. Each object's |
|
458
|
content is the same type as the expected query parameters. |
|
459
|
items: |
|
460
|
type: object |
|
461
|
title: $and |
|
462
|
$or: |
|
463
|
type: array |
|
464
|
description: >- |
|
465
|
Join query parameters with an OR condition. Each object's |
|
466
|
content is the same type as the expected query parameters. |
|
467
|
items: |
|
468
|
type: object |
|
469
|
title: $or |
|
470
|
$eq: |
|
471
|
oneOf: |
|
472
|
- type: string |
|
473
|
title: $eq |
|
474
|
description: Filter by an exact match. |
|
475
|
- type: array |
|
476
|
description: Filter by multiple exact matches. |
|
477
|
items: |
|
478
|
type: string |
|
479
|
title: $eq |
|
480
|
description: The value to match. |
|
481
|
$ne: |
|
482
|
type: string |
|
483
|
title: $ne |
|
484
|
description: Filter by values not matching this parameter. |
|
485
|
$in: |
|
486
|
type: array |
|
487
|
description: Filter by values in this array. |
|
488
|
items: |
|
489
|
type: string |
|
490
|
title: $in |
|
491
|
description: The value to match. |
|
492
|
$nin: |
|
493
|
type: array |
|
494
|
description: Filter by values not in this array. |
|
495
|
items: |
|
496
|
type: string |
|
497
|
title: $nin |
|
498
|
description: The value to not match |
|
499
|
$not: |
|
500
|
oneOf: |
|
501
|
- type: string |
|
502
|
title: $not |
|
503
|
description: Filter by values not matching this parameter |
|
504
|
- type: object |
|
505
|
description: >- |
|
506
|
Filter by values not matching the conditions in this |
|
507
|
parameter. |
|
508
|
- type: array |
|
509
|
description: >- |
|
510
|
Filter by values not matching the values of this |
|
511
|
parameter. |
|
512
|
items: |
|
513
|
type: string |
|
514
|
title: $not |
|
515
|
description: The values to not match. |
|
516
|
$gt: |
|
517
|
type: string |
|
518
|
title: $gt |
|
519
|
description: >- |
|
520
|
Filter by values greater than this parameter. Useful for |
|
521
|
numbers and dates only. |
|
522
|
$gte: |
|
523
|
type: string |
|
524
|
title: $gte |
|
525
|
description: >- |
|
526
|
Filter by values greater than or equal to this parameter. |
|
527
|
Useful for numbers and dates only. |
|
528
|
$lt: |
|
529
|
type: string |
|
530
|
title: $lt |
|
531
|
description: >- |
|
532
|
Filter by values less than this parameter. Useful for |
|
533
|
numbers and dates only. |
|
534
|
$lte: |
|
535
|
type: string |
|
536
|
title: $lte |
|
537
|
description: >- |
|
538
|
Filter by values less than or equal to this parameter. |
|
539
|
Useful for numbers and dates only. |
|
540
|
$like: |
|
541
|
type: string |
|
542
|
title: $like |
|
543
|
description: Apply a `like` filter. Useful for strings only. |
|
544
|
$re: |
|
545
|
type: string |
|
546
|
title: $re |
|
547
|
description: Apply a regex filter. Useful for strings only. |
|
548
|
$ilike: |
|
549
|
type: string |
|
550
|
title: $ilike |
|
551
|
description: >- |
|
552
|
Apply a case-insensitive `like` filter. Useful for strings |
|
553
|
only. |
|
554
|
$fulltext: |
|
555
|
type: string |
|
556
|
title: $fulltext |
|
557
|
description: Filter to apply on full-text properties. |
|
558
|
$overlap: |
|
559
|
type: array |
|
560
|
description: >- |
|
561
|
Filter arrays that have overlapping values with this |
|
562
|
parameter. |
|
563
|
items: |
|
564
|
type: string |
|
565
|
title: $overlap |
|
566
|
description: The value to match. |
|
567
|
$contains: |
|
568
|
type: array |
|
569
|
description: >- |
|
570
|
Filter arrays that contain some of the values of this |
|
571
|
parameter. |
|
572
|
items: |
|
573
|
type: string |
|
574
|
title: $contains |
|
575
|
description: The values to match. |
|
576
|
$contained: |
|
577
|
type: array |
|
578
|
description: Filter arrays that contain all values of this parameter. |
|
579
|
items: |
|
580
|
type: string |
|
581
|
title: $contained |
|
582
|
description: The values to match. |
|
583
|
$exists: |
|
584
|
type: boolean |
|
585
|
title: $exists |
|
586
|
description: >- |
|
587
|
Filter by whether a value for this parameter exists (not |
|
588
|
`null`). |
|
589
|
- type: array |
|
590
|
description: Filter by values not matching those in this parameter. |
|
591
|
items: |
|
592
|
type: string |
|
593
|
title: $not |
|
594
|
description: The values to not match. |
|
595
|
$gt: |
|
596
|
type: string |
|
597
|
title: $gt |
|
598
|
description: >- |
|
599
|
Filter by values greater than this parameter. Useful for numbers |
|
600
|
and dates only. |
|
601
|
$gte: |
|
602
|
type: string |
|
603
|
title: $gte |
|
604
|
description: >- |
|
605
|
Filter by values greater than or equal to this parameter. Useful |
|
606
|
for numbers and dates only. |
|
607
|
$lt: |
|
608
|
type: string |
|
609
|
title: $lt |
|
610
|
description: >- |
|
611
|
Filter by values less than this parameter. Useful for numbers and |
|
612
|
dates only. |
|
613
|
$lte: |
|
614
|
type: string |
|
615
|
title: $lte |
|
616
|
description: >- |
|
617
|
Filter by values less than or equal to this parameter. Useful for |
|
618
|
numbers and dates only. |
|
619
|
$like: |
|
620
|
type: string |
|
621
|
title: $like |
|
622
|
description: Apply a `like` filter. Useful for strings only. |
|
623
|
$re: |
|
624
|
type: string |
|
625
|
title: $re |
|
626
|
description: Apply a regex filter. Useful for strings only. |
|
627
|
$ilike: |
|
628
|
type: string |
|
629
|
title: $ilike |
|
630
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
631
|
$fulltext: |
|
632
|
type: string |
|
633
|
title: $fulltext |
|
634
|
description: Filter to apply on full-text properties. |
|
635
|
$overlap: |
|
636
|
type: array |
|
637
|
description: Filter arrays that have overlapping values with this parameter. |
|
638
|
items: |
|
639
|
type: string |
|
640
|
title: $overlap |
|
641
|
description: The values to match. |
|
642
|
$contains: |
|
643
|
type: array |
|
644
|
description: Filter arrays that contain some of the values of this parameter. |
|
645
|
items: |
|
646
|
type: string |
|
647
|
title: $contains |
|
648
|
description: The values to match. |
|
649
|
$contained: |
|
650
|
type: array |
|
651
|
description: Filter arrays that contain all values of this parameter. |
|
652
|
items: |
|
653
|
type: string |
|
654
|
title: $contained |
|
655
|
description: The values to match. |
|
656
|
$exists: |
|
657
|
type: boolean |
|
658
|
title: $exists |
|
659
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
660
|
title: updated_at |
|
661
|
- name: deleted_at |
|
662
|
in: query |
|
663
|
description: Filter by the API key's deletion date. |
|
664
|
required: false |
|
665
|
schema: |
|
666
|
type: object |
|
667
|
description: Filter by the API key's deletion date. |
|
668
|
properties: |
|
669
|
$and: |
|
670
|
type: array |
|
671
|
description: >- |
|
672
|
Join query parameters with an AND condition. Each object's content |
|
673
|
is the same type as the expected query parameters. |
|
674
|
items: |
|
675
|
type: object |
|
676
|
title: $and |
|
677
|
$or: |
|
678
|
type: array |
|
679
|
description: >- |
|
680
|
Join query parameters with an OR condition. Each object's content |
|
681
|
is the same type as the expected query parameters. |
|
682
|
items: |
|
683
|
type: object |
|
684
|
title: $or |
|
685
|
$eq: |
|
686
|
oneOf: |
|
687
|
- type: string |
|
688
|
title: $eq |
|
689
|
description: Filter by an exact match. |
|
690
|
- type: array |
|
691
|
description: Filter by multiple exact matches. |
|
692
|
items: |
|
693
|
type: string |
|
694
|
title: $eq |
|
695
|
description: An exact match. |
|
696
|
$ne: |
|
697
|
type: string |
|
698
|
title: $ne |
|
699
|
description: Filter by values not equal to this parameter. |
|
700
|
$in: |
|
701
|
type: array |
|
702
|
description: Filter by values in this array. |
|
703
|
items: |
|
704
|
type: string |
|
705
|
title: $in |
|
706
|
description: The value to match. |
|
707
|
$nin: |
|
708
|
type: array |
|
709
|
description: Filter by values not in this array. |
|
710
|
items: |
|
711
|
type: string |
|
712
|
title: $nin |
|
713
|
description: The value not to match. |
|
714
|
$not: |
|
715
|
oneOf: |
|
716
|
- type: string |
|
717
|
title: $not |
|
718
|
description: Filter by values not matching this parameter. |
|
719
|
- type: object |
|
720
|
description: >- |
|
721
|
Filter by values not matching the conditions in this |
|
722
|
parameter. |
|
723
|
properties: |
|
724
|
$and: |
|
725
|
type: array |
|
726
|
description: >- |
|
727
|
Join query parameters with an AND condition. Each object's |
|
728
|
content is the same type as the expected query parameters. |
|
729
|
items: |
|
730
|
type: object |
|
731
|
title: $and |
|
732
|
$or: |
|
733
|
type: array |
|
734
|
description: >- |
|
735
|
Join query parameters with an OR condition. Each object's |
|
736
|
content is the same type as the expected query parameters. |
|
737
|
items: |
|
738
|
type: object |
|
739
|
title: $or |
|
740
|
$eq: |
|
741
|
oneOf: |
|
742
|
- type: string |
|
743
|
title: $eq |
|
744
|
description: Filter by an exact match. |
|
745
|
- type: array |
|
746
|
description: Filter by multiple exact matches. |
|
747
|
items: |
|
748
|
type: string |
|
749
|
title: $eq |
|
750
|
description: The value to match. |
|
751
|
$ne: |
|
752
|
type: string |
|
753
|
title: $ne |
|
754
|
description: Filter by values not matching this parameter. |
|
755
|
$in: |
|
756
|
type: array |
|
757
|
description: Filter by values in this array. |
|
758
|
items: |
|
759
|
type: string |
|
760
|
title: $in |
|
761
|
description: The value to match. |
|
762
|
$nin: |
|
763
|
type: array |
|
764
|
description: Filter by values not in this array. |
|
765
|
items: |
|
766
|
type: string |
|
767
|
title: $nin |
|
768
|
description: The value to not match |
|
769
|
$not: |
|
770
|
oneOf: |
|
771
|
- type: string |
|
772
|
title: $not |
|
773
|
description: Filter by values not matching this parameter |
|
774
|
- type: object |
|
775
|
description: >- |
|
776
|
Filter by values not matching the conditions in this |
|
777
|
parameter. |
|
778
|
- type: array |
|
779
|
description: >- |
|
780
|
Filter by values not matching the values of this |
|
781
|
parameter. |
|
782
|
items: |
|
783
|
type: string |
|
784
|
title: $not |
|
785
|
description: The values to not match. |
|
786
|
$gt: |
|
787
|
type: string |
|
788
|
title: $gt |
|
789
|
description: >- |
|
790
|
Filter by values greater than this parameter. Useful for |
|
791
|
numbers and dates only. |
|
792
|
$gte: |
|
793
|
type: string |
|
794
|
title: $gte |
|
795
|
description: >- |
|
796
|
Filter by values greater than or equal to this parameter. |
|
797
|
Useful for numbers and dates only. |
|
798
|
$lt: |
|
799
|
type: string |
|
800
|
title: $lt |
|
801
|
description: >- |
|
802
|
Filter by values less than this parameter. Useful for |
|
803
|
numbers and dates only. |
|
804
|
$lte: |
|
805
|
type: string |
|
806
|
title: $lte |
|
807
|
description: >- |
|
808
|
Filter by values less than or equal to this parameter. |
|
809
|
Useful for numbers and dates only. |
|
810
|
$like: |
|
811
|
type: string |
|
812
|
title: $like |
|
813
|
description: Apply a `like` filter. Useful for strings only. |
|
814
|
$re: |
|
815
|
type: string |
|
816
|
title: $re |
|
817
|
description: Apply a regex filter. Useful for strings only. |
|
818
|
$ilike: |
|
819
|
type: string |
|
820
|
title: $ilike |
|
821
|
description: >- |
|
822
|
Apply a case-insensitive `like` filter. Useful for strings |
|
823
|
only. |
|
824
|
$fulltext: |
|
825
|
type: string |
|
826
|
title: $fulltext |
|
827
|
description: Filter to apply on full-text properties. |
|
828
|
$overlap: |
|
829
|
type: array |
|
830
|
description: >- |
|
831
|
Filter arrays that have overlapping values with this |
|
832
|
parameter. |
|
833
|
items: |
|
834
|
type: string |
|
835
|
title: $overlap |
|
836
|
description: The value to match. |
|
837
|
$contains: |
|
838
|
type: array |
|
839
|
description: >- |
|
840
|
Filter arrays that contain some of the values of this |
|
841
|
parameter. |
|
842
|
items: |
|
843
|
type: string |
|
844
|
title: $contains |
|
845
|
description: The values to match. |
|
846
|
$contained: |
|
847
|
type: array |
|
848
|
description: Filter arrays that contain all values of this parameter. |
|
849
|
items: |
|
850
|
type: string |
|
851
|
title: $contained |
|
852
|
description: The values to match. |
|
853
|
$exists: |
|
854
|
type: boolean |
|
855
|
title: $exists |
|
856
|
description: >- |
|
857
|
Filter by whether a value for this parameter exists (not |
|
858
|
`null`). |
|
859
|
- type: array |
|
860
|
description: Filter by values not matching those in this parameter. |
|
861
|
items: |
|
862
|
type: string |
|
863
|
title: $not |
|
864
|
description: The values to not match. |
|
865
|
$gt: |
|
866
|
type: string |
|
867
|
title: $gt |
|
868
|
description: >- |
|
869
|
Filter by values greater than this parameter. Useful for numbers |
|
870
|
and dates only. |
|
871
|
$gte: |
|
872
|
type: string |
|
873
|
title: $gte |
|
874
|
description: >- |
|
875
|
Filter by values greater than or equal to this parameter. Useful |
|
876
|
for numbers and dates only. |
|
877
|
$lt: |
|
878
|
type: string |
|
879
|
title: $lt |
|
880
|
description: >- |
|
881
|
Filter by values less than this parameter. Useful for numbers and |
|
882
|
dates only. |
|
883
|
$lte: |
|
884
|
type: string |
|
885
|
title: $lte |
|
886
|
description: >- |
|
887
|
Filter by values less than or equal to this parameter. Useful for |
|
888
|
numbers and dates only. |
|
889
|
$like: |
|
890
|
type: string |
|
891
|
title: $like |
|
892
|
description: Apply a `like` filter. Useful for strings only. |
|
893
|
$re: |
|
894
|
type: string |
|
895
|
title: $re |
|
896
|
description: Apply a regex filter. Useful for strings only. |
|
897
|
$ilike: |
|
898
|
type: string |
|
899
|
title: $ilike |
|
900
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
901
|
$fulltext: |
|
902
|
type: string |
|
903
|
title: $fulltext |
|
904
|
description: Filter to apply on full-text properties. |
|
905
|
$overlap: |
|
906
|
type: array |
|
907
|
description: Filter arrays that have overlapping values with this parameter. |
|
908
|
items: |
|
909
|
type: string |
|
910
|
title: $overlap |
|
911
|
description: The values to match. |
|
912
|
$contains: |
|
913
|
type: array |
|
914
|
description: Filter arrays that contain some of the values of this parameter. |
|
915
|
items: |
|
916
|
type: string |
|
917
|
title: $contains |
|
918
|
description: The values to match. |
|
919
|
$contained: |
|
920
|
type: array |
|
921
|
description: Filter arrays that contain all values of this parameter. |
|
922
|
items: |
|
923
|
type: string |
|
924
|
title: $contained |
|
925
|
description: The values to match. |
|
926
|
$exists: |
|
927
|
type: boolean |
|
928
|
title: $exists |
|
929
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
930
|
title: deleted_at |
|
931
|
- name: revoked_at |
|
932
|
in: query |
|
933
|
description: Filter by the API key's revoke date. |
|
934
|
required: false |
|
935
|
schema: |
|
936
|
type: object |
|
937
|
description: Filter by the API key's revoke date. |
|
938
|
properties: |
|
939
|
$and: |
|
940
|
type: array |
|
941
|
description: >- |
|
942
|
Join query parameters with an AND condition. Each object's content |
|
943
|
is the same type as the expected query parameters. |
|
944
|
items: |
|
945
|
type: object |
|
946
|
title: $and |
|
947
|
$or: |
|
948
|
type: array |
|
949
|
description: >- |
|
950
|
Join query parameters with an OR condition. Each object's content |
|
951
|
is the same type as the expected query parameters. |
|
952
|
items: |
|
953
|
type: object |
|
954
|
title: $or |
|
955
|
$eq: |
|
956
|
oneOf: |
|
957
|
- type: string |
|
958
|
title: $eq |
|
959
|
description: Filter by an exact match. |
|
960
|
- type: array |
|
961
|
description: Filter by multiple exact matches. |
|
962
|
items: |
|
963
|
type: string |
|
964
|
title: $eq |
|
965
|
description: An exact match. |
|
966
|
$ne: |
|
967
|
type: string |
|
968
|
title: $ne |
|
969
|
description: Filter by values not equal to this parameter. |
|
970
|
$in: |
|
971
|
type: array |
|
972
|
description: Filter by values in this array. |
|
973
|
items: |
|
974
|
type: string |
|
975
|
title: $in |
|
976
|
description: The value to match. |
|
977
|
$nin: |
|
978
|
type: array |
|
979
|
description: Filter by values not in this array. |
|
980
|
items: |
|
981
|
type: string |
|
982
|
title: $nin |
|
983
|
description: The value not to match. |
|
984
|
$not: |
|
985
|
oneOf: |
|
986
|
- type: string |
|
987
|
title: $not |
|
988
|
description: Filter by values not matching this parameter. |
|
989
|
- type: object |
|
990
|
description: >- |
|
991
|
Filter by values not matching the conditions in this |
|
992
|
parameter. |
|
993
|
properties: |
|
994
|
$and: |
|
995
|
type: array |
|
996
|
description: >- |
|
997
|
Join query parameters with an AND condition. Each object's |
|
998
|
content is the same type as the expected query parameters. |
|
999
|
items: |
|
1000
|
type: object |
|
1001
|
title: $and |
|
1002
|
$or: |
|
1003
|
type: array |
|
1004
|
description: >- |
|
1005
|
Join query parameters with an OR condition. Each object's |
|
1006
|
content is the same type as the expected query parameters. |
|
1007
|
items: |
|
1008
|
type: object |
|
1009
|
title: $or |
|
1010
|
$eq: |
|
1011
|
oneOf: |
|
1012
|
- type: string |
|
1013
|
title: $eq |
|
1014
|
description: Filter by an exact match. |
|
1015
|
- type: array |
|
1016
|
description: Filter by multiple exact matches. |
|
1017
|
items: |
|
1018
|
type: string |
|
1019
|
title: $eq |
|
1020
|
description: The value to match. |
|
1021
|
$ne: |
|
1022
|
type: string |
|
1023
|
title: $ne |
|
1024
|
description: Filter by values not matching this parameter. |
|
1025
|
$in: |
|
1026
|
type: array |
|
1027
|
description: Filter by values in this array. |
|
1028
|
items: |
|
1029
|
type: string |
|
1030
|
title: $in |
|
1031
|
description: The value to match. |
|
1032
|
$nin: |
|
1033
|
type: array |
|
1034
|
description: Filter by values not in this array. |
|
1035
|
items: |
|
1036
|
type: string |
|
1037
|
title: $nin |
|
1038
|
description: The value to not match |
|
1039
|
$not: |
|
1040
|
oneOf: |
|
1041
|
- type: string |
|
1042
|
title: $not |
|
1043
|
description: Filter by values not matching this parameter |
|
1044
|
- type: object |
|
1045
|
description: >- |
|
1046
|
Filter by values not matching the conditions in this |
|
1047
|
parameter. |
|
1048
|
- type: array |
|
1049
|
description: >- |
|
1050
|
Filter by values not matching the values of this |
|
1051
|
parameter. |
|
1052
|
items: |
|
1053
|
type: string |
|
1054
|
title: $not |
|
1055
|
description: The values to not match. |
|
1056
|
$gt: |
|
1057
|
type: string |
|
1058
|
title: $gt |
|
1059
|
description: >- |
|
1060
|
Filter by values greater than this parameter. Useful for |
|
1061
|
numbers and dates only. |
|
1062
|
$gte: |
|
1063
|
type: string |
|
1064
|
title: $gte |
|
1065
|
description: >- |
|
1066
|
Filter by values greater than or equal to this parameter. |
|
1067
|
Useful for numbers and dates only. |
|
1068
|
$lt: |
|
1069
|
type: string |
|
1070
|
title: $lt |
|
1071
|
description: >- |
|
1072
|
Filter by values less than this parameter. Useful for |
|
1073
|
numbers and dates only. |
|
1074
|
$lte: |
|
1075
|
type: string |
|
1076
|
title: $lte |
|
1077
|
description: >- |
|
1078
|
Filter by values less than or equal to this parameter. |
|
1079
|
Useful for numbers and dates only. |
|
1080
|
$like: |
|
1081
|
type: string |
|
1082
|
title: $like |
|
1083
|
description: Apply a `like` filter. Useful for strings only. |
|
1084
|
$re: |
|
1085
|
type: string |
|
1086
|
title: $re |
|
1087
|
description: Apply a regex filter. Useful for strings only. |
|
1088
|
$ilike: |
|
1089
|
type: string |
|
1090
|
title: $ilike |
|
1091
|
description: >- |
|
1092
|
Apply a case-insensitive `like` filter. Useful for strings |
|
1093
|
only. |
|
1094
|
$fulltext: |
|
1095
|
type: string |
|
1096
|
title: $fulltext |
|
1097
|
description: Filter to apply on full-text properties. |
|
1098
|
$overlap: |
|
1099
|
type: array |
|
1100
|
description: >- |
|
1101
|
Filter arrays that have overlapping values with this |
|
1102
|
parameter. |
|
1103
|
items: |
|
1104
|
type: string |
|
1105
|
title: $overlap |
|
1106
|
description: The value to match. |
|
1107
|
$contains: |
|
1108
|
type: array |
|
1109
|
description: >- |
|
1110
|
Filter arrays that contain some of the values of this |
|
1111
|
parameter. |
|
1112
|
items: |
|
1113
|
type: string |
|
1114
|
title: $contains |
|
1115
|
description: The values to match. |
|
1116
|
$contained: |
|
1117
|
type: array |
|
1118
|
description: Filter arrays that contain all values of this parameter. |
|
1119
|
items: |
|
1120
|
type: string |
|
1121
|
title: $contained |
|
1122
|
description: The values to match. |
|
1123
|
$exists: |
|
1124
|
type: boolean |
|
1125
|
title: $exists |
|
1126
|
description: >- |
|
1127
|
Filter by whether a value for this parameter exists (not |
|
1128
|
`null`). |
|
1129
|
- type: array |
|
1130
|
description: Filter by values not matching those in this parameter. |
|
1131
|
items: |
|
1132
|
type: string |
|
1133
|
title: $not |
|
1134
|
description: The values to not match. |
|
1135
|
$gt: |
|
1136
|
type: string |
|
1137
|
title: $gt |
|
1138
|
description: >- |
|
1139
|
Filter by values greater than this parameter. Useful for numbers |
|
1140
|
and dates only. |
|
1141
|
$gte: |
|
1142
|
type: string |
|
1143
|
title: $gte |
|
1144
|
description: >- |
|
1145
|
Filter by values greater than or equal to this parameter. Useful |
|
1146
|
for numbers and dates only. |
|
1147
|
$lt: |
|
1148
|
type: string |
|
1149
|
title: $lt |
|
1150
|
description: >- |
|
1151
|
Filter by values less than this parameter. Useful for numbers and |
|
1152
|
dates only. |
|
1153
|
$lte: |
|
1154
|
type: string |
|
1155
|
title: $lte |
|
1156
|
description: >- |
|
1157
|
Filter by values less than or equal to this parameter. Useful for |
|
1158
|
numbers and dates only. |
|
1159
|
$like: |
|
1160
|
type: string |
|
1161
|
title: $like |
|
1162
|
description: Apply a `like` filter. Useful for strings only. |
|
1163
|
$re: |
|
1164
|
type: string |
|
1165
|
title: $re |
|
1166
|
description: Apply a regex filter. Useful for strings only. |
|
1167
|
$ilike: |
|
1168
|
type: string |
|
1169
|
title: $ilike |
|
1170
|
description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
1171
|
$fulltext: |
|
1172
|
type: string |
|
1173
|
title: $fulltext |
|
1174
|
description: Filter to apply on full-text properties. |
|
1175
|
$overlap: |
|
1176
|
type: array |
|
1177
|
description: Filter arrays that have overlapping values with this parameter. |
|
1178
|
items: |
|
1179
|
type: string |
|
1180
|
title: $overlap |
|
1181
|
description: The values to match. |
|
1182
|
$contains: |
|
1183
|
type: array |
|
1184
|
description: Filter arrays that contain some of the values of this parameter. |
|
1185
|
items: |
|
1186
|
type: string |
|
1187
|
title: $contains |
|
1188
|
description: The values to match. |
|
1189
|
$contained: |
|
1190
|
type: array |
|
1191
|
description: Filter arrays that contain all values of this parameter. |
|
1192
|
items: |
|
1193
|
type: string |
|
1194
|
title: $contained |
|
1195
|
description: The values to match. |
|
1196
|
$exists: |
|
1197
|
type: boolean |
|
1198
|
title: $exists |
|
1199
|
description: Filter by whether a value for this parameter exists (not `null`). |
|
1200
|
title: revoked_at |
|
1201
|
- name: $and |
|
1202
|
in: query |
|
1203
|
description: >- |
|
1204
|
Join query parameters with an AND condition. Each object's content is |
|
1205
|
the same type as the expected query parameters. |
|
1206
|
required: false |
|
1207
|
schema: |
|
1208
|
type: array |
|
1209
|
description: >- |
|
1210
|
Join query parameters with an AND condition. Each object's content is |
|
1211
|
the same type as the expected query parameters. |
|
1212
|
items: |
|
1213
|
type: object |
|
1214
|
title: $and |
|
1215
|
- name: $or |
|
1216
|
in: query |
|
1217
|
description: >- |
|
1218
|
Join query parameters with an OR condition. Each object's content is the |
|
1219
|
same type as the expected query parameters. |
|
1220
|
required: false |
|
1221
|
schema: |
|
1222
|
type: array |
|
1223
|
description: >- |
|
1224
|
Join query parameters with an OR condition. Each object's content is |
|
1225
|
the same type as the expected query parameters. |
|
1226
|
items: |
|
1227
|
type: object |
|
1228
|
title: $or |
|
1229
|
- name: with_deleted |
|
1230
|
in: query |
|
1231
|
description: Whether to include deleted records in the result. |
|
1232
|
required: false |
|
1233
|
schema: |
|
1234
|
type: boolean |
|
1235
|
title: with_deleted |
|
1236
|
description: Whether to include deleted records in the result. |
|
1237
|
security: |
|
1238
|
- api_token: [] |
|
1239
|
- cookie_auth: [] |
|
1240
|
- jwt_token: [] |
|
1241
|
x-codeSamples: |
|
1242
|
- lang: JavaScript |
|
1243
|
label: JS SDK |
|
1244
|
source: |
|
1245
|
$ref: ../code_samples/JavaScript/admin_api-keys/get.js |
|
1246
|
- lang: Shell |
|
1247
|
label: cURL |
|
1248
|
source: |
|
1249
|
$ref: ../code_samples/Shell/admin_api-keys/get.sh |
|
1250
|
tags: |
|
1251
|
- Api Keys |
|
1252
|
responses: |
|
1253
|
'200': |
|
1254
|
description: OK |
|
1255
|
content: |
|
1256
|
application/json: |
|
1257
|
schema: |
|
1258
|
allOf: |
|
1259
|
- type: object |
|
1260
|
required: |
|
1261
|
- limit |
|
1262
|
- offset |
|
1263
|
- count |
|
1264
|
properties: |
|
1265
|
limit: |
|
1266
|
type: number |
|
1267
|
title: limit |
|
1268
|
description: The maximum number of items returned in the list. |
|
1269
|
offset: |
|
1270
|
type: number |
|
1271
|
title: offset |
|
1272
|
description: >- |
|
1273
|
The number of items skipped before retrieving the returned |
|
1274
|
items. |
|
1275
|
count: |
|
1276
|
type: number |
|
1277
|
title: count |
|
1278
|
description: The total count of items. |
|
1279
|
- type: object |
|
1280
|
required: |
|
1281
|
- api_keys |
|
1282
|
properties: |
|
1283
|
api_keys: |
|
1284
|
type: array |
|
1285
|
description: The list of API keys. |
|
1286
|
items: |
|
1287
|
$ref: ../components/schemas/ApiKeyResponse.yaml |
|
1288
|
'400': |
|
1289
|
$ref: ../components/responses/400_error.yaml |
|
1290
|
'401': |
|
1291
|
$ref: ../components/responses/unauthorized.yaml |
|
1292
|
'404': |
|
1293
|
$ref: ../components/responses/not_found_error.yaml |
|
1294
|
'409': |
|
1295
|
$ref: ../components/responses/invalid_state_error.yaml |
|
1296
|
'422': |
|
1297
|
$ref: ../components/responses/invalid_request_error.yaml |
|
1298
|
'500': |
|
1299
|
$ref: ../components/responses/500_error.yaml |
|
1300
|
post: |
|
1301
|
operationId: PostApiKeys |
|
1302
|
summary: Create Api Key |
|
1303
|
description: > |
|
1304
|
Create a secret or publishable API key. |
|
1305
|
|
|
1306
|
A secret API key is used for admin authentication. |
|
1307
|
|
|
1308
|
|
|
1309
|
A publishable API key is used by client applications to set the scope of the |
|
1310
|
request. |
|
1311
|
x-authenticated: true |
|
1312
|
security: |
|
1313
|
- api_token: [] |
|
1314
|
- cookie_auth: [] |
|
1315
|
- jwt_token: [] |
|
1316
|
requestBody: |
|
1317
|
content: |
|
1318
|
application/json: |
|
1319
|
schema: |
|
1320
|
$ref: ../components/schemas/AdminCreateApiKey.yaml |
|
1321
|
x-codeSamples: |
|
1322
|
- lang: JavaScript |
|
1323
|
label: JS SDK |
|
1324
|
source: |
|
1325
|
$ref: ../code_samples/JavaScript/admin_api-keys/post.js |
|
1326
|
- lang: Shell |
|
1327
|
label: cURL |
|
1328
|
source: |
|
1329
|
$ref: ../code_samples/Shell/admin_api-keys/post.sh |
|
1330
|
tags: |
|
1331
|
- Api Keys |
|
1332
|
responses: |
|
1333
|
'200': |
|
1334
|
description: OK |
|
1335
|
content: |
|
1336
|
application/json: |
|
1337
|
schema: |
|
1338
|
$ref: ../components/schemas/AdminApiKeyResponse.yaml |
|
1339
|
'400': |
|
1340
|
$ref: ../components/responses/400_error.yaml |
|
1341
|
'401': |
|
1342
|
$ref: ../components/responses/unauthorized.yaml |
|
1343
|
'404': |
|
1344
|
$ref: ../components/responses/not_found_error.yaml |
|
1345
|
'409': |
|
1346
|
$ref: ../components/responses/invalid_state_error.yaml |
|
1347
|
'422': |
|
1348
|
$ref: ../components/responses/invalid_request_error.yaml |
|
1349
|
'500': |
|
1350
|
$ref: ../components/responses/500_error.yaml |
|
1351
|
x-workflow: createApiKeysWorkflow |
|
1352
|
x-events: [] |