Webhook Payload

Every v3 webhook delivery is one JSON object: an envelope with a few fixed keys, and the article in data. The article is the same object the REST API and the WebSocket return.


The envelope

  • Name
    eventId
    Type
    string
    Description

    The id of this event. It is opaque: today it starts with evt_, but do not parse it. It is the same on every retry of the event. Use it to drop duplicates.

  • Name
    event
    Type
    string
    Description

    article.created or article.updated. This list can grow, so ignore events you do not know.

  • Name
    occurredAt
    Type
    string
    Description

    When the event happened, as an ISO 8601 UTC timestamp with milliseconds. It is never the delivery time, and it does not change between retries.

  • Name
    payloadVersion
    Type
    number
    Description

    Always the number 3 for a v3 webhook.

  • Name
    subscriptionId
    Type
    string
    Description

    The id of the webhook that matched, a UUID. It is the id you see in the dashboard.

  • Name
    changedFields
    Type
    string[]
    Description

    Only on article.updated, and only when finlight knows what changed. Absent otherwise. Never null and never empty.

  • Name
    data
    Type
    Article
    Description

    The article. See The article object. The blocks in it depend on the blocks you chose and on your plan when the delivery is sent.

article.created (enriched)

{
  "eventId": "evt_9_Rx6TwzctfS0RigczzhjK",
  "event": "article.created",
  "occurredAt": "2026-09-18T12:03:05.000Z",
  "payloadVersion": 3,
  "subscriptionId": "3b9f0c2e-6d1a-4c7e-9a52-0f1e2d3c4b5a",
  "data": {
    "id": "pXhK9f2aQ1mZ0bT7cY3rLw",
    "link": "https://www.reuters.com/markets/amd-zt-systems",
    "source": { "domain": "www.reuters.com", "type": "newswire" },
    "title": "AMD to buy ZT Systems",
    "summary": "AMD agreed to ...",
    "language": "en",
    "media": [{ "url": "https://img.example.com/amd-zt-systems/lead.jpg" }],
    "publishedAt": "2026-09-18T12:01:03.000Z",
    "firstSeenAt": "2026-09-18T12:01:41.000Z",
    "revisedAt": null,
    "availableAt": "2026-09-18T12:03:05.000Z",
    "countries": ["US"],
    "categories": ["markets"],
    "sentiment": { "label": "positive", "confidence": 0.98 },
    "companies": [
      {
        "companyId": 13,
        "name": "Advanced Micro Devices, Inc.",
        "isin": "US0079031078",
        "primaryListing": { "ticker": "AMD", "mic": "XNAS", "country": "US" },
        "confidence": 0.97,
        "role": "acquirer",
        "relevance": 0.95
      }
    ],
    "events": [
      {
        "type": "mna",
        "direction": "positive",
        "importance": "high",
        "confidence": 0.9,
        "companyIds": [13]
      }
    ]
  }
}

New keys can be added to the envelope and to data at any time. Ignore keys you do not know.


eventId and duplicates

Delivery is at least once. The same event can reach you more than once, for example when your server answered too late or after a retry. Use eventId to drop duplicates:

  • Every retry of an event has the same eventId.
  • A later update of the same article is a new event with a new eventId.
  • Two different webhooks get different eventIds for the same article.

Store the ids you have handled for a few hours. The last retry comes about 100 minutes after the first attempt (see Delivery & retries), so a window of a few hours covers every retry.

In rare cases the same update can arrive a second time under a new eventId. If that would hurt you, also compare data.id, event and the changed values before you act.


occurredAt

occurredAt says when the event happened. It is set once, so every retry carries the same value. It is never the time of delivery: for that, read the X-Webhook-Timestamp header.

Webhook typeEventoccurredAt
Enrichedarticle.createddata.availableAt. If that is null, data.firstSeenAt.
Enrichedarticle.updatedWhen finlight recorded the update, but never earlier than availableAt. If finlight has no update time, availableAt, then firstSeenAt.
Rawarticle.createddata.firstSeenAt.
Rawarticle.updatedWhen finlight recorded the update, but never earlier than firstSeenAt.
Test webhookarticle.createdThe time you pressed the test button.

If none of these times exists, finlight uses publishedAt, and as a last resort 1970-01-01T00:00:00.000Z.

occurredAt of an update is not data.revisedAt. revisedAt is the time the source says it changed the article. occurredAt is the time finlight noticed it.


article.created and article.updated

  • article.created is sent when finlight first has the article and it matches your criteria.
  • article.updated is sent when a source changes an article and the changed article matches your criteria. You only get updates if the webhook criteria have Include Updates turned on (includeUpdates: true). You can get an article.updated for an article you never got as article.created, for example when it only matches after the change.

An update carries the full, current article in data, not only the changed fields.

Deliveries can arrive out of order. For example, a retry of an older event can arrive after a newer one. Use occurredAt to order events of the same article.


changedFields

changedFields lists what changed in an article.updated. It only lists fields this webhook can see. title and summary are always visible.

