For customers who want to deploy schema markup server side on websites where Schema App does not have an integration (contact us - maybe it's in our roadmap), we created the Schema App Webhook.
Webhooks notify applications when specific events occur on your Schema markup. Examples of each are below
- EntityCreated when markup for a page is first created
- EntityUpdated when markup for a page is updated
- EntityDeleted when markup for a page is deleted
To deploy via webhook you must first add an endpoint from Integrations > Webhooks > + Add Endpoint. Data will be sent to this endpoint based on changes in your markup, for example:
You update an item in the Editor
- A crawler (if configured) runs and generates markup
- Highlight JavaScript (if configured) runs and generates markup
- Merchant Center runs and generates markup
The payload sent to your server contains information about where it originates from, and where you can new markup for that page by calling the API. For convenience the markup is included in the "graph" object which can be used directly.
The webhooks page in integrations also provides the response we received from your server. You can resend webhooks as well to test your integration as you make changes.
You can expand the row to see the full details of the request and response
Ensuring webhooks are not blocked
Webhooks are sent via POST requests to your server. The webhooks will originate from the following IP: 52.45.62.191. It will send the request to the Endpoint URL (shown above). If you are using WordPress the URL will be based on the domain of your site with an endpoint path i.e if your site is https://www.example.org then the endpoint will be https://www.example.org/wp-json/hunch_schema/cache/path This endpoint is autoconfigured when you install the Wordpress plugin but is visible on the webhooks page.
We recommend whitelisting the 52.45.62.191 IP for the webhook endpoint to ensure your server can receive webhooks from Schema App.
For more information please contact support@schemaapp.com.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article