-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatform-admin-openapi.yaml
More file actions
2356 lines (2334 loc) · 87 KB
/
platform-admin-openapi.yaml
File metadata and controls
2356 lines (2334 loc) · 87 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.4
info:
title: Sphereon Platform Admin API
version: 0.1.0
x-products: [edk, vdx]
description: |
API for administering a Sphereon deployment.
The application tenant uses this API to install and verify the platform
license, choose the secret backend, set onboarding policy and read the
evaluated onboarding availability, register and manage tenants and their
domains, public endpoints and hierarchy, run the self-service signup
lifecycle, configure each tenant's external identity providers, and complete
owner onboarding. The application tenant is always authenticated through the
platform's own hosted identity provider, so operators can always reach this
surface, including before any customer tenant exists.
## Authentication and tenant context
Every authenticated operation expects a bearer JWT. Tenant context is
resolved from that token; it is never taken from a request parameter. The
self-service signup request, the signup email confirmation, and the owner
invitation redemption are the public, unauthenticated entry points.
## Secret handling
Secrets are write-only on the way in and are never echoed. The license token,
identity provider client secret, signup verification token, domain
verification token, and owner invitation token and credential are accepted
only on request bodies. Responses expose secrets only by opaque reference,
for example `clientSecretRef` and `configRef`.
## License gating
Two capability groups are license-gated. The self-service signup operations
function only when the tenant signup entitlement is licensed, and the tenant
federation operations function only when the tenant federation entitlement is
licensed. Each such operation carries an `x-license-protection` descriptor.
## Error format
Errors are returned as the `{ "error": { "code", "message", "details"? } }`
envelope. A correlation identifier is available on every response.
contact:
name: Sphereon International B.V.
email: support@sphereon.com
url: https://sphereon.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.example.com/api/platform/admin/v1
description: Production server.
- url: http://localhost:8080/api/platform/admin/v1
description: Local development server.
security:
- bearer: []
tags:
- name: PlatformAdmin
description: Application-tenant bootstrap and status, license, secret backend, and onboarding policy and availability.
- name: Tenants
description: Tenant lifecycle, domains, public endpoints, hierarchy, and onboarding status.
- name: TenantSignup
description: Public self-service signup and its operator-side approval lifecycle.
- name: TenantFederation
description: Tenant-owned external identity providers.
- name: OwnerBootstrap
description: Public owner invitation redemption.
paths:
# =====================================================================
# PlatformAdmin
# =====================================================================
/application/tenant:
get:
tags: [PlatformAdmin]
summary: Get application tenant status
description: |
Returns the runtime state of the application tenant, including the
readiness of the platform-hosted authorization server and whether the
first customer tenant can yet be registered.
operationId: getApplicationTenant
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: Application tenant state.
content:
application/json:
schema:
$ref: '#/components/schemas/ApplicationTenantStatus'
example:
tenantId: application
status: ACTIVE
hostedAs:
required: true
available: true
issuerUrl: https://auth.platform.example
canRegisterFirstRealTenant: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/tenant/bootstrap:
post:
tags: [PlatformAdmin]
summary: Create or reconcile the application tenant
description: |
Creates the application tenant and its hosted authorization server, or
reconciles them if they already exist, and returns the resulting state.
Optional operator contact details seed the initial operator account.
operationId: bootstrapApplicationTenant
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/ApplicationTenantBootstrapRequest'
example:
operatorEmail: admin@acme.example
operatorDisplayName: Acme Administrator
responses:
'200':
description: Application tenant bootstrap or reconcile result.
content:
application/json:
schema:
$ref: '#/components/schemas/ApplicationTenantStatus'
example:
tenantId: application
status: ACTIVE
hostedAs:
required: true
available: true
issuerUrl: https://auth.platform.example
canRegisterFirstRealTenant: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/license:
get:
tags: [PlatformAdmin]
summary: Get the license status projection
description: >
Returns the sanitized status projection of the effective license -
lifecycle status, per-product summaries, and expiry signals. The raw
license token, decoded claims, and entitlement graph are never exposed.
operationId: getApplicationLicense
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: License status projection.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseStatusProjection'
example:
status: ACTIVE
productSummaries:
- product: vdx
edition: enterprise
modules: [tenant, party, oid4vci]
quotaKeys: [max-root-tenants, max-total-tenants]
customerId: cust-acme-001
deploymentId: dep-eu-west-1
issuer: Sphereon Licensing
signingCertificateFingerprint: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
expiresAt: '2027-06-30T23:59:59Z'
daysToExpiry: 386
recoveryMode: false
graceMode: false
warnings: []
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
put:
tags: [PlatformAdmin]
summary: Install or replace the application license
description: |
Verifies and installs the supplied license token, replacing any active
license, and returns the resulting license status projection. The license
token is write-only and is never echoed.
operationId: putApplicationLicense
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseActivationRequest'
example:
licenseToken: eyJhbGciOiJFZERTQSJ9.eyJ0aWVyIjoicHJvIn0.signature
responses:
'200':
description: License status projection of the installed license.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseStatusProjection'
example:
status: ACTIVE
productSummaries:
- product: vdx
edition: enterprise
modules: [tenant, party, oid4vci]
quotaKeys: [max-root-tenants, max-total-tenants]
customerId: cust-acme-001
deploymentId: dep-eu-west-1
issuer: Sphereon Licensing
signingCertificateFingerprint: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
expiresAt: '2027-06-30T23:59:59Z'
daysToExpiry: 386
recoveryMode: false
graceMode: false
warnings: []
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/license/verify:
post:
tags: [PlatformAdmin]
summary: Verify a license token without installing it
description: |
Verifies the supplied license token and returns whether it is valid along
with its sanitized status projection, without installing it. The license
token is write-only and is never echoed.
operationId: verifyApplicationLicense
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseActivationRequest'
example:
licenseToken: eyJhbGciOiJFZERTQSJ9.eyJ0aWVyIjoicHJvIn0.signature
responses:
'200':
description: Verification result.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseVerificationProjection'
example:
valid: true
status:
status: ACTIVE
productSummaries:
- product: vdx
edition: enterprise
modules: [tenant, party, oid4vci]
quotaKeys: [max-root-tenants, max-total-tenants]
customerId: cust-acme-001
deploymentId: dep-eu-west-1
issuer: Sphereon Licensing
signingCertificateFingerprint: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
expiresAt: '2027-06-30T23:59:59Z'
daysToExpiry: 386
recoveryMode: false
graceMode: false
warnings: []
error: null
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/secrets/backend:
get:
tags: [PlatformAdmin]
summary: Get configured secret backend
description: Returns the configured secret backend and its opaque configuration reference. Plaintext secrets never appear here.
operationId: getSecretBackend
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: Secret backend status.
content:
application/json:
schema:
$ref: '#/components/schemas/SecretBackendStatus'
example:
configured: true
backend: hashicorp-vault
configRef: secret://platform/kv/tenant-secrets
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
put:
tags: [PlatformAdmin]
summary: Select the secret backend
description: |
Selects the secret backend that stores tenant and federation secrets and
returns the resulting status. The optional `configRef` points at the
resolved backend instance.
operationId: putSecretBackend
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SecretBackendWrite'
example:
backend: hashicorp-vault
configRef: secret://platform/kv/tenant-secrets
responses:
'200':
description: Secret backend status.
content:
application/json:
schema:
$ref: '#/components/schemas/SecretBackendStatus'
example:
configured: true
backend: hashicorp-vault
configRef: secret://platform/kv/tenant-secrets
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/onboarding:
get:
tags: [PlatformAdmin]
summary: Get onboarding policy
description: Returns the onboarding policy toggles that constrain which onboarding flows are accepted.
operationId: getApplicationOnboarding
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: Onboarding policy.
content:
application/json:
schema:
$ref: '#/components/schemas/OnboardingPolicy'
example:
rootTenantCreationEnabled: true
adminInviteEnabled: true
selfSignupEnabled: true
subtenantSignupEnabled: false
requireApprovalForSelfSignup: true
updatedAt: '2026-06-08T09:15:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
put:
tags: [PlatformAdmin]
summary: Update onboarding policy
description: |
Updates the onboarding policy. Every field is optional; a field left
unset leaves that toggle unchanged. Returns the full updated policy.
operationId: putApplicationOnboarding
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OnboardingPolicyWrite'
example:
selfSignupEnabled: true
requireApprovalForSelfSignup: true
responses:
'200':
description: Updated onboarding policy.
content:
application/json:
schema:
$ref: '#/components/schemas/OnboardingPolicy'
example:
rootTenantCreationEnabled: true
adminInviteEnabled: true
selfSignupEnabled: true
subtenantSignupEnabled: false
requireApprovalForSelfSignup: true
updatedAt: '2026-06-08T09:20:00Z'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/application/onboarding/availability:
get:
tags: [PlatformAdmin]
summary: Get evaluated onboarding availability
description: |
Returns the evaluated availability matrix composed from license features,
config toggles, and runtime readiness of the application tenant, email
transport, and secret backend. Each flow carries a stable reason string
when it is unavailable.
operationId: getApplicationOnboardingAvailability
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: Evaluated onboarding availability.
content:
application/json:
schema:
$ref: '#/components/schemas/OnboardingAvailability'
example:
applicationTenant:
enabled: true
hostedAsAvailable: true
rootTenantCreation:
enabled: true
reason: null
adminInvite:
enabled: true
reason: null
selfSignup:
enabled: false
reason: config_disabled_self_signup
subtenants:
enabled: true
reason: null
email:
configured: true
healthy: true
secretBackend:
configured: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
# =====================================================================
# Tenants
# =====================================================================
/tenants:
get:
tags: [Tenants]
summary: List tenants
description: |
Lists tenants as a paginated envelope. Supply `parentTenantId` to list the
children of a parent; omit it to list root tenants. Sort by `createdAt` or
`slug`.
operationId: listTenants
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
- name: parentTenantId
in: query
required: false
description: Parent tenant id. Omit to list root tenants.
schema:
type: string
example: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
- $ref: './common-components.yml#/components/parameters/Limit'
- $ref: './common-components.yml#/components/parameters/Offset'
- $ref: './common-components.yml#/components/parameters/Page'
- $ref: './common-components.yml#/components/parameters/Size'
- name: sort
in: query
required: false
description: Field to sort by.
schema:
type: string
enum: [createdAt, slug]
default: createdAt
- $ref: './common-components.yml#/components/parameters/SortDirection'
responses:
'200':
description: Paginated tenant list.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantPage'
example:
data:
- id: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
tenantType: organization
name: Acme Corporation
description: Acme issuing and verification tenant
slug: acme
parentTenantId: null
status: ACTIVE
system: false
ownerPartyId: 2c4e6a80-3b5d-4f70-9a12-8c0d1e2f3a4b
createdAt: '2026-06-08T09:00:00Z'
createdById: null
updatedAt: '2026-06-08T09:00:00Z'
updatedById: null
deletedAt: null
deletedById: null
pagination:
limit: 20
offset: 0
page: 0
size: 20
total: 1
totalPages: 1
hasMore: false
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
post:
tags: [Tenants]
summary: Register a tenant
description: |
Registers a tenant with a default authorization server and an owner
bootstrap. The owner is supplied as local contact details; choose how the
owner invitation is delivered with `ownerDelivery.mode`.
operationId: registerTenant
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterTenantRequest'
example:
tenantType: organization
name: Acme Corporation
description: Acme issuing and verification tenant
slug: acme
parentTenantId: null
initialPlatformSubdomain: true
owner:
type: local
email: admin@acme.example
displayName: Acme Administrator
ownerDelivery:
mode: email
responses:
'201':
description: Tenant registered.
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterTenantResponse'
example:
tenant:
id: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
tenantType: organization
name: Acme Corporation
description: Acme issuing and verification tenant
slug: acme
parentTenantId: null
status: PENDING_VERIFICATION
system: false
ownerPartyId: 2c4e6a80-3b5d-4f70-9a12-8c0d1e2f3a4b
createdAt: '2026-06-08T09:00:00Z'
createdById: null
updatedAt: '2026-06-08T09:00:00Z'
updatedById: null
deletedAt: null
deletedById: null
primaryDomainUrl: https://acme.wallet.platform.example
issuerUrl: https://acme.wallet.platform.example/acme/oid4vci
ownerUserId: 2c4e6a80-3b5d-4f70-9a12-8c0d1e2f3a4b
correlationId: reg-acme-7f12a7c4
ownerDelivery:
mode: email
status: SENT
deliveryId: del-7f12a7c4
providerMessageId: msg-001
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/tenants/{tenantId}:
get:
tags: [Tenants]
summary: Get tenant
description: Returns a single tenant by id.
operationId: getTenant
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
responses:
'200':
description: Tenant.
content:
application/json:
schema:
$ref: '#/components/schemas/Tenant'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
delete:
tags: [Tenants]
summary: Delete tenant
description: Soft-deletes the tenant routing row.
operationId: deleteTenant
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
responses:
'200':
description: Tenant deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteResult'
example:
deleted: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tenants/{tenantId}/lifecycle/status:
patch:
tags: [Tenants]
summary: Update tenant status
description: Updates a tenant's lifecycle status and returns the updated tenant.
operationId: updateTenantStatus
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateTenantStatusRequest'
example:
status: SUSPENDED
responses:
'200':
description: Updated tenant.
content:
application/json:
schema:
$ref: '#/components/schemas/Tenant'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tenants/{tenantId}/domains:
get:
tags: [Tenants]
summary: List tenant domains
description: Lists the domains attached to a tenant.
operationId: listTenantDomains
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
responses:
'200':
description: Tenant domains.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantDomainList'
example:
data:
- id: dom-acme-platform
tenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
domain: acme.wallet.platform.example
kind: PLATFORM_SUBDOMAIN
isPrimary: true
verifiedAt: '2026-06-08T09:00:00Z'
createdAt: '2026-06-08T09:00:00Z'
updatedAt: '2026-06-08T09:00:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
post:
tags: [Tenants]
summary: Add tenant domain
description: Attaches a domain (platform subdomain or custom) to a tenant.
operationId: addTenantDomain
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AddTenantDomainRequest'
example:
domain: wallet.acme.example
kind: CUSTOM_DOMAIN
isPrimary: false
responses:
'201':
description: Domain added.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantDomain'
example:
id: dom-acme-custom
tenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
domain: wallet.acme.example
kind: CUSTOM_DOMAIN
isPrimary: false
verifiedAt: null
createdAt: '2026-06-08T09:25:00Z'
updatedAt: '2026-06-08T09:25:00Z'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/tenants/{tenantId}/domains/{domain}:
delete:
tags: [Tenants]
summary: Remove tenant domain
description: Detaches a domain from a tenant.
operationId: removeTenantDomain
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
- $ref: './platform-admin-components.yml#/components/parameters/Domain'
responses:
'200':
description: Domain removed.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteResult'
example:
deleted: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tenants/{tenantId}/domains/{domain}/verify:
post:
tags: [Tenants]
summary: Verify tenant custom domain
description: |
Submits a DNS challenge proof to verify a custom domain and returns the
updated domain. The verification proof is write-only.
operationId: markTenantDomainVerified
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
- $ref: './platform-admin-components.yml#/components/parameters/Domain'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyTenantDomainRequest'
example:
verificationProof: dns-challenge-0a1b2c3d4e5f
responses:
'200':
description: Domain verified.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantDomain'
example:
id: dom-acme-custom
tenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
domain: wallet.acme.example
kind: CUSTOM_DOMAIN
isPrimary: false
verifiedAt: '2026-06-08T09:30:00Z'
createdAt: '2026-06-08T09:25:00Z'
updatedAt: '2026-06-08T09:30:00Z'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tenants/{tenantId}/children:
get:
tags: [Tenants]
summary: List immediate child tenants
description: Lists the immediate children of a parent tenant as a paginated envelope. Sort by `createdAt` or `slug`.
operationId: listSubtenants
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/Limit'
- $ref: './common-components.yml#/components/parameters/Offset'
- $ref: './common-components.yml#/components/parameters/Page'
- $ref: './common-components.yml#/components/parameters/Size'
- name: sort
in: query
required: false
description: Field to sort by.
schema:
type: string
enum: [createdAt, slug]
default: createdAt
- $ref: './common-components.yml#/components/parameters/SortDirection'
responses:
'200':
description: Paginated child tenant list.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantPage'
example:
data:
- id: 9d4e1a2b-3c5f-4e80-a1b2-c3d4e5f60718
tenantType: organization
name: Acme EU
description: Acme European subtenant
slug: acme-eu
parentTenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
status: ACTIVE
system: false
ownerPartyId: null
createdAt: '2026-06-08T10:00:00Z'
createdById: null
updatedAt: '2026-06-08T10:00:00Z'
updatedById: null
deletedAt: null
deletedById: null
pagination:
limit: 20
offset: 0
page: 0
size: 20
total: 1
totalPages: 1
hasMore: false
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/tenants/{tenantId}/public-endpoints:
get:
tags: [Tenants]
summary: List tenant public endpoint bindings
description: Lists the public endpoint bindings for a tenant.
operationId: listTenantPublicEndpoints
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
responses:
'200':
description: Public endpoint bindings.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantPublicEndpointList'
example:
data:
- id: pep-acme-issuer
tenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
serviceType: OID4VCI_ISSUER
instanceId: null
host: acme.wallet.platform.example
pathPrefix: /acme/oid4vci
wellKnownPath: /.well-known/openid-credential-issuer/acme
enabled: true
primaryEndpoint: true
createdAt: '2026-06-08T09:00:00Z'
updatedAt: '2026-06-08T09:00:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/tenants/{tenantId}/public-endpoints/{serviceType}:
put:
tags: [Tenants]
summary: Create or update tenant public endpoint binding
description: Creates or updates the public endpoint binding for a tenant and service type.
operationId: upsertTenantPublicEndpoint
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
- $ref: './platform-admin-components.yml#/components/parameters/PublicEndpointServiceType'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertTenantPublicEndpointRequest'
example:
host: acme.wallet.platform.example
pathPrefix: /acme/oid4vci
wellKnownPath: /.well-known/openid-credential-issuer/acme
enabled: true
primaryEndpoint: true
responses:
'200':
description: Public endpoint binding.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantPublicEndpoint'
example:
id: pep-acme-issuer
tenantId: 7b3c2d9e-1f4a-4c8b-9e2d-5a6f7c8b9d01
serviceType: OID4VCI_ISSUER
instanceId: null
host: acme.wallet.platform.example
pathPrefix: /acme/oid4vci
wellKnownPath: /.well-known/openid-credential-issuer/acme
enabled: true
primaryEndpoint: true
createdAt: '2026-06-08T09:00:00Z'
updatedAt: '2026-06-08T09:35:00Z'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
delete:
tags: [Tenants]
summary: Delete tenant public endpoint binding
description: Deletes the public endpoint binding for a tenant and service type.
operationId: deleteTenantPublicEndpoint
parameters:
- $ref: './platform-admin-components.yml#/components/parameters/TenantId'
- $ref: './platform-admin-components.yml#/components/parameters/PublicEndpointServiceType'
responses:
'200':
description: Public endpoint binding deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteResult'
example:
deleted: true
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tenant-onboarding/{correlationId}:
get:
tags: [Tenants]
summary: Get tenant onboarding status
description: |
Returns the public-safe lifecycle status of a tenant registration attempt,
including the per-step timeline, keyed by the `correlationId` returned at
registration.
operationId: getTenantOnboardingStatus
parameters:
- name: correlationId
in: path
required: true
description: Durable registration-log identifier returned at registration.
schema:
type: string
example: reg-acme-7f12a7c4
responses:
'200':
description: Onboarding status.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOnboardingStatus'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
# =====================================================================
# TenantSignup
# =====================================================================
/tenants/signup/request:
post:
tags: [TenantSignup]
summary: Request tenant signup email verification