Skip to main content

Getting Started

ReadSonic via Webhook

In case you are using a different platform than WordPress or Next.js, you can still use ReadSonic by integrating it via a webhook. This guide will walk you through the process of setting it up.

Sending a Custom Payload

The webhook URL is the following:

https://api.readsonic.io/synthesize/webhook

You can send a POST request to this URL with the following payload:

{
"origin": "https://example.com",
"slug": "/blog/my-post",
"type": "class",
"name": "post-content",
}

Origin

The origin URL of your site. This should already be added on the ReadSonic dashboard.

Slug

The URL of the page you want to synthesize.

Type

The type of the element in which the content is located. This can be either class or element.

Name

If the type is class, this should be the class name of the element to synthesize.

If the type is element, this should be the tag name of the element like article.