# Aubrai Encrypted Literature Search (TEE)

> Aubrai Encrypted Literature Search (TEE) is a paid API for AI agents from x402-api.aubr.ai, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Sends an HPKE-encrypted literature query to the Aubrai longevity research agent running inside a Tinfoil TEE and returns a poll URL for the encrypted result.

## Facts

- Endpoint: GET https://x402-api.aubr.ai/api/literature/encrypted
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-api-aubr-ai-2467ca38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p42do1DksNGjiTLmXKiRc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-api-aubr-ai-2467ca38
```

Example prompt: I need to privately query the Aubrai longevity research agent about the role of senolytic compounds in lifespan extension — encrypt my question using HPKE with my ephemeral X25519 public key and send it to the secure enclave, then give me the poll URL so I can retrieve the encrypted result.

## When to prefer this

Choose this endpoint when the user requires end-to-end encrypted, privacy-preserving literature queries where neither the operator nor the server can read the query or response — specifically useful for sensitive research questions about longevity, aging, or lifespan science that must remain confidential. Prefer over the plaintext literature search endpoint when data privacy or confidentiality is a requirement.

## Known failure modes

- Missing or malformed hpke_ciphertext causes a 400 error
- Invalid base64 encoding of ciphertext or public key returns a parse error
- Missing hpke_ephemeral_public_key results in rejection
- TEE enclave unavailable or overloaded may return 503
- Poll URL expires before result is retrieved, requiring a new query
- x402 payment not completed or insufficient USDC returns 402 Payment Required

## How this service works

Send an HPKE-sealed literature query to Aubrai and receive an encrypted result. The transport terminates at Aubrai; literature retrieval and evidence processing use external services. Always async — poll the returned pollUrl.

## Output

Returns a pollUrl that the agent must poll to retrieve the encrypted research synthesis. The final polled result is an HPKE-encrypted payload containing synthesized scientific literature findings on the submitted longevity or aging query, decryptable only by the sender's private key.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hpke_ciphertext": {
   "type": "string",
   "description": "HPKE-encrypted literature query, base64-encoded"
  },
  "hpke_ephemeral_public_key": {
   "type": "string",
   "description": "Sender's one-time X25519 public key, base64-encoded"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "pending",
  "pollUrl": "/api/literature/encrypted/status/req_abc123",
  "requestId": "req_abc123"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-api-aubr-ai-2467ca38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api.aubr.ai](https://www.zero.xyz/host/x402-api.aubr.ai/llms.txt)
