Frames
Every message the server sends is a JSON text frame with the same three keys. Read event first and handle each kind. Ignore events you do not know.
Frame shape
Every v3 frame
{ "event": "article.created", "payloadVersion": 3, "data": { } }
- Name
event- Type
- string
- Description
What happened:
article.created,article.updated, or a control event that starts withconnection.. This is an open list. Skip names you do not know; new ones can appear without notice.
- Name
payloadVersion- Type
- number
- Description
Always
3on v3 frames.
- Name
data- Type
- object
- Description
The article for
article.*frames, or the details of a control event.
A few frames still arrive in the older v2 form, {"action": ...}, even on a v3 connection. See v2 frames on a v3 connection. Dispatch on event and fall back to action.
Article frames
data is a v3 article, cut to your include list and your plan. See The article object for every field and Plans & entitlements for which blocks you get.
article.created
{
"event": "article.created",
"payloadVersion": 3,
"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 buy server maker ZT Systems.",
"language": "en",
"media": [{ "url": "https://img.example.com/fixtures/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] }
]
}
}
article.createdis a new article that matches your subscription. The initial push after a subscribe also arrives asarticle.created, even when the article is old.article.updatedis a later change to an article you may already have. It carries the whole article again, not a diff. You get it only withincludeUpdates: true, and only when something you can see changed, such as the title or the summary.
Things to know:
- WebSocket frames have no
eventId, nooccurredAtand nochangedFields. Those exist only in webhooks. - Duplicates are possible. Drop a frame when you already have one with the same
data.id, the sameeventand the samedata. Keeparticle.createdandarticle.updatedfor one id apart: they are two events. - Order is not guaranteed. Do not rely on frames arriving in the order the articles were found.
- Large frames are dropped. A live frame larger than 32,000 bytes is dropped without notice.
Control frames
Control events tell you about the connection itself. They use the same frame shape.
connection.admitted
Sent once on the first subscribe of a connection, before the server checks the message. It does not mean your subscribe was accepted. It is sent again only if a later subscribe repeats the same clientNonce.
connection.admitted
{
"event": "connection.admitted",
"payloadVersion": 3,
"data": { "leaseId": "00000000-0000-4000-8000-00000000feed", "serverNow": 1795467845123, "clientNonce": "c-42" }
}
- Name
leaseId- Type
- string
- Description
The id of this connection. Another connection that replaces this one with takeover reports it as
newLeaseId.
- Name
serverNow- Type
- number
- Description
Server time in milliseconds since the Unix epoch.
- Name
clientNonce- Type
- string or null
- Description
Your
clientNonce, ornullif you sent none.
connection.pong
The answer to a ping. See Lifecycle & limits.
connection.pong
{ "event": "connection.pong", "payloadVersion": 3, "data": { "t": 1795467870123, "serverNow": 1795467870160 } }
- Name
t- Type
- number or null
- Description
The
tyou sent in the ping, ornullif you sent none.
- Name
serverNow- Type
- number
- Description
Server time in milliseconds since the Unix epoch.
connection.preempted
The server is about to close this connection. It closes it right after this frame.
connection.preempted
{
"event": "connection.preempted",
"payloadVersion": 3,
"data": { "reason": "connection_limit", "newLeaseId": "00000000-0000-4000-8000-00000000beef", "timestamp": 1795467845123 }
}
- Name
reason- Type
- string
- Description
connection_limit: another connection of yours took this slot with takeover. Do not reconnect, or the two connections replace each other in a loop.quota_exceeded: the WebSocket delivery quota of this period is used up. All your connections get this frame. New connections are refused until the next period. This is an open list.
- Name
newLeaseId- Type
- string or null
- Description
The
leaseIdof the connection that replaced this one.nullforquota_exceeded.
- Name
timestamp- Type
- number
- Description
Server time in milliseconds since the Unix epoch.
connection.error
Something went wrong with a message you sent, or with the subscription.
connection.error
{
"event": "connection.error",
"payloadVersion": 3,
"data": {
"code": "VALIDATION_FAILED",
"message": "Invalid subscription message",
"details": [{ "field": "includeEntities", "constraints": { "v3": "use include with payloadVersion 3" } }]
}
}
- Name
code- Type
- string
- Description
A stable code. Branch on it, not on
message. See the table below. This is an open list.
- Name
message- Type
- string
- Description
A human-readable text.
- Name
details- Type
- object[]
- Description
Only for
VALIDATION_FAILED. One entry per problem withfield,constraints(rule name and text) and, for closed lists,allowedValues.
Error codes
| Code | Message | Connection closed? | What to do |
|---|---|---|---|
VALIDATION_FAILED | Invalid subscription message | Yes | Fix the subscribe message. Do not resend it unchanged. See Validation failed. |
SEARCH_FAILED | The search error, for example an unknown query value | Yes | Check the query and the source fields, then reconnect with a growing wait. If it repeats every time, the subscribe is wrong. |
HANDSHAKE_FAILED | Connection not found or handshake failed | Yes | Reconnect with a growing wait. |
PING_ON_DEFAULT_ROUTE | Ping messages should be sent to the ping route | No | A message with "payloadVersion": 3 and "type": "ping" reached the subscribe route. Fix the ping message. Log it. A ping without payloadVersion gets the v2 error frame instead, see below. |
INTERNAL_ERROR | Message processing failed | No | Log it. If your stream stops, reconnect. Send the time and your leaseId to support if it repeats. |
When the server closes the connection after an error, the close code is a normal 1000. Use the error frame you got just before to decide what to do.
v2 frames on a v3 connection
The server learns your version from your first subscribe, and for errors on the subscribe route from the message itself. A few frames therefore arrive in the v2 form with an action key:
| Case | Frame |
|---|---|
| A ping before your first subscribe | {"action":"pong","t":1,"serverNow":1795467845123} |
| A takeover before your first subscribe | {"action":"preempted","reason":"connection_limit","newLeaseId":"…","timestamp":1795467845123} |
| A message that is not valid JSON | {"action":"error","data":"Message processing failed"} |
A ping without "action": "ping" and without payloadVersion, for example {"type":"ping"} | {"action":"error","error":"Ping messages should be sent to the ping route"} |
Treat them like their v3 counterparts: a v2 pong is a pong, a v2 preempt is a preempt. This is normal protocol handling, not a sign that you are on v2. The client libraries do this for you.
A complete session
This is a real sequence from one connection, with the article data left out:
Session
// client → server
{"action":"ping","t":1}
// server → client (v2 pong: no subscribe yet)
{"action":"pong","t":1,"serverNow":1795547505675}
// client → server
{"payloadVersion":3,"include":["companies","events"],"query":"ticker:NVDA","language":"en","includeUpdates":true,"clientNonce":"c-1"}
// server → client
{"event":"connection.admitted","payloadVersion":3,"data":{"leaseId":"40078a1b-7fb7-4133-aa40-151cd1385f74","serverNow":1795547508262,"clientNonce":"c-1"}}
{"event":"article.created","payloadVersion":3,"data":{"id":"xoOja_zf996I74FHgFfwGF","title":"Nvidia Board Faces Growing Scrutiny, Trade Fears Return"}}
// client → server
{"action":"ping","t":2}
// server → client
{"event":"connection.pong","payloadVersion":3,"data":{"t":2,"serverNow":1795547511162}}