What are Encrypted Requests?
An encrypted request sends its body as an envelope instead of plaintext JSON. The envelope carries the normal request, encrypted to your encryption key so that only Hyperion can read it, plus the values Hyperion needs to check it.
Encrypted requests provide:
- End-to-end confidentiality: The request body is unreadable to anything between your device and Hyperion, not only protected by HTTPS
- Binding: Each ciphertext is bound to the monitorable, and for incidents to the incident, so it can't be replayed against another one
- Device authenticity: With a monitorable signing key, every request proves it came from the device holding that key
- Encrypted reads: Lookups return the full record encrypted to a key your device chooses
Plaintext requests keep working on every endpoint unless your partner settings require encryption. Hyperion recognizes an envelope by its shape and decrypts it before processing the request normally, so the response is the same as for the plaintext request.
Partner Requirements
Two partner settings that change when encryption and signatures are optional:
| Setting | Effect |
|---|---|
requireEncryption | Endpoints that accept encrypted envelopes reject plaintext bodies with a validation error. Lookup endpoints already require encryption, so this setting does not change them. |
requireSignature | Every encrypted request bound to a monitorable must include a valid signature. Encrypted create-monitorable must send pkSigningKey and signature. A missing signature returns 401 Signature required. |
The settings are independent. Signatures only apply to encrypted requests, so with requireSignature on and requireEncryption off, plaintext requests still succeed.
If a monitorable has no signing key yet and requireSignature is on, register one with an encrypted PATCH /v1/monitorables/:monitorableId that sends pkSigningKey and a signature made with that key.
Supported Requests
| Request | Route | Payload encryption |
|---|---|---|
| Register monitorable | POST /v1/monitorables | HPKE |
| Update monitorable | PATCH /v1/monitorables/:monitorableId | HPKE |
| Create monitorable incident | POST /v1/monitorables/:monitorableId/incidents | HPKE key share, then incident key |
| Add monitorable incident event | POST /v1/monitorables/:monitorableId/incidents/:incidentId/events | Incident key |
| Update monitorable incident | PATCH /v1/monitorables/:monitorableId/incidents/:incidentId | Incident key |
| Monitorable lookup | POST /v1/monitorable-lookup/:monitorableId | HPKE or RSA-OAEP |
| Incident lookup | POST /v1/monitorables/:monitorableId/incident-lookup/:incidentId | HPKE or RSA-OAEP |
| Incident action lookup | POST /v1/monitorables/:monitorableId/incidents/:incidentId/action-lookup/:actionId | HPKE or RSA-OAEP |
| Event lookup | POST /v1/monitorables/:monitorableId/event-lookup/:eventId | HPKE or RSA-OAEP |
Each request uses the same access token and scopes as its plaintext form. Lookups are only available encrypted.
Building Blocks
Notation
| Notation | Meaning |
|---|---|
H(x) | SHA-256 of x |
lp(x) | The byte length of x as a 2-byte big-endian integer, followed by x. Strings are encoded as UTF-8 |
a ‖ b | The bytes of a followed by the bytes of b |
[x] | x when the monitorable has a signing key, otherwise nothing |
Every binary value in an envelope is standard Base64 with padding. Hashes are always taken over the raw bytes, never the Base64 text: H(encryptedPayload) is the SHA-256 of the decoded ciphertext.
Every timestamp that feeds the cryptography (requestTimestamp, bucketTimestamp, escalationTimestamp) must be in the 20-character YYYY-MM-DDTHH:MM:SSZ form, with no fractional seconds.
HPKE
Payloads encrypted to your encryption key use HPKE (RFC 9180) in base mode. Fetch the key from /v1/encryption-keys/current. Any HPKE algorithm listed on the Encryption Keys page works; HPKE-XWING-SHA256-AES256GCM is recommended for new integrations.
- Wire format: the encapsulated key followed by the ciphertext, Base64 encoded.
infoandaad: each request defines both. A request encrypted with the wronginfooraadfails to decrypt.encryptionKeyId: theidof the encryption key you used. When omitted, Hyperion uses your current key. Incident requests must send it.
RSA encryption keys can only be used for lookups.
AES-256-GCM
Incident payloads and lookup responses use AES-256-GCM with a 32-byte key. The wire format is a random 12-byte IV, then the ciphertext, then the 16-byte tag, Base64 encoded.
Monitorable Signing Keys
A monitorable can have a signing key (pkSigningKey): a public key, as Base64 SPKI DER, whose private key stays on your device. Once a monitorable has one, every later encrypted request and lookup for it must be signed with that key, and Hyperion returns 401 for a missing or invalid signature. The same 401 applies when the partner requireSignature setting is on, even if no key is stored yet. Requests that send pkSigningKeyHash must set it to H(pkSigningKey).
Without a signing key, signature fields are ignored and H(pkSigningKey) is left out of every HPKE info.
Hyperion supports two signing profiles:
| Profile | Public key | Signature over a commitment m |
|---|---|---|
ecdsa-p256 | ECDSA P-256 SPKI | ECDSA P-256 with SHA-256 over m, as the 64-byte r ‖ s (IEEE P1363) form |
composite-mldsa65-ecdsa-p256 | SPKI whose algorithm identifier contains the bytes 06 08 2B 06 01 04 01 83 B7 0F 01, and whose key is the 1952-byte ML-DSA-65 key followed by the 65-byte uncompressed P-256 point | With p = SHA-512(m): the 3309-byte ML-DSA-65 signature over p, followed by the 64-byte ECDSA P-256 with SHA-512 signature over p |
The message you sign is always a 32-byte commitment hash, defined for each request below. The signing key is never returned in API responses.
You can set a signing key when you register the monitorable, add or replace it with an update, or remove it by sending pkSigningKey: null in an update. An encrypted update that sets a new key must be signed by the new key, as proof that the device holds it.
Request Bindings
Each request defines what its HPKE info and aad contain and what its signature covers.
Monitorables
| Request | HPKE info | HPKE aad | Signed commitment |
|---|---|---|---|
| Register monitorable | [lp(H(pkSigningKey))] | lp(requestTimestamp) | H(lp(requestTimestamp) ‖ lp(H(encryptedPayload))) |
| Update monitorable | [lp(H(pkSigningKey))] ‖ lp(monitorableId) | lp(monitorableId) | H(lp(monitorableId) ‖ lp(requestTimestamp) ‖ lp(H(encryptedPayload))) |
On register, [...] applies when the request sends pkSigningKey. On update, it uses the key that signs the request: the stored key, or the new key when the update replaces it.
Lookups
| Part | Value |
|---|---|
HPKE info | [lp(H(pkSigningKey))] ‖ lp(monitorableId) |
HPKE aad | lp(monitorableId) |
| Signed commitment | H(lp(monitorableId) ‖ lp(requestTimestamp) ‖ lp(H(encryptedPayload))) |
Response aad | lp(monitorableId) ‖ lp(requestTimestamp) |
The encrypted payload is { "responseKey": "<Base64 32-byte key>" }. Hyperion returns the full record AES-256-GCM encrypted under responseKey.
With an RSA-OAEP key, the payload is encrypted with RSA-OAEP (SHA-256 for RSA-OAEP-256, SHA-512 for RSA-OAEP-512), which has no info or aad. An RSA lookup is then bound to the monitorable only by its signature.
An unsigned RSA lookup isn't bound to the monitorable at all. Use an HPKE key, or a monitorable signing key, for lookups.
Incidents
Incident requests share a binding B = lp(monitorableId) ‖ lp(bucketTimestamp) and use the incident key K described below.
| Request | Encrypted value | aad | Signed commitment |
|---|---|---|---|
| Create incident: key share | keyShare2, HPKE with info = [lp(H(pkSigningKey))] ‖ lp(monitorableId) | B | H(lp(bucketTimestamp) ‖ lp(hashEncryptedKeyShare1) ‖ lp(H(encryptedKeyShare2)) ‖ lp(keyShare2Confirm) ‖ lp(incidentKeyConfirm)) |
| Create incident: each event | Event request, AES-256-GCM under K | B | H(lp(bucketTimestamp) ‖ lp(incidentKeyConfirm) ‖ lp(H(encryptedPayload))) |
| Add event | Event request, AES-256-GCM under K | B | H(lp(bucketTimestamp) ‖ lp(incidentKeyConfirm) ‖ lp(H(encryptedPayload))) |
| Update incident | Update request, AES-256-GCM under K | B ‖ lp(incidentId) | H(lp(bucketTimestamp) ‖ lp(incidentKeyConfirm) ‖ lp(incidentId) ‖ lp(H(encryptedPayload))) |
Update incident binds incidentId so that an add event payload can't be sent as an update, or the reverse.
Incident Keys
Your device generates a random 32-byte incident key K for each incident and encrypts every incident payload with it. Hyperion learns K from the create incident request and keeps it, encrypted, for later events and updates on the same incident.
Splitting the Key
| Value | How to build it |
|---|---|
keyShare1 | 32 random bytes |
keyShare2 | K XOR keyShare1 |
encryptedKeyShare2 | HPKE encryption of keyShare2 with the info and aad above |
keyShare2Confirm | 32 bytes exported from the same HPKE sender context, with an empty exporter context |
incidentKeyConfirm | HKDF-SHA256 with input key K, an empty salt, info I2OSP(32, 2) ‖ B, and a 32-byte output |
hashEncryptedKeyShare1 | H(encryptedKeyShare1), where encryptedKeyShare1 is the copy of keyShare1 you keep encrypted for your own systems |
Hyperion rejects the request with 400 when keyShare2Confirm or incidentKeyConfirm doesn't match.
The Bucket Timestamp
bucketTimestamp is the start of the 10-minute bucket the incident key belongs to, such as 2026-11-07T15:30:00Z. It must be on the 10-minute grid, not after escalationTimestamp, and no more than 30 minutes before it. Later add event and update requests must send the same bucketTimestamp.
The Response Key
The first event in a create incident request must include responseKey, a Base64 32-byte key, in its encrypted payload. Hyperion stores it with the incident. A responseKey in any later payload is ignored.
When the Key is Deleted
The incident key is deleted when the incident becomes CLOSED: when you close it, when a newer incident is created for the monitorable, or when it closes for inactivity. Encrypted add event and update requests then return 409. They also return 409 for incidents that were created from a plaintext request.
Replay Protection
For create incident, add event, and update incident, Hyperion remembers H(encryptedKeyShare2) and each H(encryptedPayload) for 24 hours after the request succeeds. Sending the same ciphertext again returns 400. A request that fails isn't remembered, so you can retry it.
Register, update, and lookup requests aren't checked for replays.
Errors
| Status | When |
|---|---|
| 400 | The payload fails to decrypt, the decrypted request fails validation, a confirm value or bucketTimestamp is wrong, or the request is a replay |
| 401 | A required signature is missing or invalid, or pkSigningKeyHash doesn't match the monitorable's signing key |
| 404 | The monitorable or incident doesn't exist |
| 409 | The incident no longer accepts encrypted events or updates |
Error responses use the standard error format.
Related Resources
Guides
- Encrypt Monitorable Data - Register and update monitorables with encrypted requests
- Sign Requests - Add a monitorable signing key and sign requests
- Look Up Records - Read records with encrypted lookups
- Encrypt Incidents - Create, add events to, and update incidents with encrypted requests
Related Concepts
- Encryption Keys - Create, rotate, and fetch the keys requests are encrypted to
- Monitorables - Entities whose data can be encrypted
- Monitorable Incidents - Incidents and their lifecycle