Skip to content
LogoLogo

Private channel

Endpoint

POST /private-channel

Purpose

Establishes the attested application-encryption channel used by browser clients.

Authorization

Public handshake; no account permission is granted. Verify nonce, attestation and communication-key/session binding before sending private messages. Fetch financial identity through that encrypted channel and match trusted configuration. Account requests still require signatures.

Request fields

FieldTypeRequiredMeaning
versionintegerYesChannel protocol version, currently 1.
deploymentstringYesExact configured deployment identity.
clientPublicKeystringYesURL-safe base64 without padding, encoding the client's 65-byte uncompressed P-256 public key.
noncestringYesURL-safe base64 without padding, encoding a fresh 32-byte nonce.

The channel's nonce encoding differs from the standard base64 used by the service attestation and financial-identity calls.

Request example

Fixed example values. Generate a fresh key pair and nonce for your deployment.

{
  "version": 1,
  "deployment": "your-deployment",
  "clientPublicKey": "BGsX0fLhLEJH-Lzm5WOkQPJ3A32BLeszoPShOUXYmMKWT-NC4v4af5uO5-tKfA-eFivOM1drMV7Oy7ZAaDe_UfU",
  "nonce": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8"
}

Response fields

200 OK with:

FieldTypeMeaning
versionintegerChannel protocol version.
deploymentstringBound deployment identity.
sessionIdstringOpaque encryption-channel identifier.
serverPublicKeystringThe attested server communication key.
expiresAtintegerChannel expiry in Unix milliseconds.
documentstringAttestation document bound to the handshake.

Binary response fields use URL-safe base64 without padding.

Response example

Verify the runtime document and handshake binding before accepting keys. The placeholder is not attestation evidence.

{
  "version": 1,
  "deployment": "your-deployment",
  "sessionId": "oaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaE",
  "serverPublicKey": "BHzyexiNA09-ilI4AwS1GsPAiWnid_IbNaYLSPxHZpl4B3dVENuO0EApPZrGn3Qw27p9reY86YIpngS3nSJ4c9E",
  "expiresAt": 1796300060000,
  "document": "<base64url-encoded Nitro COSE document returned at runtime>"
}

Constraints

Use the complete encrypted transport reference for the binary transcript, attestation binding, key derivation, AES-GCM framing and HTTP/WebSocket sequence rules. A channel expires after 60 seconds; establish a fresh one before continuing after expiry. Unavailable capacity, invalid handshake material and failed evidence generation return 503; request parsing and body limits can fail separately. Successful responses use Cache-Control: no-store.