DecisionLayer
API guide

Webhooks

A webhook tells your server that something happened on one of your cases, at the moment it happens. You register a URL. Each time a case moves, a response is submitted, a notice is sent, a deadline changes or an award is published, we post a signed JSON message to that URL.

The message is the same event object that GET /api/v1/events returns: what changed, where the case stands, and the next step with who has to take it. Code that reads the feed handles a webhook unchanged, and the feed remains the way to read anything your server missed.

Register an endpoint

Add your URL on the webhook settings page, or register it with your API key. The URL must be https://. Leave out event_types to receive every type, or list the ones you want.

curl -X POST https://www.decisionlayer.ai/api/v1/webhook-endpoints \
  -H "Authorization: Bearer dvarb_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/decisionlayer",
    "description": "Production",
    "event_types": ["case.review_completed", "case.decided"]
  }'

The response is the endpoint, with the secret that signs everything sent to it:

{
  "id": "ep_2yZ4kQp8Lm1RtVwXc7NbJd5HsAf",
  "url": "https://example.com/webhooks/decisionlayer",
  "description": "Production",
  "event_types": ["case.review_completed", "case.decided"],
  "disabled": false,
  "test": false,
  "created_at": "2026-11-20T18:20:11",
  "updated_at": "2026-11-20T18:20:11",
  "secret": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD"
}

Webhooks begin with what happens after the endpoint is registered. For earlier events, call GET /api/v1/events.

What you receive

A POST with a JSON body and three headers:

HeaderWhat it is
svix-idThe ID of this delivery, prefixed msg_. It is the same on every retry of the same message.
svix-timestampWhen this attempt was sent, in seconds since 1970.
svix-signatureThe signature of the ID, the timestamp and the body, made with your endpoint's secret.

The body is one event. This is what a claimant's endpoint receives when we have reviewed the respondent's response and the turn passes to the claimant:

{
  "id": "evt_00000000000000000000000007",
  "type": "case.review_completed",
  "occurred_at": "2026-08-18T17:05:08",
  "resource": "case",
  "resource_id": "case_00000000000000000000000005",
  "actor": "decisionlayer",
  "respondent_position": null,
  "summary": "DecisionLayer reviewed the claim and opened the response round for the respondent. The response is due September 1, 2026.",
  "changes": {
    "status": {
      "from": "in_review",
      "to": "awaiting_response"
    },
    "waiting_on": {
      "from": "decisionlayer",
      "to": "respondent"
    },
    "due_at": {
      "from": null,
      "to": "2026-09-01T17:05:08"
    }
  },
  "notice": null,
  "award": null,
  "reconstructed": false,
  "latest": false,
  "current": {
    "status": "decided",
    "waiting_on": null,
    "next_step": {
      "actor": null,
      "yours": false,
      "action": null,
      "round": null,
      "description": "The award has been published.",
      "due_at": null,
      "overdue": false,
      "action_url": null,
      "api": null
    }
  }
}

summary and changes describe the event and never change. current is where the case stood when the message was sent, with the next step as it applies to you: current.next_step.yours is true when the step is yours. Every party on a case receives the same event with the same id; only current.next_step differs.

Verify the signature

Anyone can post to a public URL, so check the signature before you trust a message. Delivery is handled for us by Svix, and its open source libraries do the check in one call. In Python, pip install svix:

import json

from svix.webhooks import Webhook, WebhookVerificationError

SECRET = "whsec_..."  # the endpoint's secret

def handle(request):
    try:
        # Pass the raw body, exactly as received, not re-encoded JSON.
        Webhook(SECRET).verify(request.body, request.headers)
    except WebhookVerificationError:
        return 400
    event = json.loads(request.body)

    if seen_before(event["id"]):      # an evt_ ID; see the next section
        return 204
    print(event["type"], event["resource_id"], event["summary"])
    step = event["current"]["next_step"]
    if step["yours"]:
        print("You must", step["action"], "by", step["due_at"])
    remember(event["id"])
    return 204

The libraries also refuse a message whose timestamp is more than five minutes from your server's clock, which stops an old message being replayed at you. Libraries for JavaScript, Go, Ruby, Java, C#, PHP, Rust and Kotlin, and the steps to verify by hand, are in the Svix documentation.

