Webhooks

Webhooks push two kinds of news to an endpoint you control. When a company revises figures it has already filed, Arche records the change as a restatement alert and sends restatement.detected, so you learn about a restatement when Arche detects it rather than on your next poll of /v1/edgar/restatement-alerts. When a new filing gives a company a statement for a period it had none for, Arche sends statement.created.

Webhooks are available from the Developer plan. Developer allows up to three endpoints; Growth and above have no limit.

Every delivery is signed with a secret that belongs to your subscription alone. Verify the signature before acting on a delivery. An unverified request could have come from anyone.

What Arche sends

Each endpoint subscribes to one event type. To receive both, register the same URL once for each.

  • restatement.detected is sent when the SEC accepted the restating filing within the last 30 days. /v1/edgar/restatement-alerts lists every restatement alert, whatever the filing's age.
  • statement.created is sent for the first income statement, balance sheet or cash flow statement a company has for a fiscal period, from an original 10-K, 10-Q, 20-F or 40-F that the SEC accepted within the last three days. A filing's comparative periods are not announced, and neither is an amendment, which restatement.detected covers.

Every event arrives as an HTTPS POST with a JSON body. Each request carries these headers:

  • Name
    X-Arche-Signature
    Type
    string
    Description

    t=<unix seconds>,v1=<hex>. Verify it as described below.

  • Name
    X-Arche-Event-Type
    Type
    string
    Description

    restatement.detected or statement.created.

  • Name
    X-Arche-Delivery-Id
    Type
    uuid
    Description

    Identifies this delivery. It stays the same across retries of the same delivery.

  • Name
    X-Arche-Dedupe-Key
    Type
    string
    Description

    Stable key for this alert and subscription. Use it to ignore a delivery you have already processed.

Registering an endpoint

Register endpoints on the Webhooks page of the developer portal. Endpoints belong to an environment, so register one under each environment you want alerts for. The URL must use https://.

When you add an endpoint, the portal shows its signing secret once. It starts with whsec_. Store it where your receiver can read it, such as a secrets manager. The portal does not show it again, but you can rotate it at any time.

Adding a URL that is already registered returns the existing endpoint and its current secret rather than creating a second one.

Managing endpoints over the API

The portal is one way to register an endpoint. The same four operations are available over HTTP, so a tenant can provision its own alerting without a person opening a browser.

These routes authenticate with a dashboard session, not an API key. Send a bearer token from your portal session: listing needs the control_plane:read scope, and creating, rotating and deleting need control_plane:write. An X-Api-Key header is refused here with 401 Missing bearer token, which is the opposite of every data route in these docs.

List your subscriptions

curl -X GET "https://api.arche.fi/v1/account/webhook-subscriptions" \
  -H "Authorization: Bearer $ARCHE_SESSION_TOKEN" \
  -H "Accept: application/json"
{
  "data": {
    "items": [
      {
        "id": "9b1e4d2c-6a3f-4f8e-b0c1-2d7e5a9f4b36",
        "event_type": "restatement.detected",
        "target_url": "https://example.com/hooks/arche",
        "is_active": true,
        "created_at": "2026-09-18T11:02:44Z",
        "updated_at": "2026-09-18T11:02:44Z"
      }
    ]
  }
}

Listing never returns a signing secret. Only creating a subscription and rotating its secret do, which is why both responses are worth storing the first time you read them.

Register an endpoint

curl -X POST "https://api.arche.fi/v1/account/webhook-subscriptions" \
  -H "Authorization: Bearer $ARCHE_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event_type": "restatement.detected", "target_url": "https://example.com/hooks/arche"}'

Both fields are required. event_type accepts restatement.detected or statement.created, and target_url must use https://. An endpoint that wants both events is registered twice, once per event type. The response is the subscription with its signing_secret, the value you verify deliveries against.

Registering a subscription that already exists, meaning the same event type and the same URL, returns the existing one with its current secret and spends no slot. That is deliberate: re-reading a secret is the thing you need most at exactly the moment your account is full.

Rotate a signing secret

curl -X POST "https://api.arche.fi/v1/account/webhook-subscriptions/9b1e4d2c-6a3f-4f8e-b0c1-2d7e5a9f4b36/rotate-secret" \
  -H "Authorization: Bearer $ARCHE_SESSION_TOKEN" \
  -H "Accept: application/json"