Today the values are a subset of title and summary. Treat the list as open and ignore values you do not know.

If an update changes only fields you cannot see, finlight sends nothing.

An article.updated without changedFields means finlight does not know which fields changed. Treat it as "something may have changed" and read the article in data.

article.updated

{
  "eventId": "evt_Q2x9k3LmN8pR4tV7wZ1aBc",
  "event": "article.updated",
  "occurredAt": "2026-09-18T14:31:10.000Z",
  "payloadVersion": 3,
  "subscriptionId": "3b9f0c2e-6d1a-4c7e-9a52-0f1e2d3c4b5a",
  "changedFields": ["title"],
  "data": {
    "id": "pXhK9f2aQ1mZ0bT7cY3rLw",
    "link": "https://www.reuters.com/markets/amd-zt-systems",
    "source": { "domain": "www.reuters.com", "type": "newswire" },
    "title": "AMD to buy ZT Systems for $4.9 billion",
    "summary": "AMD agreed to ...",
    "language": "en",
    "media": [{ "url": "https://img.example.com/amd-zt-systems/lead.jpg" }],
    "publishedAt": "2026-09-18T12:01:03.000Z",
    "firstSeenAt": "2026-09-18T12:01:41.000Z",
    "revisedAt": "2026-09-18T14:30:00.000Z",
    "availableAt": "2026-09-18T12:03:05.000Z",
    "countries": ["US"],
    "categories": ["markets"],
    "sentiment": { "label": "positive", "confidence": 0.98 },
    "companies": [
      {
        "companyId": 13,
        "name": "Advanced Micro Devices, Inc.",
        "isin": "US0079031078",
        "primaryListing": { "ticker": "AMD", "mic": "XNAS", "country": "US" },
        "confidence": 0.97,
        "role": "acquirer",
        "relevance": 0.95
      }
    ]
  }
}

This example comes from a webhook with the Companies block only, so events is absent.


The data object

data is the article object, built the same way as in the REST API. The blocks in it follow two things:

  • The blocks you chose for the webhook: companies and events.
  • Your plan when the delivery is sent. finlight reads the plan again for every attempt, retries included. If you downgrade between the first attempt and a retry, the retry has fewer blocks.

sentiment needs no block. It is present whenever your plan has sentiment access.

A block your plan does not include is simply absent. It is not null, and the delivery is not an error. The rules for absent keys, null and [] are on Plans & entitlements.


The HTTP request

finlight sends each delivery as an HTTP POST to your destination URL:

  • The body is the envelope as compact JSON (no spaces or line breaks), UTF-8 encoded.
  • Content-Type: application/json.
  • X-Webhook-Signature: sha256= followed by the lowercase hex HMAC-SHA256 signature.
  • X-Webhook-Timestamp: the time of this attempt as an ISO 8601 UTC timestamp with milliseconds, for example 2026-09-18T12:03:06.412Z. It is not unix seconds. It is new for every attempt.
  • One extra header if you chose an authentication type: Authorization: Basic ..., X-Finlight-Key or X-Make-ApiKey.

There is no event-id header. Read eventId from the body.

Request

POST /finlight HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
X-Webhook-Signature: sha256=<64 lowercase hex characters>
X-Webhook-Timestamp: 2026-09-18T12:03:06.412Z

{"eventId":"evt_9_Rx6TwzctfS0RigczzhjK","event":"article.created","occurredAt":"2026-09-18T12:03:05.000Z","payloadVersion":3,"subscriptionId":"3b9f0c2e-6d1a-4c7e-9a52-0f1e2d3c4b5a","data":{...}}

How to check the signature is on Signature verification.


Old v2 bodies during a switch

When you switch a webhook from v2 to v3, retries that were already queued still arrive in the v2 format for about 2 hours. A v2 body has no payloadVersion: 3. It is the flat v2 article, with fields like publishDate and images.

Handle it like this:

  1. Check the signature first. v2 bodies are signed the same way.
  2. Look at payloadVersion. Only the JSON number 3 means v3. A missing key, the string "3" or any other value means v2.
  3. Answer a v2 body with 2xx. If you answer with an error, finlight counts it as a failed delivery and retries it.

The client libraries do this for you. After a valid signature, a body that is not payloadVersion 3 comes back as a WrongPayloadVersion result, not as an error (in Go it is the error type *webhook.WrongPayloadVersionError). It carries the detected version, the raw JSON and the article link.

v2 body (arrives as WrongPayloadVersion)

{
  "link": "https://www.reuters.com/markets/amd-zt-systems",
  "source": "www.reuters.com",
  "title": "AMD to buy ZT Systems",
  "summary": "AMD agreed to ...",
  "language": "en",
  "publishDate": "2026-09-18T12:01:03.000Z",
  "createdAt": "2026-09-18T12:01:41.000Z",
  "images": ["https://img.example.com/amd-zt-systems/lead.jpg"],
  "sentiment": "positive",
  "confidence": 0.98,
  "countries": ["US"],
  "categories": ["markets"]
}

See Migrate from v2 for the full field mapping.