Skip to main content

Sync API

Sync endpoints exposed by the Devotel CPaaS API Base path: /api/v1/sync Endpoint count: 15

Get a Sync Document

GET /api/v1/sync/documents/{name}
Fetch a Sync Document by its unique name, returning its current data and revision. Open to any authenticated member.
string
required
Unique name of the Sync Document.

List Sync List items

GET /api/v1/sync/lists/{name}/items
List every item in a Sync List (an ordered, append-indexed JSON-value collection), ordered by index. Open to any authenticated member.
string
required
Unique name of the Sync List.

List Sync Map items

GET /api/v1/sync/maps/{name}/items
List every key → JSON-value item in a Sync Map (an unordered key-addressed collection), ordered by key. Open to any authenticated member.
string
required
Unique name of the Sync Map.

Get a Sync Map item

GET /api/v1/sync/maps/{name}/items/{key}
Fetch a single item from a Sync Map by its key. Open to any authenticated member.
string
required
Unique name of the Sync Map.
string
required
Key of the item within the map.

Create a Sync Document

POST /api/v1/sync/documents
Create a durable Sync Document — a single JSON object addressed by a unique name, with a monotonic revision. Supply unique_name, an optional initial data object, and an optional ttl (seconds, 0 = no expiry). Requires an operator role (owner / admin / developer / agent).

Update a Sync Document

POST /api/v1/sync/documents/{name}
Replace a Sync Document’s data (and optionally reset its ttl), bumping the revision and fanning out a document.updated change event to subscribed WebSocket clients. Requires an operator role.
string
required
Unique name of the Sync Document.

Append a Sync List item

POST /api/v1/sync/lists/{name}/items
Append a JSON data object to the end of a Sync List, returning the new item’s index and emitting a list.item.added change event. Requires an operator role.
string
required
Unique name of the Sync List.

Publish a Sync Stream message

POST /api/v1/sync/streams/{name}/messages
Publish a JSON data message to a Sync Stream — an ephemeral pub/sub channel with no persistence. Only subscribers connected to /api/v1/ws/sync at publish time receive the stream.message event. Requires an operator role.
string
required
Unique name of the Sync Stream.

Set a Sync List item

PUT /api/v1/sync/lists/{name}/items/{index}
Replace the JSON data of the Sync List item at the given index, emitting a list.item.updated change event. Requires an operator role.
string
required
Unique name of the Sync List.
integer
required
Zero-based index of the item within the list.

Set a Sync Map item

PUT /api/v1/sync/maps/{name}/items/{key}
Create or replace a Sync Map item at the given key with a JSON data object (and optional ttl), emitting a map.item.set change event. Requires an operator role.
string
required
Unique name of the Sync Map.
string
required
Key of the item within the map.

Delete a Sync Document

DELETE /api/v1/sync/documents/{name}
Remove a Sync Document and emit a document.removed change event. Requires an operator role.
string
required
Unique name of the Sync Document.

Delete a Sync List

DELETE /api/v1/sync/lists/{name}
Delete an entire Sync List and all its items, emitting a list.removed change event. Requires an operator role.
string
required
Unique name of the Sync List.

Remove a Sync List item

DELETE /api/v1/sync/lists/{name}/items/{index}
Delete the Sync List item at the given index, emitting a list.item.removed change event. Requires an operator role.
string
required
Unique name of the Sync List.
integer
required
Zero-based index of the item within the list.

Delete a Sync Map

DELETE /api/v1/sync/maps/{name}
Delete an entire Sync Map and all its items, emitting a map.removed change event. Requires an operator role.
string
required
Unique name of the Sync Map.

Remove a Sync Map item

DELETE /api/v1/sync/maps/{name}/items/{key}
Delete a single item from a Sync Map by its key, emitting a map.item.removed change event. Requires an operator role.
string
required
Unique name of the Sync Map.
string
required
Key of the item within the map.