The response carries the new secret and a moved updated_at. Rotation takes effect immediately and there is no window in which both secrets are valid, so deploy the new one to your receiver as described in Rotating your secret.

Remove an endpoint

curl -X DELETE "https://api.arche.fi/v1/account/webhook-subscriptions/9b1e4d2c-6a3f-4f8e-b0c1-2d7e5a9f4b36" \
  -H "Authorization: Bearer $ARCHE_SESSION_TOKEN" \
  -H "Accept: application/json"

The response is the subscription that was removed. Arche stops sending to it immediately, including retries still pending, and alerts remain available from /v1/edgar/restatement-alerts.

Removing or rotating the secret of a subscription your organization does not hold answers 404 WEBHOOK_SUBSCRIPTION_NOT_FOUND.

What your plan allows

  • Name
    403 FEATURE_NOT_AVAILABLE
    Type
    plan excludes webhooks
    Description

    Your plan does not include webhooks at all. details names the plan that does.

  • Name
    409 WEBHOOK_SUBSCRIPTION_LIMIT_REACHED
    Type
    plan limit spent
    Description

    Developer allows three subscriptions and Growth and above are uncapped, unless a negotiated limit is stored on your entitlement. Delete one to free a slot.

Verifying signatures

The signature is an HMAC-SHA256, keyed with your signing secret, over the timestamp, a period, and the raw request body:

signed_content = "<t>." + <raw request body bytes>
v1             = hex(HMAC_SHA256(signing_secret, signed_content))

To verify a delivery:

  1. Read the raw request body before parsing it. Parsing and re-serializing JSON changes the bytes, and the signature will no longer match.
  2. Split X-Arche-Signature on commas and read t and v1.
  3. Reject the delivery if t is more than five minutes from your current time. This stops someone replaying a captured delivery later.
  4. Compute the HMAC over "<t>." followed by the raw body, and compare it with v1 using a constant-time comparison.

Verify a delivery

import hashlib
import hmac
import time


def verify_arche_signature(
    secret: str, header: str, raw_body: bytes, tolerance_seconds: int = 300
) -> bool:
    parts = dict(item.strip().split("=", 1) for item in header.split(",") if "=" in item)
    timestamp, received = parts.get("t"), parts.get("v1")
    if not timestamp or not received or not timestamp.isdigit():
        return False
    if abs(time.time() - int(timestamp)) > tolerance_seconds:
        return False
    expected = hmac.new(
        secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected, received)

Respond with any 2xx status once you have verified and stored the delivery. Do the slower work, such as rerunning a model, after you respond.

Frameworks that parse JSON automatically often discard the raw body. In Express, mount the express.raw middleware with type application/json on the webhook route. In Flask, read request.get_data().

Delivery and retries

Arche checks for undelivered events once an hour, so a delivery usually arrives within an hour of detection.

A delivery succeeds when your endpoint returns a 2xx status within ten seconds. Any other status, a timeout, or a connection failure counts as a failure. Arche makes up to three attempts in total. Retries happen on later runs, waiting at least 30 seconds after the first failure and at least five minutes after the second. After the third failure Arche stops trying.

A missed delivery never loses the alert. Every alert remains available from /v1/edgar/restatement-alerts, so you can reconcile after an outage.

Deliveries can arrive more than once, and not always in the order the alerts were detected. Use X-Arche-Dedupe-Key to skip a delivery you have already processed, and accepted_at in the body, the time the SEC accepted the restating filing, to order alerts.

Rotating your secret

Rotate the secret if it may have been exposed. Rotation takes effect immediately: every delivery sent afterwards is signed with the new secret, and there is no period where both are valid. Deploy the new secret to your receiver as soon as you receive it, and expect deliveries to fail verification until it is in place. Deliveries that fail verification should return a non-2xx status, so Arche retries them.

To rotate a secret, choose Rotate secret next to the endpoint on the Webhooks page. The new secret is shown once.

Removing an endpoint

Choose Remove next to the endpoint on the Webhooks page. Arche stops sending to it immediately, including any retries still pending. Alerts remain available from /v1/edgar/restatement-alerts. Adding the same URL again later creates a new endpoint with a new signing secret.

Payload reference

