Vault
Submit a signed XDR or perform server-side store to add a VC to Vault.
POST /vault/store
/vault/storeSigned XDR flow
Body:
{ signedXdr: string; vcId: string; owner?: string; vaultContractId?: string }Returns:
201{ vc_id: string; tx_id: string; verification?: { status?: string; since?: string } }Errors:
400 bad_request,403 issuer_not_authorized,500 store_errorSource:
api/testnet/src/controllers/vaultStoreController.ts:13-43
Server-side flow
Body:
{ owner: string; vcId: string; vcData: string; vaultContractId: string; issuerDid?: string; issuanceContractId?: string }Returns:
201{ vc_id: string; tx_id: string; verification?: { status?: string; since?: string } }Validations:
owner_required,vcId_required,vcData_required,vaultContractId_required,issuerDid_invalidErrors:
403 issuer_not_authorized,400 bad_request,500 store_errorSource:
api/testnet/src/controllers/vaultStoreController.ts:46-99
Last updated

