Request schema
{
"type": "object",
"description": "The body of POST /v1/submit: a request sealed to encryption_public_key from GET /v1/key (protocol pocket-confidential/0.1). The plaintext input inside names the service and its fields (treasury-stress: positions, liquidity_floor_usd, limits; counterparty-screen: items and reply_key; see the card's docs). POST /v1/result takes {request_id}. The GET routes take no body.",
"properties": {
"request": {
"type": "object",
"description": "The sealed request envelope.",
"properties": {
"protocol": {
"type": "string",
"enum": [
"pocket-confidential/0.1"
]
},
"cipher": {
"type": "string",
"enum": [
"x25519-hkdf-sha256-aes-256-gcm"
]
},
"service": {
"type": "string",
"enum": [
"treasury-stress",
"covenant-monitor",
"counterparty-screen",
"evidence-chain"
],
"description": "Which confidential service the job runs."
},
"request_id": {
"type": "string",
"description": "16 to 64 lowercase hex characters, chosen by the caller. Keep it private: it reads the result."
},
"to": {
"type": "string",
"description": "encryption_public_key from GET /v1/key."
},
"ephemeral_public_key": {
"type": "string"
},
"iv": {
"type": "string"
},
"ciphertext": {
"type": "string"
},
"tag": {
"type": "string"
},
"input_commitment": {
"type": "string",
"description": "sha256(canonical(input) + salt), 64 lowercase hex characters. Keep the salt."
}
},
"required": [
"protocol",
"cipher",
"service",
"request_id",
"to",
"ephemeral_public_key",
"iv",
"ciphertext",
"tag",
"input_commitment"
]
}
},
"required": [
"request"
]
}
Response schema
{
"type": "object",
"description": "GET /v1/key answers {announcement, signature}: the job's X25519 encryption_public_key and Ed25519 key, artifact and policy digests, expiry. POST /v1/submit answers 202 {request_id, status: queued, input_commitment}. POST /v1/result answers status (queued, working, done, error, watching, ended) and, when done, sealed {result, evidence, signature}. Errors are {error: {code, message}}."
}