Title: can not verify stackpath cdn API key
Last modified: August 6, 2020

---

# can not verify stackpath cdn API key

 *  Resolved [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * (@tomcatwpdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/)
 * Hello supporters, sorry for my bad english
    I buy stackpath cdn licence and create
   api key (client id and secret key). In w3tc configuration, I follow as 2 pictures
   bellow:
 * [img]https://i.imgur.com/JvE88XA.png[/img]
    [img]https://i.imgur.com/JhF5cqn.
   png[/img]
 * Error: Can’t authenticate: Failed to reach API endpoint.
    I checked error.log,
   but nothing is in here
 * Did I miss something?
    My wordpress website URL is: [http://my-domain.com/wordpress_folder](http://my-domain.com/wordpress_folder)
   => Is it reason that makes w3tc cannot verify cdn key?
    -  This topic was modified 5 years, 10 months ago by [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/).
    -  This topic was modified 5 years, 10 months ago by [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216411)
 * Hello [@tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * I am sorry about the issue you are experiencing and I am happy to assist you 
   with this.
    I’ve tried to replicate this and I was able to authorize the Stackpath
   with no issues. Can you please make sure to follow the instructions in [this guide](https://support.stackpath.com/hc/en-us/articles/360001078983-WordPress-with-W3-Total-Cache-CDN-Setup-Guide)
   and double-check your configuration? Thanks!
 *  Thread Starter [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * (@tomcatwpdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216538)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/) , thank you for 
   your reply.
    I regenerated API key (stackpath) and followed the instructions 
   that you gave me one more time. Unfortunatelly, I still got the error: Can’t 
   authenticate: Failed to reach API endpoint (see this picture: [ Error appears when click “next” button ](https://i.imgur.com/JhF5cqn.png)).
   For more information, Im using lastest version of wordpress and w3tc, php 7.2.
   Other features of w3tc are still working well
 *  Thread Starter [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * (@tomcatwpdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216769)
 * I just made a test to detect this issue, I have 1 domain and subdomain like this:
   
   1. mydomain.com 2. test.mydomain.com/wptest When I verified API key on mydomain.
   com , it worked. But on test.mydomain.com/wptest, it gave error. So I changed
   subdomain to test.mydomain.com and w3tc now can verify CDN key. After that, I
   clicked on button “test stackpath” and it passed, but I use Gtmetrix or webpagetest
   to check one more time, both of 2 tools show me that, cdn is not effected, is
   it normal ?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216791)
 * Hello [@tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * Thank you for the information. Glad to know you managed to authorize Stackpath.
   
   Have you verified the Replace Site’s Hostname With Section is automatically populated
   with your Edge Address in Performance>CDN? Can you please share the website URL?
   Thanks!
 *  Thread Starter [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * (@tomcatwpdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216852)
 * Sorry, Im not sure I totally understand about that option, but please [check this image](https://i.imgur.com/CNCf7nc.png).
   Is it ok?
    here is website URL: [https://mandaley.officience.com/](https://mandaley.officience.com/)
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13216906)
 * Hello [@tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * Thank you for the screenshot. Yes the “Replace Site’s Hostname With” is populated
   and I’ve inspected your website and static files are being served from the CDN.
   Please check this [screenshot](https://imgur.com/undefined).
    However, it’s also
   throwing some 500 errors for your images. I’ve tried to reach those images bypassing
   the CDN but it seems that they do not exist on your server. As for the Gtmerix,
   it complains about: [https://club.mandaley.fr/wp-content/plugins/fontawesome-5.4.1/css/all.css](https://club.mandaley.fr/wp-content/plugins/fontawesome-5.4.1/css/all.css)
   [https://club.mandaley.fr/wp-content/uploads/revslider/creativefreedom/creative_bg1.jpg](https://club.mandaley.fr/wp-content/uploads/revslider/creativefreedom/creative_bg1.jpg)
   [https://club.mandaley.fr/wp-content/uploads/2019/02/atoutfrance.png](https://club.mandaley.fr/wp-content/uploads/2019/02/atoutfrance.png)
   [https://club.mandaley.fr/wp-content/uploads/2019/02/CB.png](https://club.mandaley.fr/wp-content/uploads/2019/02/CB.png)
   [https://club.mandaley.fr/wp-content/uploads/2019/02/apst.png](https://club.mandaley.fr/wp-content/uploads/2019/02/apst.png)
   Try purging the cache and also purging the CDN completely. Thanks!
 *  Thread Starter [tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * (@tomcatwpdev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13217085)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/) , Your screenshot
   link is undefined. I checked “Resource Usage” in stackpath account and I think
   you are right ( 11MB / 1T ), my website and static files are being served from
   the CDN. I think after verifing CDN key, it will take a moment to send files 
   from my server to stackpath automatically without any notification, so I didn’t
   recognize after your reply. After using Webpagetest to check again, I can see
   the result “Use a CDN for all static assets: 78/100”. I think it doesn’t get 
   100/100 because some missing images that you listed above and that is why Webpagetest
   change the icon of “Effective use of CDN” to green color. I will close this ticket,
   thank you for your help, if I have any problem, I will contact you soon. Have
   a nice day.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13217371)
 * Hello [@tomcatwpdev](https://wordpress.org/support/users/tomcatwpdev/)
 * Thank you for the information.
    Sorry about the screenshot here is the fixed 
   one [https://i.imgur.com/JOyKToh.png](https://i.imgur.com/JOyKToh.png) You are
   most welcome!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘can not verify stackpath cdn API key’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/can-not-verify-stackpath-cdn-api-key/#post-13217371)
 * Status: resolved