A delivery for a balance-sheet amendment looks like this. Values are illustrative.

{
  "event_type": "restatement.detected",
  "restatement_alert_event_id": "5f0c9a1e-2b7d-4c1a-9e3f-8d2a6b4c7e10",
  "dedupe_key": "restatement.detected:0001069183:BALANCE_SHEET:2024:FY:0001069183-25-000019:0001069183-25-000075",
  "delivery_dedupe_key": "restatement.detected:0001069183:BALANCE_SHEET:2024:FY:0001069183-25-000019:0001069183-25-000075:9b1e4d2c-6a3f-4f8e-b0c1-2d7e5a9f4b36",
  "accepted_at": "2025-05-07T20:38:11Z",
  "company_id": "a3d1c6e2-7f4b-4b9a-8c2e-1f6d5b3a9e70",
  "cik": "0001069183",
  "ticker": "AXON",
  "accession_id": "0001069183-25-000075",
  "prior_accession_id": "0001069183-25-000019",
  "statement_type": "BALANCE_SHEET",
  "statement_date": "2024-12-31",
  "fiscal_year": 2024,
  "fiscal_period": "FY",
  "facts_changed_count": 2,
  "material_facts_count": 1,
  "materiality_score": "HIGH",
  "change_class_counts": { "VALUE_REVISION": 2 },
  "summary_metrics": [
    {
      "metric_code": "total_current_liabilities",
      "change_type": "VALUE_REVISION",
      "old_value": "997586000",
      "new_value": "1677875000",
      "delta_value": "680289000"
    }
  ],
  "materiality_summary": "HIGH severity across 2 fact revisions",
  "model_impacts": []
}
  • Name
    restatement_alert_event_id
    Type
    uuid
    Description

    The alert. Fetch it from /v1/edgar/restatement-alerts/{id} for the full record.

  • Name
    accession_id
    Type
    string
    Description

    The SEC filing whose statement triggered the alert. prior_accession_id is the filing it revises, or null when there was no earlier statement for the period. The payload carries no internal version identifier. To list every fact that changed between them, pass the event's cik, accession_id, statement_type, fiscal_year and fiscal_period to /v1/edgar/companies/{cik}/filings/{accession_id}/statements/{statement_type}/{fiscal_year}/{fiscal_period}/fact-revisions.

  • Name
    materiality_score
    Type
    string
    Description

    NONE, LOW, MEDIUM, HIGH, or CRITICAL. materiality_summary explains the rating.

  • Name
    summary_metrics
    Type
    array
    Description

    The most significant metric changes, as decimal strings.

  • Name
    model_impacts
    Type
    array
    Description

    Effects on derived model inputs, such as margins, when Arche can compute them.

New statements

A statement.created delivery names the statement; read its figures from the statements endpoints with cik, statement_type, fiscal_year and fiscal_period. Values are illustrative.

{
  "event_type": "statement.created",
  "event_id": "4c2b7e91-0d3a-4f6e-9a18-5e7c2d9b3f04",
  "dedupe_key": "statement.created:0000320193:INCOME_STATEMENT:2026:FY:0000320193-26-000077",
  "delivery_dedupe_key": "statement.created:0000320193:INCOME_STATEMENT:2026:FY:0000320193-26-000077:9b1e4d2c-6a3f-4f8e-b0c1-2d7e5a9f4b36",
  "accepted_at": "2026-10-30T20:30:05Z",
  "company_id": "a3d1c6e2-7f4b-4b9a-8c2e-1f6d5b3a9e70",
  "cik": "0000320193",
  "ticker": "AAPL",
  "accession_id": "0000320193-26-000077",
  "form_type": "10-K",
  "statement_type": "INCOME_STATEMENT",
  "statement_date": "2026-09-26",
  "fiscal_year": 2026,
  "fiscal_period": "FY"
}
  • Name
    event_id
    Type
    uuid
    Description

    The event. It is the same for every subscription that receives it.

  • Name
    accepted_at
    Type
    string
    Description

    The time the SEC accepted the filing named by accession_id.

  • Name
    form_type
    Type
    string
    Description

    The original form the statement was read from: 10-K, 10-Q, 20-F or 40-F.

  • Name
    ticker
    Type
    string
    Description

    The company's ticker, or null when it has none.

Was this page helpful?