Skip to main content
@ensc/sdk

Authorizations

Authorization
string
header
required

Your secret key, generated in the ProsperaVest dashboard (Sandbox or Live). Send as: Authorization: Bearer ensc_live_sk_...

Path Parameters

id
string
required

Response

List or object

ENSC-RESP-V1. HPKE (RFC 9180; DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, ChaCha20-Poly1305) seal of the plaintext JSON response to the merchant signing key named by X-ENSC-Key-Id (Ed25519 key converted to X25519). info = "ENSC-RESP-V1\n{requestId}". The body is signed by ENSC: X-ENSC-Signature over "ENSC-RESP-V1\n{requestId}\n{timestamp}\n{sha256(body)}". Returned for sk/rk merchant keys only.

v
enum<number>
required
Available options:
1
enc
string
required
Pattern: ^[A-Za-z0-9_-]{43}$
ciphertext
string
required
Pattern: ^[A-Za-z0-9_-]{22,}$