-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
2061 lines (2061 loc) · 80.4 KB
/
Copy pathopenapi.json
File metadata and controls
2061 lines (2061 loc) · 80.4 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.1.0",
"info": {
"title": "Agent Mandate API",
"version": "1.0.0",
"description": "Convert user intent into signed mandates and verify consequential agent actions against mandate, policy and approvals."
},
"servers": [
{
"url": "https://agentmandate-api.com"
}
],
"paths": {
"/health": {
"get": {
"summary": "Liveness and deployed version",
"operationId": "getHealth",
"security": [],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/": {
"get": {
"summary": "Service index — endpoints, auth and error format",
"operationId": "get/",
"security": [],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/mandates": {
"post": {
"summary": "Issue a signed mandate",
"description": "Signs a grant of authority to an agent and returns the mandate with a detached HMAC-SHA256 signature over its canonical bytes. The document is self-contained — store it wherever you like and present it on every verification. The signing key is per-account and never leaves the service, so a mandate signed for one account cannot verify under another.",
"operationId": "postV1Mandates",
"security": [
{
"apiKey": []
}
],
"responses": {
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"mandate": {
"type": "object"
},
"signature": {
"type": "string",
"description": "v1:<hex>. Detached — keep it with the mandate."
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"401": {
"$ref": "#/components/responses/Error"
},
"429": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"principal",
"agent",
"expiresAt",
"grants"
],
"properties": {
"principal": {
"type": "string",
"description": "Who granted the authority — the user or org the agent acts for."
},
"agent": {
"type": "string",
"description": "Who holds it. A verification for a different agent is denied."
},
"notBefore": {
"type": "string",
"format": "date-time",
"description": "Defaults to now."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"description": "Required. A mandate without an end is not a mandate."
},
"grants": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"required": [
"action"
],
"properties": {
"action": {
"type": "string",
"description": "Dotted action name. A single trailing \".*\" matches one further segment — \"payments.*\" covers \"payments.transfer\" but not \"payments.transfer.bulk\"."
},
"resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource patterns, matched the same way. Omit to place no resource constraint; an empty array is rejected rather than silently granting none."
},
"maxAmountMinor": {
"type": "integer",
"minimum": 0,
"description": "Hard per-action cap, integer minor units (cents)."
},
"approvalRequiredAboveMinor": {
"type": "integer",
"minimum": 0,
"description": "Above this, the action returns requires_approval unless a valid approvalToken is supplied."
},
"maxCount": {
"type": "integer",
"minimum": 1,
"description": "How many times this action may be taken under this mandate."
}
}
}
},
"totalSpendCapMinor": {
"type": "integer",
"minimum": 0,
"description": "Ceiling across every action, integer minor units."
},
"currency": {
"type": "string",
"description": "ISO-4217. Required whenever any monetary cap is set."
},
"metadata": {
"type": "object",
"description": "Carried into the receipt, never interpreted."
}
}
},
"example": {
"principal": "user_8814",
"agent": "agent_procurement_v3",
"expiresAt": "2026-12-31T23:59:59Z",
"currency": "USD",
"totalSpendCapMinor": 500000,
"grants": [
{
"action": "payments.transfer",
"resources": [
"vendor.acme",
"vendor.globex"
],
"maxAmountMinor": 100000,
"approvalRequiredAboveMinor": 25000
},
{
"action": "invoices.*",
"maxCount": 50
}
]
}
}
}
},
"x-quota-cost": 0
}
},
"/v1/verify": {
"post": {
"summary": "Verify proposed actions against a mandate",
"description": "Deny-by-default: an action matching no grant is denied. Returns a receipt per action with the decision, the grant that decided it, every violation (not just the first) and a digest that pins the evaluation. Send one \"action\" or up to 500 in \"actions\" — billing is one unit per action verified.",
"operationId": "postV1Verify",
"security": [
{
"apiKey": []
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"receipts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"allow",
"deny",
"requires_approval"
]
},
"mandateId": {
"type": "string"
},
"agent": {
"type": "string"
},
"principal": {
"type": "string"
},
"action": {
"type": "string"
},
"matchedGrant": {
"type": "object",
"description": "The grant that authorized the action, or null."
},
"matchedGrantIndex": {
"type": "integer"
},
"violations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"detail": {
"type": "string"
},
"grantIndex": {
"type": "integer"
}
}
},
"description": "Every reason, not just the first — an approval queue needs the whole picture."
},
"remainingSpendMinor": {
"type": "integer",
"description": "Headroom under the total cap after this action, or null when uncapped."
},
"evaluatedAt": {
"type": "string",
"format": "date-time"
},
"digest": {
"type": "string",
"description": "SHA-256 over the decision inputs. Pins an audit entry to exactly this evaluation."
}
}
}
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"401": {
"$ref": "#/components/responses/Error"
},
"429": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"mandate"
],
"properties": {
"mandate": {
"type": "object",
"description": "The object returned by POST /v1/mandates — claims plus signature."
},
"action": {
"type": "object",
"required": [
"action"
],
"properties": {
"agent": {
"type": "string",
"description": "The agent presenting the mandate. Checked against mandate.agent — supply it, since a mandate is a bearer document and this is what stops a leaked one being replayed by another agent."
},
"action": {
"type": "string",
"description": "Concrete dotted action name. A wildcard is a grant, not an action."
},
"resource": {
"type": "string"
},
"amountMinor": {
"type": "integer",
"minimum": 0,
"description": "Integer minor units. Requires currency."
},
"currency": {
"type": "string"
},
"priorSpendMinor": {
"type": "integer",
"minimum": 0,
"description": "Spend already made under this mandate. You track it; the mandate is stateless."
},
"priorCount": {
"type": "integer",
"minimum": 0,
"description": "Times this action has already been taken under this mandate."
},
"approvalToken": {
"type": "string"
},
"at": {
"type": "string",
"format": "date-time",
"description": "Evaluation instant. Supply it to make a decision reproducible."
}
}
},
"actions": {
"type": "array",
"minItems": 1,
"maxItems": 500,
"items": {
"type": "object",
"required": [
"action"
],
"properties": {
"agent": {
"type": "string",
"description": "The agent presenting the mandate. Checked against mandate.agent — supply it, since a mandate is a bearer document and this is what stops a leaked one being replayed by another agent."
},
"action": {
"type": "string",
"description": "Concrete dotted action name. A wildcard is a grant, not an action."
},
"resource": {
"type": "string"
},
"amountMinor": {
"type": "integer",
"minimum": 0,
"description": "Integer minor units. Requires currency."
},
"currency": {
"type": "string"
},
"priorSpendMinor": {
"type": "integer",
"minimum": 0,
"description": "Spend already made under this mandate. You track it; the mandate is stateless."
},
"priorCount": {
"type": "integer",
"minimum": 0,
"description": "Times this action has already been taken under this mandate."
},
"approvalToken": {
"type": "string"
},
"at": {
"type": "string",
"format": "date-time",
"description": "Evaluation instant. Supply it to make a decision reproducible."
}
}
}
}
}
},
"example": {
"mandate": {
"mandate": {
"id": "mnd_…",
"principal": "user_8814",
"agent": "agent_procurement_v3",
"notBefore": "2026-08-31T00:00:00Z",
"expiresAt": "2026-12-31T23:59:59Z",
"currency": "USD",
"totalSpendCapMinor": 500000,
"grants": [
{
"action": "payments.transfer",
"resources": [
"vendor.acme",
"vendor.globex"
],
"maxAmountMinor": 100000,
"approvalRequiredAboveMinor": 25000
},
{
"action": "invoices.*",
"maxCount": 50
}
]
},
"signature": "v1:…"
},
"action": {
"agent": "agent_procurement_v3",
"action": "payments.transfer",
"resource": "vendor.acme",
"amountMinor": 30000,
"currency": "USD",
"priorSpendMinor": 120000
}
}
}
}
},
"x-quota-cost": 0
}
},
"/v1/mandates/{id}/revoke": {
"post": {
"summary": "Revoke a mandate",
"description": "Adds the mandate to your account's revocation list. Idempotent — revoking twice is not an error. Verifications read a briefly cached copy of that list so they never block on the database, so a revocation takes effect within about ten seconds rather than instantly. That window is stated here rather than hidden.",
"operationId": "postV1MandatesIdRevoke",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"apiKey": []
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"mandateId": {
"type": "string"
},
"revoked": {
"type": "boolean"
},
"effectiveWithinSeconds": {
"type": "integer"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"401": {
"$ref": "#/components/responses/Error"
},
"429": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"reason": {
"type": "string"
}
}
},
"example": {
"reason": "agent decommissioned"
}
}
}
},
"x-quota-cost": 0
}
},
"/v1/revocations": {
"get": {
"summary": "List the mandates you have revoked",
"description": "Account-scoped. Useful for reconciling your own records against the list verifications actually consult.",
"operationId": "getV1Revocations",
"security": [
{
"apiKey": []
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"mandateIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"401": {
"$ref": "#/components/responses/Error"
},
"429": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"x-quota-cost": 0
}
},
"/v1/demo/verify": {
"post": {
"summary": "Public demo — issue and verify in one call, without a key",
"description": "Signs the mandate you describe with a throwaway demo key, then verifies your actions against it. The real engine, capped at 10 actions. Nothing is stored, nothing is metered, and the demo signature is not usable on the authenticated endpoint.",
"operationId": "postV1DemoVerify",
"security": [],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"mandate"
],
"properties": {
"mandate": {
"type": "object",
"required": [
"principal",
"agent",
"expiresAt",
"grants"
],
"properties": {
"principal": {
"type": "string",
"description": "Who granted the authority — the user or org the agent acts for."
},
"agent": {
"type": "string",
"description": "Who holds it. A verification for a different agent is denied."
},
"notBefore": {
"type": "string",
"format": "date-time",
"description": "Defaults to now."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"description": "Required. A mandate without an end is not a mandate."
},
"grants": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"required": [
"action"
],
"properties": {
"action": {
"type": "string",
"description": "Dotted action name. A single trailing \".*\" matches one further segment — \"payments.*\" covers \"payments.transfer\" but not \"payments.transfer.bulk\"."
},
"resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource patterns, matched the same way. Omit to place no resource constraint; an empty array is rejected rather than silently granting none."
},
"maxAmountMinor": {
"type": "integer",
"minimum": 0,
"description": "Hard per-action cap, integer minor units (cents)."
},
"approvalRequiredAboveMinor": {
"type": "integer",
"minimum": 0,
"description": "Above this, the action returns requires_approval unless a valid approvalToken is supplied."
},
"maxCount": {
"type": "integer",
"minimum": 1,
"description": "How many times this action may be taken under this mandate."
}
}
}
},
"totalSpendCapMinor": {
"type": "integer",
"minimum": 0,
"description": "Ceiling across every action, integer minor units."
},
"currency": {
"type": "string",
"description": "ISO-4217. Required whenever any monetary cap is set."
},
"metadata": {
"type": "object",
"description": "Carried into the receipt, never interpreted."
}
}
},
"action": {
"type": "object",
"required": [
"action"
],
"properties": {
"agent": {
"type": "string",
"description": "The agent presenting the mandate. Checked against mandate.agent — supply it, since a mandate is a bearer document and this is what stops a leaked one being replayed by another agent."
},
"action": {
"type": "string",
"description": "Concrete dotted action name. A wildcard is a grant, not an action."
},
"resource": {
"type": "string"
},
"amountMinor": {
"type": "integer",
"minimum": 0,
"description": "Integer minor units. Requires currency."
},
"currency": {
"type": "string"
},
"priorSpendMinor": {
"type": "integer",
"minimum": 0,
"description": "Spend already made under this mandate. You track it; the mandate is stateless."
},
"priorCount": {
"type": "integer",
"minimum": 0,
"description": "Times this action has already been taken under this mandate."
},
"approvalToken": {
"type": "string"
},
"at": {
"type": "string",
"format": "date-time",
"description": "Evaluation instant. Supply it to make a decision reproducible."
}
}
},
"actions": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"required": [
"action"
],
"properties": {
"agent": {
"type": "string",
"description": "The agent presenting the mandate. Checked against mandate.agent — supply it, since a mandate is a bearer document and this is what stops a leaked one being replayed by another agent."
},
"action": {
"type": "string",
"description": "Concrete dotted action name. A wildcard is a grant, not an action."
},
"resource": {
"type": "string"
},
"amountMinor": {
"type": "integer",
"minimum": 0,
"description": "Integer minor units. Requires currency."
},
"currency": {
"type": "string"
},
"priorSpendMinor": {
"type": "integer",
"minimum": 0,
"description": "Spend already made under this mandate. You track it; the mandate is stateless."
},
"priorCount": {
"type": "integer",
"minimum": 0,
"description": "Times this action has already been taken under this mandate."
},
"approvalToken": {
"type": "string"
},
"at": {
"type": "string",
"format": "date-time",
"description": "Evaluation instant. Supply it to make a decision reproducible."
}
}
}
}
}
},
"example": {
"mandate": {
"principal": "user_8814",
"agent": "agent_procurement_v3",
"expiresAt": "2026-12-31T23:59:59Z",
"currency": "USD",
"totalSpendCapMinor": 500000,
"grants": [
{
"action": "payments.transfer",
"resources": [
"vendor.acme",
"vendor.globex"
],
"maxAmountMinor": 100000,
"approvalRequiredAboveMinor": 25000
},
{
"action": "invoices.*",
"maxCount": 50
}
]
},
"action": {
"action": "payments.transfer",
"resource": "vendor.acme",
"amountMinor": 30000,
"currency": "USD"
}
}
}
}
}
}
},
"/v1/violations": {
"get": {
"summary": "Every violation code the engine can return",
"description": "Branch on these rather than on the human-readable detail, which may change.",
"operationId": "getV1Violations",
"security": [],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/checkout": {
"post": {
"summary": "Start a hosted Square checkout for a paid tier",
"description": "Returns a Square-hosted payment URL for the requested tier. No API key is needed — a prospect has not got one yet. The email Square collects becomes the account, so a key issued later for the same address inherits the paid quota. Enterprise returns a contact route rather than a payment link. THIS IS THE PATH FOR SOMEONE WHO IS NOT YET PAYING. It starts a NEW Square recurring subscription, so it is refused with 409 `conflict` (`details.reason` `existing_subscription`) when the request carries a dashboard session for an account that already has a live plan on this API — a second subscription would be charged alongside the first, every month, and this API cannot cancel either one. Change tier with POST /v1/subscription/plan, or, when Square collects your base fee, cancel it with Square first.",
"operationId": "postV1Checkout",
"security": [],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"checkoutUrl": {
"type": "string",
"format": "uri",
"description": "Square-hosted payment page. Redirect the buyer here."
},
"tier": {
"type": "string"
},
"sku": {
"type": "string"
},
"requestId": {
"type": "string"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"409": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"tier"
],
"properties": {
"tier": {
"type": "string",
"description": "developer | growth | scale | enterprise"
}
}
},
"example": {
"tier": "developer"
}
}
}
}
}
},
"/api/billing/webhook": {
"post": {
"summary": "Square billing events, forwarded by the shared hub",
"description": "Machine-to-machine only. The shared Square billing hub POSTs signed events here; the signature is verified over the exact request bytes. Not callable by API consumers — documented so the integration is auditable.",
"operationId": "postApiBillingWebhook",
"security": [
{
"hubSignature": []
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"$ref": "#/components/responses/Error"
},
"401": {
"$ref": "#/components/responses/Error"
},
"500": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/keys": {
"post": {
"summary": "Request a free sandbox API key (sends a verification email)",
"description": "Starts self-serve key issuance. A one-time claim token is emailed to the address you supply; POST it to /v1/keys/claim to receive the key. No key is returned here, and the response is the same whether or not that address already has an account — so this endpoint cannot be used to find out who has one. The email is verified because your account, your usage and your invoice are all keyed to it: issuing on an unverified address would let anyone mint a working key on your account and spend your allowance. Keep using the same address and a paid plan bought with it raises the keys you already hold rather than issuing new ones. Distributed integrations may identify their discovery surface with the optional source object or x-integration-source header; invalid source values are ignored and never block key issuance.",
"operationId": "postV1Keys",
"security": [],
"responses": {
"202": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"verification_sent"
]
},
"email": {
"type": "string",
"format": "email"
},
"expiresAt": {
"type": "string",
"format": "date-time",