WebSonic.io offers REST API so that you can programmatically integrate WebSonic.io in your application. Currently, we offer APIs for:
Purging cache on CDN.
Getting status of purge request.
All our APIs accepts JSON-encoded request bodies and returns JSON-encoded response.
WebSonic.io API uses standard HTTP error codes.
Everything worked as expected.
400 Bad request
The request was unacceptable, often due to missing or invalid parameter(s). In this case a JSON-encoded error response is returned with the following properties:
No valid API key provided.
429 Too many requests
Too many requests hit the API too quickly.
We recommend you to throttle request rate as per the
500, 502, 503, 504 Server error
Something went wrong with WebSonic.io API. Please create a support ticket by emailing us at firstname.lastname@example.org.