AvertynDocs

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#

LevelThe body carries
thinThe case's ID and number and the other IDs; fetch the rest with the API
fullThe change and the case, without patient details
phifull 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"
  }
}

Headers#

HeaderCarries
X-Avertyn-EventThe event name, such as deadline.due_soon
X-Avertyn-Event-IdThe event's id
X-Avertyn-DeliveryThe ID of this delivery to this endpoint
X-Avertyn-Attempt1 for the first try, then 2, 3 and so on
X-Avertyn-Signaturet=<unix seconds>,v1=<signature>
User-AgentAvertyn-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));
}

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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.
Sample body
{
  "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.

Updated 11/26/2026Suggest a change