Webhooks
Receive error report (callback)
Hosted by every participant. The exchange posts this message to the endpoint_url you registered, at /v1/error, with the headers and the sealed payload the sender posted. Answer HTTP 202 with the receipt first and process afterwards; [Receiving a callback](/docs/nhcx/v1/getting-started/receiving-a-callback) has the rules.
Where the exchange tells a sender that a request could not be delivered after five attempts. Received by every participant under its registered address. There is no outbound form. On every NHCX call, the token goes in a header called It is Your participant code. Mandatory on the envelope. The recipient's. For a provider, the processor code from the policy lookup. Mandatory on the envelope. Fresh on every message, including responses. Mandatory on the envelope. The thread. See the rule below. Mandatory on the envelope. See the format note below. Mandatory on the envelope. Where this message stands. Values below. Mandatory on the envelope. Received. The receipt names the message it answers; the answer itself follows as a call of your own.Authorizations
Authorizationbearer tokenRequiredbearer_auth, with the word Bearer and a space in front. The sources are not unanimous: the authentication page and the FAQ both write the example as Authorization, and the notification endpoint uses Authorization. The safe course, and what the adapter does, is to send both headers with the same value.Headers
bearer_authstringRequiredbearer_auth, not Authorization, on NHCX's own endpoints.x-hcx-sender_codestringRequiredx-hcx-recipient_codestringRequiredx-hcx-api_call_idstringRequiredx-hcx-correlation_idstringRequiredx-hcx-timestampstringRequiredx-hcx-statusstringRequiredBody
typestringx-hcx-sender_codestringx-hcx-recipient_codestringx-hcx-api_call_idstringx-hcx-correlation_idstringx-hcx-workflow_idstringx-hcx-timestampstringx-hcx-statusstringx-hcx-error_detailsobjectx-hcx-error_details.codestringx-hcx-error_details.messagestringx-hcx-error_details.tracestringx-hcx-entity-typestringResponses
202
Where this fits
You produce this callback by calling Error report (callback).