{"uid":"cap_na_7iicS4dlsY9SyhDmoa","slug":"aubrai-encrypted-chat-hpke-tee-7d355f5d","name":"Aubrai Encrypted Chat (HPKE/TEE)","description":"Send an HPKE-encrypted prompt to the Aubrai chat agent running inside a Tinfoil TEE. Only the enclave can decrypt your message.","url":"https://aubrai-x402.vercel.app/api/chat/encrypted","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"hpke_ciphertext":{"type":"string","description":"HPKE-encrypted prompt, base64-encoded"},"hpke_ephemeral_public_key":{"type":"string","description":"Sender's one-time X25519 public key, base64-encoded"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sd4wMiSR3ccW-bzujZIxA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends an HPKE-encrypted prompt to the Aubrai chat agent running inside a Trusted Execution Environment (TEE), ensuring only the secure enclave can decrypt and process the message.","exampleAgentPrompt":"I need to send a sensitive prompt to the Aubrai chat agent privately — encrypt my message using HPKE with my one-time X25519 public key so only the Tinfoil TEE enclave can decrypt it, and return the agent's response.","exampleUseCases":null,"resultDescription":"The agent receives a response generated inside the Tinfoil TEE enclave. The response was produced by the Aubrai chat agent after decrypting and processing the HPKE-encrypted prompt entirely within the secure enclave, ensuring the plaintext prompt was never visible to the host infrastructure.","failureModes":["Invalid or malformed base64 in hpke_ciphertext or hpke_ephemeral_public_key returns a 400 error","HPKE decryption failure inside the enclave if the public key or ciphertext is inconsistent","Payment not received or x402 payment challenge not satisfied returns a 402 Payment Required","TEE enclave unavailable or attestation failure returns a 503 or 500 error","Prompt content rejected by enclave policy returns an error response"],"whenToPreferThis":"Choose this endpoint when confidentiality of the prompt is a hard requirement — i.e., the user cannot allow the API host or intermediary to see the plaintext query. This is specifically suited for sensitive queries sent to Aubrai's chat agent where the Tinfoil TEE provides hardware-level isolation guarantees. Prefer this over standard chat endpoints when end-to-end encrypted inference is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:14.281Z","isFirstParty":false}