Create a confidential code upload session
POST /v1/confidential-code/upload-sessions — Starts the browser-side TEE upload handshake used by Strategy Studio and X Strategy Studio. The gateway forwards only op
POST /v1/confidential-code/upload-sessions
Starts the browser-side TEE upload handshake used by Strategy Studio and X Strategy Studio. The gateway forwards only opaque attestation and encrypted-envelope metadata; plaintext strategy source never enters gateway logs.
| Method | POST |
| Path | /v1/confidential-code/upload-sessions |
| Auth | Authorization: Bearer <token> required |
| Category | gateway |
Request body
{ "operation": "strategy_source_upload", "attestation": { "…": "opaque provider payload" } }Response body
{ "uploadSessionId": "cus_…", "expiresAt": "2026-08-10T12:00:00.000Z", "attestation": { "…": "opaque provider payload" } }