Acknowledging, retries and order

  1. 01 Answer with any 2xx status within 30 seconds. Do slow work after you have answered.
  2. 02 Anything else, or no answer in that time, is a failed attempt. A failed message is sent again after waits of about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours more. Each wait starts when the attempt before it fails, and a retry can arrive several seconds after its wait ends. An endpoint that fails every attempt for five days is paused; turn it back on from the settings page.
  3. 03 A retry can reach you after you have already handled the message. Keep the event's id (prefixed evt_) and skip one you have seen.
  4. 04 Messages usually arrive in the order things happened, but a retry can arrive after a newer message. Order events by occurred_at, and when in doubt read the case: GET /api/v1/cases/{case_id} is always current.
  5. 05 Nothing is lost if your server is down for longer than the retries last. Every event is kept in GET /api/v1/events; read from the occurred_at of the last event you handled. You can also resend any delivery from the settings page.

Test and live

Endpoints follow your API keys. An endpoint registered with a test key receives events on test cases only, and one registered with a live key receives events on real cases only. Each kind has its own settings page.

To check a receiver before any case exists, send it an example. It is signed like a real message and describes a fictional case:

curl -X POST https://www.decisionlayer.ai/api/v1/webhook-endpoints/ep_.../test \
  -H "Authorization: Bearer dvarb_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"event_type": "case.decided"}'

A test message goes straight to the endpoint. It is sent whatever event types the endpoint lists, and while the endpoint is paused, so you can check a receiver before you subscribe it to a type or turn it back on. It is sent once: a test message your server does not answer with a 2xx status is not retried. Events on cases do follow the endpoint's event types and its pause, and are retried as described above.

Manage endpoints with the API

CallWhat it does
GET /webhook-endpointsList the endpoints this key manages.
POST /webhook-endpointsRegister an endpoint. Returns its secret.
GET /webhook-endpoints/{id}Read one endpoint.
PATCH /webhook-endpoints/{id}Change its URL, description or event types, or pause it with "disabled": true.
DELETE /webhook-endpoints/{id}Remove it.
POST /webhook-endpoints/{id}/rotate-secretIssue a new secret. The old one keeps working for 24 hours.
POST /webhook-endpoints/{id}/testSend an example event to it.

All paths are under https://www.decisionlayer.ai/api/v1. Up to 20 endpoints can be registered for each kind of key.

Event types

TypeWhen it is sent
case.created The claimant started the case.
case.claim_submitted The claimant submitted the claim.
case.terms_signed The claimant signed the arbitration terms.
case.fee_paid The filing fee was paid.
case.identity_verified A party verified their identity.
case.respondent_claimed A respondent claimed the case with their access code.
case.respondent_added DecisionLayer added a respondent to the case.
case.response_submitted A party submitted a round: a response, a reply or a counter response.
case.review_completed DecisionLayer finished reviewing a submission and the turn passed to the other side. Carries the new deadline.
case.round_closed DecisionLayer closed a round on a respondent who did not answer it.
case.submitted_for_decision All rounds are in and the case is with DecisionLayer for a decision.
case.deadline_changed DecisionLayer changed a response deadline.
case.extension_requested A party asked for more time to respond.
case.extension_decided DecisionLayer granted or declined a request for more time.
case.notice_sent DecisionLayer sent a notice to one or more parties, by email or by mail.
case.decided The award was published. Carries where to read it.
case.status_corrected DecisionLayer corrected the status of the case.
case.status_recorded A snapshot of the status of a case whose earlier history was not recorded as events.
consent_case.created The claimant started the consent case.
consent_case.draft The consent case was returned to draft.
consent_case.awaiting_account The consent case is waiting for the claimant to create an account.
consent_case.ready_to_sign The consent case is ready for the claimant to sign.
consent_case.awaiting_signature The consent case is waiting for the claimant's signature.
consent_case.awaiting_payment The claimant signed the consent agreement.
consent_case.paid The filing fee for the consent case was paid.
consent_case.respondent_notified DecisionLayer emailed the respondent an invitation to arbitrate.
consent_case.respondent_viewing The respondent opened the invitation.
consent_case.respondent_accepted The respondent accepted arbitration.
consent_case.respondent_rejected The respondent declined arbitration.
consent_case.fully_executed The respondent signed the consent agreement. It is fully executed.
consent_case.respondent_claimed The respondent claimed the consent case.