Contribute to this guide

REST API and Webhooks

# Cloud Services RESTful APIs

CKEditor Cloud Services offer several REST APIs that can be used for server integration. They provide a lot of powerful methods that make it possible to control and manage data. They can be used to control content revisions, handle users or manage document conversions.

The APIs currently include:

# Usage

Each method can be used for different purposes. For example, the REST API methods for comments allow for synchronizing comments between CKEditor Cloud Services and another system. In addition to that, CKEditor Cloud Services can be used as a database for comments because it is possible to download them via the REST API at the time they are being displayed.

An example of using another API method is getting the content of the document from a collaborative editing session. This feature can be used to build an autosave mechanism for the document, which should reduce transfer costs – autosave requests are not executed by each connected user but only by the system once at a time.

When using REST APIs, data can be removed or modified via DELETE or PUT/PATCH methods. These operations cannot be reversed.

# Webhooks

Webhooks resemble a notification mechanism that can be used to build integrations with CKEditor Cloud Services. CKEditor Cloud Services sends an HTTP POST request to a configured URL when specified events are triggered.

Webhooks can be used for data synchronization between CKEditor Cloud Services and another system or to build a notifications system. For example, thanks to webhooks, the system might notify the users via email about changes made in the document.

To learn more about CKEditor Environment webhooks, refer to the Webhooks guide in the Cloud Services documentation.