Contract Updated Webhook

Keep an external system in sync with the current state of your contracts

Overview

The contract_updated event fires whenever a contract record that matches your subscription's filters changes, whether its workflow is still in flight or the contract is completed or imported. Use it to keep a data warehouse, CRM, or other system of record in sync with your contracts.

contract_updated is a state-sync signal, not a change log. Each event means "this contract changed; here is its current state". Treat it as a prompt to upsert the record in your system (or re-fetch it with Retrieve a Record), not as a description of what changed. Do not diff consecutive events to reconstruct individual edits, since edits may be coalesced before they are delivered.

If you only need to know when a contract's status changes (for example, when it becomes active or starts auto-renewing), subscribe to record_contract_status_changed instead.

Subscribing

Create a subscription with Create a Webhook, or in the Ironclad app under Company Settings → API → Webhooks. A contract_updated subscription differs from other webhooks in three ways:

  • events must name contract_updated explicitly. The * (all events) option never includes it, and * cannot be used on a batched webhook, so list any other events you need by name.
  • deliveryMode must be "batched". See Delivery modes.
  • filters is required, and selects which contract changes are delivered.

Example request body:

{
  "targetURL": "https://example.com/ironclad/contracts",
  "events": ["contract_updated"],
  "deliveryMode": "batched",
  "filters": {
    "recordTypeIds": ["nda", "msa"],
    "stages": ["sign", "archive", "completed", "imported"]
  },
  "payload": {
    "includeProperties": ["counterpartyName", "expirationDate"]
  }
}

Filters

A change is delivered when the record's type is one of recordTypeIds and its stage is one of stages. Both lists need at least one entry. Unknown record type ids are rejected with a 400.

stages accepts the workflow stages create, review, sign, archive, completed, cancelled, and paused, plus imported, which matches contracts with no workflow, such as uploaded or imported contracts.

The stage is checked when Ironclad processes the change, not when the edit was made. If a contract moves on quickly, the event can report a later stage than the one the edit was made in, and an edit made in a subscribed stage is not delivered if the contract has already left it.

Including property values

By default each event identifies the contract and its stage. To receive current property values as well, list up to 20 property keys in payload.includeProperties. Each value is returned in the same { "type", "value" } shape as the records API, including values rolled up from amendments and lifecycle values such as a renewed expiration date.

These property types can be included: string, number, boolean, date, duration, email, monetary amount, address, and lists, including reference and entity lists. Other types, such as clause, document, workflow, table, and object properties, are rejected, as are hidden properties.

Updating a subscription

When you add contract_updated with Update a Webhook, the request must include filters, and the subscription's deliveryMode must end up batched. To switch a subscription back to single, remove contract_updated first; removing it also clears the subscription's filters and payload options.

Each target URL can be registered only once per company, including by a disabled webhook.

Payload

Every request has the standard webhook envelope, but payload is an array. Each element is one contract:

{
  "webhookID": "6b04938e400df2d1c035708a",
  "companyID": "6193fdf218328854844f18a0",
  "timestamp": "2026-12-03T17:04:05.123Z",
  "payload": [
    {
      "event": "contract_updated",
      "recordID": "fb215e19-6d32-4d76-b457-0a69450b3964",
      "ironcladID": "IC-1234",
      "recordTypeID": "nda",
      "recordTypeLabel": "NDA",
      "stage": "sign",
      "properties": {
        "counterpartyName": { "type": "string", "value": "Acme Corporation Ltd" },
        "expirationDate": { "type": "date", "value": "2027-12-31T00:00:00Z" }
      },
      "eventId": "webhookEvent0a1b2c3d4e5f60718293a4b5c6d7e8f9"
    }
  ]
}
FieldDescription
eventAlways contract_updated.
eventIdUnique ID of this element. It stays the same when the element is retried, so use it to deduplicate.
recordIDID of the contract record. Use it with the records API.
ironcladIDHuman-readable Ironclad ID, for example IC-1234. Falls back to recordID when the record has none.
recordTypeIDID of the record type.
recordTypeLabelDisplay name of the record type. Best effort; omitted when unavailable.
stageThe record's stage when the change was processed. One of the stages above.
propertiesCurrent values of the properties listed in includeProperties. A selected property with no value is omitted rather than sent as null, and properties is omitted entirely when none has a value. Treat each element as the complete current state of your selected properties: clear any saved value that is missing from the element.

Note: Batched delivery applies to every event on the subscription. If the same subscription also listens for other events, such as workflow_completed, those arrive as one-element arrays too, and each element carries its own eventId. See Delivery modes.

Headers and verification

HeaderDescription
X-Ironclad-Webhook-Event-IdID of this request, used for signature verification. It is derived from the elements in the array, so it changes if a retry carries fewer elements. Do not use it to deduplicate batched payloads; use each element's eventId instead.
X-Ironclad-Webhook-Batch-IdSame on every attempt of one delivery. Useful for correlating attempts in your logs. It is not used for verification and is not an idempotency key, because a retry can omit elements (see below).
X-Ironclad-Webhook-Request-AttemptAttempt number, starting at 1.
X-Ironclad-Webhook-VerificationSignature, as for all webhooks.

Verify each request as described in webhook verification, using the X-Ironclad-Webhook-Event-Id header of that request.

Delivery and ordering

  • At least once. An element can be delivered more than once, for example when your endpoint processed a request but the response did not reach Ironclad. A retried element keeps its eventId, so skip any eventId you have already processed. In rare cases Ironclad can also resend the same contract state under a new eventId, so make sure that applying the same state twice is harmless.
  • Ordering. First attempts are delivered in order for each target URL. Retries are not held to that order: a newer array is not held back while an older one is being retried, so a retried array can arrive after newer ones.
  • Superseded elements are dropped on retry. A failed array is not cancelled when a newer one succeeds. Instead, before each retry Ironclad removes the elements whose contract has changed since the array was first sent; if no elements remain, the retry is not sent. A late retry therefore carries only contracts that have not changed since, so applying it does not overwrite newer state.
  • Large bursts are split across multiple requests.
  • Retries and deactivation follow the same rules as other webhooks. See Retries and webhook deactivation.

Because of the retry behavior above, you can apply elements in the order you receive them; no timestamp comparison is needed. (Optional extra safeguard: store the envelope timestamp with each record and skip elements with an older one. A retry keeps the timestamp of its first attempt.)

Behaviors to expect

Because contract_updated reports current state rather than individual edits:

  • Changes are coalesced. One event can cover several edits made close together.
  • Events fire for edits that leave the stage unchanged, so you may receive several events with the same stage.
  • Intermediate stages can be skipped. A contract can move from review to archive without a sign event.
  • Archiving can send an archive event before the completed event for the same record.
  • Deleting a record sends no event.
  • Only contract records are delivered. Changes to obligations and other record kinds do not send contract_updated.

Best practices for receivers

  • Return a 2xx response quickly and process the payload asynchronously.
  • For temporary failures, respond with 429 or 5xx so the delivery is retried. Reserve 400, 401, 405, and 422 for requests that will never succeed; they are not retried.
  • Skip elements whose eventId you have already processed, and upsert the rest by recordID so that applying the same state twice is harmless.
  • Replace, rather than merge, the saved values of your selected properties: a property missing from properties (or a missing properties field) means the value was cleared.
  • Treat a missed change as possible (deletes send no event), and periodically reconcile with List All Records.