GET /envelopes endpoint returns a cursor-paginated list of every encrypted envelope stored in your agent’s replication log. To make client-side decryption straightforward with the Web Crypto API, the server strips the initial 12-byte initialization vector (IV) from each stored binary block and returns it as a separate base64 field alongside the remaining ciphertext. You never receive plaintext — only the sealed envelopes your client originally uploaded.
Request
Query Parameters
Exclusive lower bound on the sequence number. Returns only envelopes with a sequence number strictly greater than this value. Use the
x-next-cursor response header value to paginate forward.Exclusive upper bound on the sequence number. Returns only envelopes with a sequence number strictly less than this value.
Response Headers
The response includes the following custom headers for cursor-based pagination:Response
200 OK
Returns a JSON array. Each element represents one encrypted envelope:Base64-encoded ciphertext — the AES-256-GCM ciphertext and auth tag, with the IV removed (it is returned separately in
iv).Base64-encoded 12-byte GCM initialization vector, extracted from the stored binary block by the server.