Replace a subscription
const url = 'https://api.inside.chat/api/v1/subscriptions/example';const options = { method: 'PATCH', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"website_ids":["example"],"event_types":["conversation.changed"],"payload_mode":"thin","delivery":{"mode":"pull"},"start":"beginning"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.inside.chat/api/v1/subscriptions/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "website_ids": [ "example" ], "event_types": [ "conversation.changed" ], "payload_mode": "thin", "delivery": { "mode": "pull" }, "start": "beginning" }'Required scopes:
website_read,event_read
Data access: –
MCP tool:subscription_replace
Note: Write
Note: optionalIdempotency-Key
Note:If-Matchrequired
Replace the complete website/type definition with a matching If-Match revision and explicit new boundary. Old cursors return subscription_revision_changed. With an Idempotency-Key, the same input and effective authority reuse the original result for 24h. Changed input conflicts; changed/deleted targets and expired access withhold saved results. Without a key each request is a new effect. After 24h a key can start a new effect; reconcile before retrying beyond the window.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Beginning starts at cursor zero and reports any retention gap. retained explicitly starts immediately before the oldest retained receipt; reconcile current REST resources before resetting after an expired cursor.
Responses
Section titled “Responses”Current installation-authorized thin metadata. Cursors contain independent per-website positions; no total order is promised.
object
object
Concrete event types; family wildcards are expanded.
Send as If-Match: “
object
Unix seconds.
Unix seconds.
Opaque signed cursor. Pass it unchanged as after on the next events request.
Example
{ "subscription": { "event_types": [ "conversation.changed" ], "status": "active", "payload_mode": "thin", "delivery": { "mode": "pull" } }}Malformed, duplicate, unsupported input or invalid cursor signature.
Expired, revoked or changed credential authority.
Subscription or website not granted; restriction filters and human consent credentials are unavailable for this feed.
Changed subscription revision, concurrent mutation, inventory limit, or replay_expired requiring reconciliation.
Application request quota exceeded.
Event family held, corrupt subscription or unavailable journal/control observations.