-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.json
More file actions
1924 lines (1924 loc) · 107 KB
/
api.json
File metadata and controls
1924 lines (1924 loc) · 107 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.3",
"info": {
"title": "Iriks-IT API",
"description": "The official API for [Iriks-IT](https://iriks-it.nl). Powering tools, collections, and mischief since Sam knocked the first server off the desk.\n\n> *\"Why did Sam write the API docs? Because Silvia said if he didn't, she'd replace him with a 404 page.\"*\n\nAll authenticated endpoints require a Bearer token obtained via `/auth/login`. Tokens expire after **24 hours** — roughly the time it takes Silvia to forgive you for waking her up.",
"termsOfService": "https://iriks-it.nl/api-terms/",
"contact": {
"email": "devop@iriks-it.nl",
"name": "Matthijs Iriks",
"url": "https://iriks-it.nl/"
},
"x-logo": {
"url": "https://iriks-it.nl/logo.png",
"backgroundColor": "#FFFFFF",
"altText": "Iriks-IT Logo"
},
"version": "1.1.4"
},
"externalDocs": {
"description": "Find out more about Iriks-IT",
"url": "https://iriks-it.nl"
},
"servers": [
{
"url": "https://api.iriks-it.nl/v1",
"description": "Production — where Sam and Silvia live"
}
],
"security": [
{
"BearerToken": []
}
],
"tags": [
{
"name": "account",
"description": "Purr-fectly secure account management. Sam and Silvia got in, so can you. Email verification required — no exceptions, not even for cats."
},
{
"name": "products",
"description": "Product catalog API. Sam has already knocked most items off the shelf, but they're all still in the database."
},
{
"name": "hotwheels",
"description": "Hot Wheels collection tracker. Silvia tried to bat a few under the sofa, but every car is accounted for."
},
{
"name": "tools",
"description": "Utility endpoints for IP intelligence. Sam sniffs every packet — you get a nice JSON response instead."
},
{
"name": "webhooks",
"description": "Inbound webhook receivers. Silvia sits on the server and intercepts every status update — nothing gets past her."
},
{
"name": "vrchat",
"description": "VRChat group utilities. Silvia runs the door policy — Sam checks the ban list. Neither of them tolerates rule-breakers."
}
],
"paths": {
"/auth/register": {
"post": {
"tags": ["account"],
"summary": "Register a new account",
"operationId": "post.account.register",
"description": "Register your account here. You will receive a verification email — check your inbox, not your spam (or your cat's food bowl). You must verify before you can log in.",
"security": [],
"requestBody": {
"$ref": "#/components/requestBodies/account.register"
},
"responses": {
"200": {
"description": "Account registered successfully. Check your email to verify.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.register"
},
"example": {
"success": true,
"code": 200,
"data": {
"token": "1|aqWx2RpjFTtYsaOVi3M8df6p54VLKW23W6f48a0",
"name": "Silvia"
},
"message": "User register successfully."
}
}
}
},
"409": {
"description": "Email already in use.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.error"
},
"example": {
"success": false,
"code": 409,
"data": "Account already exists, please choose a different one.",
"message": "Registration Error."
}
}
}
},
"406": {
"$ref": "#/components/responses/default406"
},
"505": {
"$ref": "#/components/responses/default505"
}
}
}
},
"/auth/verify": {
"post": {
"tags": ["account"],
"summary": "Verify your account",
"operationId": "post.account.verify",
"description": "You found the verification code in your email — now submit it here to unlock API access. Unlike Sam, who needs zero verification to knock things off tables.",
"security": [],
"requestBody": {
"$ref": "#/components/requestBodies/account.verify"
},
"responses": {
"200": {
"description": "Account verified. You may now log in.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.success"
},
"example": {
"success": true,
"code": 200,
"data": "User verified successfully.",
"message": "Validation Success."
}
}
}
},
"409": {
"description": "Verification failed — invalid or expired code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.error"
},
"example": {
"success": false,
"code": 409,
"data": "Something bad broke, please contact: api@iriks-it.nl",
"message": "Validation Error."
}
}
}
},
"406": {
"$ref": "#/components/responses/default406"
},
"505": {
"$ref": "#/components/responses/default505"
}
}
}
},
"/auth/login": {
"post": {
"tags": ["account"],
"summary": "Log in and obtain a Bearer token",
"operationId": "post.account.login",
"description": "Exchange your credentials for an access token and a refresh token. The access token expires after 24 hours — about the same time Sam takes to forgive you for closing the bedroom door. The refresh token is valid for 30 days and can be exchanged at `/auth/refresh` for a fresh pair. You must have verified your account first.",
"security": [],
"requestBody": {
"$ref": "#/components/requestBodies/account.login"
},
"responses": {
"200": {
"description": "Login successful. Use `token` as `Authorization: Bearer <token>` on all protected endpoints. Store `refresh_token` securely — Sam guards his with his life.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.login"
},
"example": {
"success": true,
"code": 200,
"data": {
"token": "3|qF30ZVY2xW1OXJieMLXhUXZowwgVGVbm6F3kSoT714e04dec",
"expire": "2026-05-08 10:00:00",
"refresh_token": "4|rG41AWZ3yX2PYKjfNMYiVYApxxhWHWcn7G4lTpU825f15efd",
"refresh_expire": "2026-06-06 10:00:00",
"name": "Silvia"
},
"message": "User login successfully."
}
}
}
},
"403": {
"description": "Account not verified yet — Silvia is still screening you.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.error"
},
"example": {
"success": false,
"code": 403,
"data": "Account hasn't been verified yet, please verify this first!",
"message": "Unauthorised"
}
}
}
},
"406": {
"$ref": "#/components/responses/default406"
},
"505": {
"$ref": "#/components/responses/default505"
}
}
}
},
"/auth/refresh": {
"post": {
"tags": ["account"],
"summary": "Refresh your access token",
"operationId": "post.account.refresh",
"description": "Exchange a valid refresh token for a fresh access token + refresh token pair. The old refresh token is immediately invalidated — single-use, like Sam's patience when his food bowl is empty.\n\nSend the refresh token (not the access token) in the `Authorization: Bearer` header. Using an access token here will be rejected with 403.",
"security": [
{ "BearerToken": [] }
],
"responses": {
"200": {
"description": "New token pair issued. The old refresh token is now dead — Silvia shredded it.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/response.login"
},
"example": {
"success": true,
"code": 200,
"data": {
"token": "5|sH52BXA4zY3QZLkgONZjWZBqyyiXIXdo8H5mUqV936g26fge",
"expire": "2026-05-09 10:00:00",
"refresh_token": "6|tI63CYB5aZ4RAMlhPOAkXACrzzjYJYep9I6nVrW047h37ghf",
"refresh_expire": "2026-06-07 10:00:00",
"name": "Silvia"
},
"message": "Token refreshed successfully."
}
}
}
},
"401": {
"description": "The refresh token was not found — it may have already been used or expired. Sam says no.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/response.error" },
"example": {
"success": false,
"code": 401,
"message": "Unauthorised"
}
}
}
},
"403": {
"description": "The token provided does not have the `token-refresh` ability. You likely sent an access token instead of a refresh token — Silvia can tell the difference.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/response.error" },
"example": {
"success": false,
"code": 403,
"message": "Invalid token type."
}
}
}
},
"429": {
"$ref": "#/components/responses/default429"
}
}
}
},
"/products": {
"get": {
"tags": ["products"],
"summary": "List all products",
"operationId": "get.products.index",
"description": "Returns all products. Sam has inspected every single one and found most of them interesting enough to sit on.",
"responses": {
"200": {
"description": "Products retrieved successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": {
"type": "array",
"items": { "$ref": "#/components/schemas/product" }
},
"message": { "type": "string", "example": "Products retrieved successfully." }
}
},
"example": {
"success": true,
"code": 200,
"data": [
{
"id": 1,
"name": "Premium Cat Food — Sam's Choice",
"detail": "Sam rated this 10/10. He ate the whole bag in one sitting and then knocked the empty bag off the counter.",
"created_at": "19/04/2026",
"updated_at": "19/04/2026"
},
{
"id": 2,
"name": "Interactive Laser Pointer — Silvia Edition",
"detail": "Silvia has been chasing this dot since 2023. She has yet to catch it. We consider this a feature.",
"created_at": "19/04/2026",
"updated_at": "19/04/2026"
}
],
"message": "Products retrieved successfully."
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"post": {
"tags": ["products"],
"summary": "Create a product",
"operationId": "post.products.store",
"description": "Create a new product. Sam will immediately investigate it and determine whether it belongs on the floor.",
"requestBody": {
"$ref": "#/components/requestBodies/product.store"
},
"responses": {
"200": {
"description": "Product created successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/product" },
"message": { "type": "string", "example": "Product created successfully." }
}
},
"example": {
"success": true,
"code": 200,
"data": {
"id": 3,
"name": "Catnip Deluxe",
"detail": "Silvia's weakness. Sam pretends he doesn't care, then steals it at 3 AM.",
"created_at": "19/04/2026",
"updated_at": "19/04/2026"
},
"message": "Product created successfully."
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"406": {
"$ref": "#/components/responses/default406"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
}
},
"/products/{id}": {
"get": {
"tags": ["products"],
"summary": "Get a product",
"operationId": "get.products.show",
"description": "Retrieve a single product by ID. If Sam knocked it off the shelf, it still exists in the database.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"responses": {
"200": {
"description": "Product retrieved successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/product" },
"message": { "type": "string", "example": "Product retrieved successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"put": {
"tags": ["products"],
"summary": "Update a product",
"operationId": "put.products.update",
"description": "Update an existing product. Silvia reviewed the change and gave it a slow blink of approval.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"requestBody": {
"$ref": "#/components/requestBodies/product.store"
},
"responses": {
"200": {
"description": "Product updated successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/product" },
"message": { "type": "string", "example": "Product updated successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"406": {
"$ref": "#/components/responses/default406"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"delete": {
"tags": ["products"],
"summary": "Delete a product",
"operationId": "delete.products.destroy",
"description": "Permanently delete a product. Unlike Sam's attitude when you're five minutes late with breakfast, this action cannot be taken back.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"responses": {
"200": {
"description": "Product deleted successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "type": "array", "items": {}, "example": [] },
"message": { "type": "string", "example": "Product deleted successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
}
},
"/hotwheels": {
"get": {
"tags": ["hotwheels"],
"summary": "List all Hot Wheels",
"operationId": "get.hotwheels.index",
"description": "Returns the full Hot Wheels collection. Silvia once batted a 1970 Dodge Charger under the sofa. It was recovered. It is in this list.",
"responses": {
"200": {
"description": "Hot Wheels retrieved successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": {
"type": "array",
"items": { "$ref": "#/components/schemas/hotwheels" }
},
"message": { "type": "string", "example": "Hot Wheels retrieved successfully." }
}
},
"example": {
"success": true,
"code": 200,
"data": [
{
"id": 1,
"user": 1,
"condition": "Mint",
"in_packing": true,
"toy_num": "HW24-001",
"col_num": "001/250",
"model": "Paw-rsche 911 GT3",
"series": "Sam's Garage",
"series_num": "1/10",
"year": 2024,
"photo_url": "https://example.com/hw/paw-rsche-911.jpg",
"detail": "Sam sat on the box once but it survived. Purr-fect condition.",
"created_at": "19/04/2026",
"updated_at": "19/04/2026"
},
{
"id": 2,
"user": 1,
"condition": "Good",
"in_packing": false,
"toy_num": "HW24-002",
"col_num": "002/250",
"model": "Meow-stang GT500",
"series": "Silvia's Picks",
"series_num": "2/10",
"year": 2024,
"photo_url": "https://example.com/hw/meow-stang.jpg",
"detail": "Silvia batted it off the shelf exactly once. We consider it loved.",
"created_at": "19/04/2026",
"updated_at": "19/04/2026"
}
],
"message": "Hot Wheels retrieved successfully."
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"post": {
"tags": ["hotwheels"],
"summary": "Add a Hot Wheels car",
"operationId": "post.hotwheels.store",
"description": "Add a new car to the collection. Sam will judge its aerodynamics by sniffing it.",
"requestBody": {
"$ref": "#/components/requestBodies/hotwheels.store"
},
"responses": {
"200": {
"description": "Car added to the collection successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/hotwheels" },
"message": { "type": "string", "example": "Product created successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"406": {
"$ref": "#/components/responses/default406"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
}
},
"/hotwheels/{id}": {
"get": {
"tags": ["hotwheels"],
"summary": "Get a Hot Wheels car",
"operationId": "get.hotwheels.show",
"description": "Get a specific car from the collection. Even if Sam licked it, it's still in the database.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"responses": {
"200": {
"description": "Car retrieved successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/hotwheels" },
"message": { "type": "string", "example": "Product retrieved successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"put": {
"tags": ["hotwheels"],
"summary": "Update a Hot Wheels car",
"operationId": "put.hotwheels.update",
"description": "Update a car's name or detail. Silvia approved this endpoint with a slow blink.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"requestBody": {
"$ref": "#/components/requestBodies/hotwheels.update"
},
"responses": {
"200": {
"description": "Car updated successfully.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/hotwheels" },
"message": { "type": "string", "example": "Product updated successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"406": {
"$ref": "#/components/responses/default406"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
},
"delete": {
"tags": ["hotwheels"],
"summary": "Delete a Hot Wheels car",
"operationId": "delete.hotwheels.destroy",
"description": "Remove a car from the collection. More permanent than Silvia hiding it under the fridge.",
"parameters": [
{ "$ref": "#/components/parameters/id" }
],
"responses": {
"200": {
"description": "Car deleted from the collection.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "type": "array", "items": {}, "example": [] },
"message": { "type": "string", "example": "Hot Wheels deleted successfully." }
}
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"404": {
"$ref": "#/components/responses/default404"
},
"429": {
"$ref": "#/components/responses/default429"
}
}
}
},
"/tools/ip/{ip}": {
"get": {
"tags": ["tools"],
"summary": "Look up an IP address",
"operationId": "get.tools.ip.show",
"description": "Returns geolocation, ASN, proxy detection, and AbuseIPDB threat intelligence for an IPv4 or IPv6 address. Sam sniffs every packet — you get structured JSON.\n\nRequires the `ip.lookup` permission scope on your token.\n\n**Caching:** AbuseIPDB results are cached for 14 days per IP to stay well within rate limits. Fresh data is fetched automatically when the cache expires.",
"parameters": [
{
"name": "ip",
"in": "path",
"required": true,
"description": "The IPv4 or IPv6 address to look up. Sam's current IP is classified.",
"schema": {
"type": "string",
"examples": ["118.25.6.39", "2001:db8::1", "1.1.1.1"]
}
}
],
"responses": {
"200": {
"description": "IP data retrieved successfully. Sam sniffed it and found no suspicious treats.",
"headers": {
"X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" },
"X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" },
"X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": { "$ref": "#/components/schemas/ip.lookup" },
"message": { "type": "string", "example": "IP data retrieved successfully." }
}
},
"example": {
"success": true,
"code": 200,
"data": {
"ip": "118.25.6.39",
"location": {
"country_code": "CN",
"country_name": "China",
"region_name": "Guangdong",
"city_name": "Shenzhen",
"latitude": 22.5431,
"longitude": 114.0579,
"zip_code": "518000",
"time_zone": "+08:00"
},
"country": {
"alpha3_code": "CHN",
"numeric_code": "156",
"capital": "Beijing",
"currency_code": "CNY",
"currency_name": "Yuan Renminbi",
"currency_symbol": "¥",
"cctld": ".cn",
"idd_code": "86",
"population": 1411750000,
"total_area": 9596960
},
"continent": {
"code": "AS",
"name": "Asia"
},
"timezone": {
"olson": "Asia/Shanghai",
"abbreviation": "CST",
"dst_start": null,
"dst_end": null
},
"metro": null,
"asn": {
"asn": "AS45090",
"organization": "Tencent Cloud Computing (Beijing) Co. Ltd",
"network": "118.25.0.0/16"
},
"threat": {
"score": 75,
"is_proxy": true,
"is_vpn": false,
"is_threat": true,
"reasons": [
"Hosting / data center IP",
"Threat category: SPAM",
"High-risk country: China"
],
"total_reports": 42,
"last_reported_at": "2024-01-15T10:00:00+00:00",
"checked_at": "2026-04-19T14:00:00+00:00",
"reports": [
{
"reported_at": "2024-01-15T10:00:00+00:00",
"categories": [18, 22],
"comment": "Sam detected suspicious SSH traffic from this IP at 3 AM. He woke up the admin by sitting on the keyboard.",
"reporter_country_code": "NL",
"reporter_country_name": "Netherlands"
},
{
"reported_at": "2024-01-10T08:30:00+00:00",
"categories": [22],
"comment": "Silvia noticed this IP sniffing her ports. She hissed at it and reported it immediately.",
"reporter_country_code": "NL",
"reporter_country_name": "Netherlands"
}
]
}
},
"message": "IP data retrieved successfully."
}
}
}
},
"401": {
"$ref": "#/components/responses/default401"
},
"403": {
"description": "Missing `ip.lookup` permission scope on your token.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/response.error" },
"example": {
"success": false,
"code": 403,
"data": "",
"message": "You do not have permission to perform IP lookups."
}
}
}
},
"429": {
"$ref": "#/components/responses/default429"
},
"422": {
"description": "The provided value is not a valid IP address. Even Sam knows `meow` is not an IP.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/response.error" },
"example": {
"success": false,
"code": 422,
"data": "",
"message": "The provided value is not a valid IP address."
}
}
}
}
}
}
},
"/vrchat/ban-appeal": {
"post": {
"tags": ["vrchat"],
"summary": "Submit a ban appeal",
"operationId": "post.vrchat.ban-appeal",
"description": "Submit a ban appeal for a VRChat group ban. Requires a valid Bearer token with the `vrchat.banappeal` permission scope.\n\n**Rate limit:** One appeal per IP address per 14 days. Silvia keeps count. Your IP address is recorded with the appeal.\n\n> *\"Sam submitted an appeal for knocking the server over. His reason: 'it looked unstable.' It was not accepted.\"*",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["vrchat_user_id", "name", "email", "reason"],
"properties": {
"vrchat_user_id": {
"type": "string",
"description": "Your VRChat user ID. Must match `usr_<uuid>` format.",
"example": "usr_00000000-0000-0000-0000-000000000001"
},
"name": {
"type": "string",
"maxLength": 255,
"description": "Your VRChat display name.",
"example": "Silvia"
},
"email": {
"type": "string",
"format": "email",
"maxLength": 255,
"description": "Your contact email address.",
"example": "silvia@iriks-it.nl"
},
"reason": {
"type": "string",
"maxLength": 5000,
"description": "Why you believe the ban should be lifted. Sam reads every word.",
"example": "I knocked that toy off the shelf on purpose, not by accident. I deserve to come back."
}
}
}
}
}
},
"responses": {
"200": {
"description": "Appeal submitted. Silvia will review it when she wakes up from her nap.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": { "type": "boolean", "example": true },
"code": { "type": "integer", "example": 200 },
"data": {
"type": "object",
"properties": {
"submitted": { "type": "boolean", "example": true }
}
},
"message": { "type": "string", "example": "Your ban appeal has been submitted." }
}
},