CasePrimus.aiby Attestr
Documentation menu
Reference

Webhook events reference

Every event a webhook can subscribe to, grouped by what it is about, with the exact payload you will receive. New to webhooks? Start with how deliveries are signed, retried and verified.

Case events

A case was found, changed, summarized or re-scored.

Case pending review

case.pending_review

A newly discovered case is waiting for your review before monitoring begins.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000001",
  "type": "case.pending_review",
  "createdAt": "2026-09-13T09:12:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "ENTITY",
    "resourceId": "CPWLE0-8f2a91",
    "deepLink": "/parties/CPP0-3d71c2",
    "entityName": "Kavya Textiles Pvt Ltd",
    "partyId": "CPP0-3d71c2",
    "partyName": "Kavya Textiles Pvt Ltd",
    "watchlistEntityId": "CPWLE0-8f2a91",
    "count": 2,
    "truncated": false,
    "candidates": [
      {
        "candidateId": "CPWLCC0-71ab49",
        "caseReference": "DLHC010045612026",
        "cnrNumber": "DLHC010045612026",
        "registrationNumber": "4561/2026",
        "caseNumber": "CS(COMM) 4561/2026",
        "courtType": "HC",
        "court": "High Court of Delhi",
        "filingDate": "2026-08-21"
      },
      {
        "candidateId": "CPWLCC0-71ab50",
        "caseReference": "MHCT030012342026",
        "cnrNumber": "MHCT030012342026",
        "registrationNumber": "1234/2026",
        "caseNumber": "CC/1234/2026",
        "courtType": "DC",
        "court": "District Court, Pune",
        "filingDate": "2026-09-02"
      }
    ]
  }
}

Case added automatically

case.added

A new case was detected and added to the watchlist without needing manual review.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000002",
  "type": "case.added",
  "createdAt": "2026-09-13T09:15:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "CASE",
    "resourceId": "CPWLC0-4d71b2",
    "deepLink": "/cases/CPWLC0-4d71b2?from=CPP0-3d71c2",
    "caseId": "CPWLC0-4d71b2",
    "caseReference": "DLHC010048212026",
    "candidateId": "CPWLCC0-71ab49",
    "watchlistEntityId": "CPWLE0-8f2a91",
    "cnrNumber": "DLHC010048212026",
    "registrationNumber": "4821/2026",
    "caseNumber": "CS(COMM) 4821/2026",
    "courtType": "HC",
    "court": "High Court of Delhi",
    "filingDate": "2026-08-21"
  }
}

Case status changed

case.status_changed

A monitored case's status was updated (e.g. Active to Archived).

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000003",
  "type": "case.status_changed",
  "createdAt": "2026-09-13T09:20:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "CASE",
    "resourceId": "CPWLC0-4d71b2",
    "deepLink": "/cases/CPWLC0-4d71b2?from=CPP0-3d71c2",
    "caseReference": "DLHC01-004821-2026",
    "from": "ACTIVE",
    "to": "ARCHIVED"
  }
}

New order or hearing

case.new_order_or_hearing

A new order was uploaded, or a hearing date was added/changed, on a monitored case.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000004",
  "type": "case.new_order_or_hearing",
  "createdAt": "2026-09-13T09:25:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "CASE",
    "resourceId": "CPWLC0-4d71b2",
    "deepLink": "/cases/CPWLC0-4d71b2?from=CPP0-3d71c2",
    "caseReference": "DLHC01-004821-2026",
    "nextHearingDate": "2026-09-17"
  }
}

Case risk level changed

case.risk_level_changed

A monitored case's computed risk level moved to a different band (e.g. Medium to High).

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000005",
  "type": "case.risk_level_changed",
  "createdAt": "2026-09-13T09:30:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "CASE",
    "resourceId": "CPWLC0-4d71b2",
    "deepLink": "/cases/CPWLC0-4d71b2?from=CPP0-3d71c2",
    "caseReference": "DLHC01-004821-2026",
    "from": "MEDIUM",
    "to": "HIGH"
  }
}

Case AI summary refreshed

case.summary_refreshed

A new AI-generated summary was produced for a monitored case after a data refresh.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000006",
  "type": "case.summary_refreshed",
  "createdAt": "2026-09-13T09:35:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "CASE",
    "resourceId": "CPWLC0-4d71b2",
    "deepLink": "/cases/CPWLC0-4d71b2?from=CPP0-3d71c2",
    "caseReference": "DLHC01-004821-2026"
  }
}

Party events

A party's reputation moved, it finished a historical scan, or it was archived.

Party reputation band changed

party.reputation_changed

