Webhooks and events
Avertyn sends an HTTPS POST to your endpoint when something happens on a case. Each one is signed, so you can tell it came from Avertyn.
Add an endpoint#
An admin adds endpoints in Avertyn under Settings → Connections → Webhooks, or with POST /v1/webhooks. The URL must start with https://. Pick the events to receive and a level of detail. The signing secret (whsec_…) is shown once.
Levels of detail#
| Level | The body carries |
|---|---|
thin | The case's ID and number and the other IDs; fetch the rest with the API |
full | The change and the case, without patient details |
phi | full plus the patient reference, the claim number and the date of service, once the workspace accepts patient information. Until then it is sent as full |
What a delivery looks like#
An HTTPS POST with a JSON body. The body is the same at every retry, and id stays the same, so use it to skip an event you've already handled. sample is true when the case is sample data.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.due_soon",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation_end",
"label": "Open negotiation ends",
"due_at": "2026-12-10T04:59:00Z",
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.due_soon",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "thin",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"external_ref": "SAMPLE-0001"
},
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.due_soon",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "phi",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null,
"patient_ref": "SAMPLE-PATIENT",
"claim_number": "SAMPLE-CLAIM-001",
"service_date": "2026-09-14"
},
"kind": "open_negotiation_end",
"label": "Open negotiation ends",
"due_at": "2026-12-10T04:59:00Z",
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}Headers#
| Header | Carries |
|---|---|
X-Avertyn-Event | The event name, such as deadline.due_soon |
X-Avertyn-Event-Id | The event's id |
X-Avertyn-Delivery | The ID of this delivery to this endpoint |
X-Avertyn-Attempt | 1 for the first try, then 2, 3 and so on |
X-Avertyn-Signature | t=<unix seconds>,v1=<signature> |
User-Agent | Avertyn-Webhooks/1 |
Check the signature#
Compute an HMAC-SHA256, in hex, of t, a dot, and the raw body, with your endpoint's secret, and compare it with each v1. While you rotate a secret, a second v1 carries the old secret's signature. Reject a timestamp more than 5 minutes from now.
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before any JSON parsing.
export function fromAvertyn(rawBody, header, secret) {
const parts = header.split(",").map((p) => p.split("="));
const t = (parts.find(([k]) => k === "t") || [])[1];
if (!t || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const want = Buffer.from(crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
return parts.some(([k, v]) => k === "v1" && v.length === want.length &&
crypto.timingSafeEqual(Buffer.from(v), want));
}import hashlib, hmac, time
# raw_body: the request body exactly as received, as bytes.
def from_avertyn(raw_body: bytes, header: str, secret: str) -> bool:
parts = [p.split("=", 1) for p in header.split(",") if "=" in p]
t = next((v for k, v in parts if k == "t"), None)
if t is None or abs(time.time() - int(t)) > 300:
return False
want = hmac.new(secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return any(k == "v1" and hmac.compare_digest(v, want) for k, v in parts)Retries and health#
Answer with any 2xx within 10 seconds. Avertyn tries each event up to 9 times: at once, then after 1 minute, 5 minutes, 15 minutes, 1 hour, 2 hours, 4 hours, 6 hours and 10 hours, about 23 hours in all. Each endpoint's health is in Settings. After three days with no successful delivery the endpoint is paused; its events are held, not lost, and go out when you resume it.
Events#
Every event Avertyn sends, with a sample body at the full level. GET /v1/event-types returns the same list.
Notices#
notice.receivedA notice date was recorded on a case: an open negotiation notice or a notice of IDR initiation.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "notice.received",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"notice_received_on": "2026-11-10"
}
}notice.idr_initiatedThe date of the notice of IDR initiation was recorded on a case.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "notice.idr_initiated",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"idr_initiated_on": "2026-11-10"
}
}Cases#
dispute.createdA case was opened, by a person, an import or the API.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "dispute.created",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
}
}
}dispute.state_changedThe step or the phase of a case changed.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "dispute.state_changed",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"previous_phase": "open_negotiation",
"previous_state": "triage"
}
}dispute.resolvedAn outcome other than open was recorded on a case.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "dispute.resolved",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "settled",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "closed",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"previous_disposition": "open"
}
}case.assignedThe person a case is assigned to changed.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "case.assigned",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"assignee_id": "00000000-0000-4000-8000-0000000000a1",
"previous_assignee_id": null
}
}case.closedA case was closed.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "case.closed",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "settled",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "closed",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"outcome": "settled",
"closed_at": "2026-11-12T15:04:00Z",
"final_paid": 1400
}
}Deadlines#
deadline.setA deadline was added to a case.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.set",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation_end",
"label": "Open negotiation ends",
"due_at": "2026-12-10T04:59:00Z",
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}deadline.due_soonAn open deadline is due within 24 hours. Sent once for each deadline.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.due_soon",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation_end",
"label": "Open negotiation ends",
"due_at": "2026-12-10T04:59:00Z",
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}deadline.missedAn open deadline passed. Sent once for each deadline.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "deadline.missed",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation_end",
"label": "Open negotiation ends",
"due_at": "2026-12-10T04:59:00Z",
"deadline_id": "00000000-0000-4000-8000-0000000000d1"
}
}Messages#
message.receivedA message arrived in the Inbox. The text of the message is never sent.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "message.received",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"source": "email",
"status": "review",
"trusted": false,
"message_id": "00000000-0000-4000-8000-0000000000b1",
"received_at": "2026-11-12T15:04:00Z"
}
}message.sentA message left Avertyn by email, fax or mail. The text of the message is never sent.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "message.sent",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"channel": "email",
"sent_at": "2026-11-12T15:04:00Z",
"message_id": "00000000-0000-4000-8000-0000000000b2",
"document_id": null
}
}Documents#
document.addedA document was created on a case.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "document.added",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation",
"status": "draft",
"generated": true,
"document_id": "00000000-0000-4000-8000-0000000000c1"
}
}document.signedA document on a case was signed.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "document.signed",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation",
"signed_at": "2026-11-12T15:04:00Z",
"signed_by": "Jordan Ellis",
"document_id": "00000000-0000-4000-8000-0000000000c1"
}
}document.filedA document on a case was marked filed.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "document.filed",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation",
"filed_at": "2026-11-12T15:04:00Z",
"document_id": "00000000-0000-4000-8000-0000000000c1"
}
}Money#
offer.recordedAn offer or a counter-offer was recorded on a case.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "offer.recorded",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"kind": "open_negotiation",
"party": "plan",
"amount": 1400,
"status": "open",
"offer_id": "00000000-0000-4000-8000-0000000000e1",
"round_no": 1,
"pct_of_qpa": 121.7,
"submitted_at": "2026-11-12T15:04:00Z"
}
}payment.recordedA person recorded a payment on a case. No money moves through Avertyn.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "payment.recorded",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"payee": "Sample Provider Group",
"amount": 1400,
"method": "check",
"paid_at": "2026-11-12T15:04:00Z",
"direction": "out",
"payment_id": "00000000-0000-4000-8000-0000000000f1"
}
}Approvals#
action.stagedA step that needs a second person was staged for approval.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "action.staged",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"action": "submit_offer",
"amount": 1400,
"status": "pending",
"approval_id": "00000000-0000-4000-8000-0000000000a7"
}
}approval.decidedA staged step was approved, rejected or carried out.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "approval.decided",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": true,
"level": "full",
"data": {
"case": {
"id": "00000000-0000-4000-8000-000000000001",
"phase": "open_negotiation",
"pay_by": null,
"cpt_code": "99285",
"qpa_amount": 1150,
"respond_by": "2026-12-10T04:59:00Z",
"disposition": "open",
"external_ref": "SAMPLE-0001",
"billed_amount": 4200,
"demand_amount": 3900,
"workflow_state": "response_prep",
"plan_legal_name": "Sample Health Plan",
"service_category": "emergency",
"sponsor_legal_name": "Sample Employer, Inc.",
"idr_registration_number": null
},
"action": "submit_offer",
"amount": 1400,
"decision": "approved",
"decided_at": "2026-11-12T15:04:00Z",
"approval_id": "00000000-0000-4000-8000-0000000000a7"
}
}Time#
time.period_approvedEvery timesheet in a pay period that has ended is approved. period_id is the period's first day: fetch the hours with GET /v1/timesheets?period=period_id.
{
"id": "evt_3f0c9a2b7d4e4a1f9b6c2d8e5a7f1c30",
"type": "time.period_approved",
"created": "2026-11-12T15:04:00Z",
"api_version": "2026-11-19",
"workspace_id": "00000000-0000-4000-8000-00000000000f",
"sample": false,
"level": "full",
"data": {
"period_id": "2026-11-01",
"period": {
"kind": "biweekly",
"start": "2026-11-01",
"end": "2026-11-14",
"days": 14,
"label": "11/1/2026 to 11/14/2026"
},
"people": 12,
"total_min": 57600,
"overtime_min": 240
}
}Ask about this page
Answered from Avertyn's docs only, with links to where they say so. Not legal advice. Leave out patient details.