Rocket.net offers a series of RESTful APIs that are incredibly simple to work with to manage every aspect of your Rocket.net account.
You can access the API here: Rocket.net API
And get your API token that can be used for requests here: Authenticate user and generate JWT token
After you have copied your token, you can use all of our APIs.
Let's take this one as an example: Purge all files from single domain from cache on cloudflare:
To run this action, we just need to add our token to the Beared field: (1)
And the Site ID to the (2) field.
The site ID you can get by going to your Rocket Dashboard, clicking on manage in the desired domain, and you will see the site ID in the URL.
Then just click on Try it! (3), and the action will run. You will be able to see if it worked by the "success": true, message:
In this case, all the pages for that site will be purged from our Cloudflare Enterprise Edge Cache.
You can use the Query Params to customize the request, whether you'd like to purge it for the staging site, a specific or all additional domains.
Feel free to browse through our several APIs; you will be amazed at what you can do with them.
Of course, if you have any further questions or require assistance, please do not hesitate to submit a Ticket to our Support Team. We'll be glad to help you!
Comments
0 comments
Article is closed for comments.