A party's reputation score moved into a different band. Subscriptions naming the retired `entity.reputation_changed` still receive it.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000007",
  "type": "party.reputation_changed",
  "createdAt": "2026-09-13T09:40:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "ENTITY",
    "resourceId": "CPWLE0-8f2a91",
    "deepLink": "/parties/CPP0-3d71c2",
    "entityName": "Kavya Textiles Pvt Ltd",
    "from": "MEDIUM",
    "to": "LOW"
  }
}

Historical scan completed

party.historical_scan_completed

The one-time historical case scan for a newly added party finished running.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000008",
  "type": "party.historical_scan_completed",
  "createdAt": "2026-09-13T09:45:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "ENTITY",
    "resourceId": "CPWLE0-8f2a91",
    "deepLink": "/parties/CPP0-3d71c2",
    "entityName": "Kavya Textiles Pvt Ltd",
    "foundCount": 4
  }
}

Party archived

party.archived

A party was removed from active monitoring. Subscriptions naming the retired `entity.archived` still receive it.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000009",
  "type": "party.archived",
  "createdAt": "2026-09-13T09:50:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "ENTITY",
    "resourceId": "CPWLE0-8f2a91",
    "entityName": "Kavya Textiles Pvt Ltd"
  }
}

Task events

A task in your workspace was assigned, completed or became overdue.

Task assigned

task.assigned

A task was assigned (or reassigned) to a team member.

Example payload
{
  "id": "evt_01HZY3K9G8X000000000000A",
  "type": "task.assigned",
  "createdAt": "2026-09-13T09:55:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "TASK",
    "resourceId": "CPT1-2f88ac",
    "deepLink": "/parties/CPP0-3d71c2",
    "taskTitle": "Follow up on hearing",
    "dueDate": 1789948800000,
    "taskId": "CPT1-2f88ac"
  }
}

Task completed

task.completed

A task was marked complete.

Example payload
{
  "id": "evt_01HZY3K9G8X000000000000B",
  "type": "task.completed",
  "createdAt": "2026-09-13T10:00:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "TASK",
    "resourceId": "CPT1-2f88ac",
    "deepLink": "/parties/CPP0-3d71c2",
    "taskTitle": "Follow up on hearing",
    "taskId": "CPT1-2f88ac"
  }
}

Task overdue

task.overdue

A task's due date has passed without it being marked complete.

Example payload
{
  "id": "evt_01HZY3K9G8X000000000000C",
  "type": "task.overdue",
  "createdAt": "2026-09-13T10:05:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "TASK",
    "resourceId": "CPT1-2f88ac",
    "deepLink": "/parties/CPP0-3d71c2",
    "taskTitle": "Follow up on hearing",
    "taskId": "CPT1-2f88ac",
    "dueDate": 1789948800000
  }
}

Export events

A file you asked for is ready to download, or could not be built.

Export ready

export.ready

A file you asked for has finished building and can be downloaded. One event for every kind of export, so read `kind` to tell them apart - CASE_ORDERS_EXPORT is every order document of one case as a zip, requested with POST /case-lookup/orders/download-all. The event carries no download link on purpose: a link is signed and lives an hour, while a webhook delivery can be retried for longer than that, so fetch a fresh one with GET /case-lookup/orders/download-all/{jobId} (or GET /export/{jobId} for the other kinds). The file itself is kept for 4 days from `expiresAt`, after which the job remains but the file is gone.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000013",
  "type": "export.ready",
  "createdAt": "2026-10-18T09:12:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "EXPORT",
    "resourceId": "CPEJ0exampledemo01",
    "deepLink": "/reports",
    "jobId": "CPEJ0exampledemo01",
    "kind": "CASE_ORDERS_EXPORT",
    "resourceLabel": "CC/1182/2021 - District Court, Mumbai City",
    "orders": {
      "total": 12,
      "billable": 4
    },
    "expiresAt": "2026-10-22T09:12:00.000Z"
  }
}

Export failed

export.failed

A file you asked for could not be built, with the reason where there is one. Subscribe to this alongside export.ready: without it a caller waiting to be told a zip is ready has nothing to wait for when it never arrives, and would have to fall back to polling.

Example payload
{
  "id": "evt_01HZY3K9G8X0000000000014",
  "type": "export.failed",
  "createdAt": "2026-10-18T09:14:00.000Z",
  "accountId": "CPA0-Bq993yz3k4IVeK",
  "data": {
    "resourceType": "EXPORT",
    "resourceId": "CPEJ0exampledemo02",
    "deepLink": "/reports",
    "jobId": "CPEJ0exampledemo02",
    "kind": "CASE_ORDERS_EXPORT",
    "resourceLabel": "CC/1182/2021 - District Court, Mumbai City",
    "failureReason": "The court site did not provide a document for 3 of the 12 orders"
  }
}

Last updated 14 November 2026