Admin API

Endpoint: service.prerender.cloud/api/v1

This administrative API is for operations related to your account, see the pre-rendering API for documenation on pre-rendering and screenshots.

Auth

Your API token via HTTP header is required for any administrative API commands (unlike the pre-rendering API)
X-Prerender-Token
  • curl --header "X-Prerender-Token: secret-token"

Clearing server cache

By default, prerender.cloud caches for 5 minutes. This is configurable for each API request (see thePrerender-Cache-Duration header in the pre-rendering API docs

This POST request will clear prerender.cloud's cache for URLs hit by your account. Some prerender.cloud users set their Prerender-Cache-Duration value to long periods (e.g. 1 month) and sometimes want an easy way to clear all cache.

POST https://service.prerender.cloud/api/v1/clear-cache

curl -XPOST -H'X-Prerender-Token: SECRET_API_TOKEN' http://service.prerender.cloud/api/v1/clear-cache
Hosted on Roast.io