Large pushes
A webhook has a size limit, and a single HIP push can be larger than that. Every entry therefore carries acontent_ref, and when the webhook would be too large, content is sent as an empty string for some entries.
What to do when you receive this webhook:
- For each entry in
data.entries, checkcontent. - If
contentis empty, fetch the entry with the Fetch data push entry API, passingdata.transaction_idand the entry’scontent_ref. - Decrypt
contentwithkey_informationand your private key, whether it came inline or from the API, and verifychecksum.
We recommend fetching every entry through the Fetch data push entry API. Inline
content may be removed from this webhook in a future version.Request
Headers:Eka-Webhook-Signature:<Eka Webhook Signature>Refer: Webhook SignatureContent-Type:application/json
Field Descriptions
data: Contains additional details related to the event.consent_id: Consent id for the data transfertransaction_id: Transaction id for the data flow. Use this one, not the top-leveltransaction_id, when calling the Fetch data push entry API.entries: List of care contexts with encrypted fhir datacare_context_idThe care context this entry belongs to.checksumChecksum of the plain-text FHIR data, to verify after decryption.contentThe encrypted FHIR data. Empty when the entry did not fit in the webhook; see Large pushes.mediaMedia type of the decrypted data,application/fhir+json.content_refReference to fetch this entry with the Fetch data push entry API. Always present. Valid for 15 minutes after the webhook is sent.
key_information: Contains the cryptographic key material and related parameters required for secure ECDH-based key exchange between HIU and HIP.crypto_algThe cryptographic algorithm used for key exchange (e.g., “ECDH”).curveThe elliptic curve used in ECDH key generation (e.g., “Curve25519”, “P-256”).dh_public_keyObject containing the HIU’s public key and related metadata:expiryThe expiration timestamp (in ISO 8601 format) indicating how long the public key is valid.parametersAdditional parameters related to the ECDH key (optional or curve-specific).key_valueThe base64-encoded public key value generated by the HIU.
nonceA 32-byte random nonce (Base64-encoded) generated by the HIU, used to ensure uniqueness in the session key derivation.

