Admin API docs

Endpoint: service.headless-render-api.com/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, headless-render-api.com 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 headless-render-api.com's cache for URLs hit by your account. Some headless-render-api.com 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.headless-render-api.com/api/v1/clear-cache

curl -XPOST -H'X-Prerender-Token: SECRET_API_TOKEN' http://service.headless-render-api.com/api/v1/clear-cache