Disable the optimization engine from the API

Modified on Wed, 06 Dec 2023 at 03:52 PM

It is possible to disable the optimization engine from the API. The traffic will continue to transit on Fasterize but the pages will no longer be optimized. 


Please contact our support team to obtain the API token. Make sure you also have the configuration ID, which you can find in the dashboard URL of your configuration. For example, if the URL is https://dashboard.fasterize.com/feo/projects/64/configuration/1, the configuration ID is 1. 


# Enable the engine

 curl -i -H 'Content-Type: application/json' -H 'Authorization: $myApiToken' -X PATCH https://api.fasterize.com/v2/configs/$config_id/ -d '{"status": { "fasterized": true }}'



# Disable the engine

 curl -i -H 'Content-Type: application/json' -H 'Authorization: $myApiToken' -X PATCH https://api.fasterize.com/v2/configs/$config_id/ -d '{"status": { "fasterized": false }}'


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article