Title: REST API Broken
Last modified: August 21, 2016

---

# REST API Broken

 *  Resolved [antoine64](https://wordpress.org/support/users/antoine64/)
 * (@antoine64)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/)
 * The REST API is totally broken for 2 blogs of mine. When I use a public API method
   like [https://public-api.wordpress.com/rest/v1/sites/mywebsite.com/posts/](https://public-api.wordpress.com/rest/v1/sites/mywebsite.com/posts/)
   I got this message :
    `{"error":"token_target_mismatch","message":"The authorization
   token does not match the API target."}`
 * This method is public and doesn’t need any token. I use it for months without
   authentication.
 * The API worked fine few days ago.
    My blogs are self-hosted, use Jetpack (2.3.2)
   and JSON API is activated.
 * Is someone has an idea ? Has API changed recently ? There is no message about
   that on the documentation [http://developer.wordpress.com/docs/api/](http://developer.wordpress.com/docs/api/)
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/rest-api-broken/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/rest-api-broken/page/2/?output_format=md)

 *  [rmarliere](https://wordpress.org/support/users/rmarliere/)
 * (@rmarliere)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964184)
 * I’m having the exactly same issue. Did you fixed it? I already tried to reconnect
   the jetpack but with no success.
 *  Thread Starter [antoine64](https://wordpress.org/support/users/antoine64/)
 * (@antoine64)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964188)
 * No I didn’t.
 * I also tried to reconnect jetpack, no success.
 * I use the REST API in mobile apps so it’s a big problem for me :/
    I tried to
   contact the wordpress team on twitter about that but I didn’t get an answer. 
   I hope they will see this post soon.
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964192)
 * Having a similar issue as well. The Jetpack page says I am connected, but the
   API interface is not working. The debug page says my site is unable to communicate
   with Jetpack. I tried deactivating all plugins and switched to 2012 theme, but
   still I have the issue.
 * Have you tried all those things? Same results?
 * I am able to pull up my XMLRPC page ok.
 *  Thread Starter [antoine64](https://wordpress.org/support/users/antoine64/)
 * (@antoine64)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964193)
 * I didn’t know the existence of the debug page !
    I have the same problem as you
   on the debug page berenerchamion, here is the result of the Jetpack debug page:
 *     ```
       It looks like your site can not communicate properly with Jetpack.
       SELF:
       Array
       (
           [headers] => Array
               (
                   [server] => nginx
                   [date] => Sun, 28 Jul 2013 14:30:05 GMT
                   [content-type] => text/plain;charset=utf-8
                   [connection] => close
                   [x-pingback] => http://jetpack.wordpress.com/xmlrpc.php
                   [expires] => Wed, 11 Jan 1984 05:00:00 GMT
                   [cache-control] => no-cache, must-revalidate, max-age=60
                   [pragma] => no-cache
                   [x-hacker] => Jetpack Test
               )
   
           [body] => {"error":"Unknown Error","error_description":"An unknown error has occurred."}
           [response] => Array
               (
                   [code] => 400
                   [message] => Bad Request
               )
   
           [cookies] => Array
               (
               )
   
           [filename] =>
       )
       ```
   
 * I didn't change anything on my 2 blogs so it can't be related to a theme or plugin.
   I think it's a problem in the plugin or on the jetpack servers.
 *  [sarbjitarora](https://wordpress.org/support/users/sarbjitarora/)
 * (@sarbjitarora)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964194)
 * I am facing the same issue. It was working fine earlier. Something is broken 
   with the REST API
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964197)
 * I fixed my access. What I did was disconnect my Jetpack completely and then re-
   connect it. I noticed that I had two connection indicators on teh Jetpack page,
   but when I disconnect both and then re-connected Jetpack now I have only one 
   and the REST APIs work again.
 * They even work when I have W3TC turned on with minification! Super!
 * beren
 *  Thread Starter [antoine64](https://wordpress.org/support/users/antoine64/)
 * (@antoine64)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964199)
 * Where do you find two indicators ? I found one on the top of the Jetpack administration
   page. It says “Connected to WordPress.com”. But I cannot find a second indicator!
 * I already tried to disconnect and re-connect Jetpack but with no effect 🙁
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964200)
 * I had a second one right there – very odd – but now it is gone.
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964201)
 * Well – back to broken – simple requests like this:
 * [https://public-api.wordpress.com/rest/v1/sites/tarnaeluin.houseofbeor.net/posts?pretty=1&number=5](https://public-api.wordpress.com/rest/v1/sites/tarnaeluin.houseofbeor.net/posts?pretty=1&number=5)
 * fail with:
    { “error”: “token_target_mismatch”, “message”: “The authorization
   token does not match the API target.” }
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964209)
 * Yeah I can definitely see that there must be something broken in Jetpack. From
   curl this command works:
 * curl ‘[https://public-api.wordpress.com/rest/v1/sites/en.blog.wordpress.com/posts/7/?pretty=1&#8217](https://public-api.wordpress.com/rest/v1/sites/en.blog.wordpress.com/posts/7/?pretty=1&#8217);
 * But if I change out the hostname and a post number for my own site I get the 
   token mismatch above even though this call you don’t need a token for.
 *  [Matthew Boynes](https://wordpress.org/support/users/mboynes/)
 * (@mboynes)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964216)
 * This is also broken for me, same issue as described above.
 *  Thread Starter [antoine64](https://wordpress.org/support/users/antoine64/)
 * (@antoine64)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964218)
 * You’re right berenerchamion : REST API works for the official wordpress blog,
   and I think for all wordpress.com blogs but it is broken for all self-hosted 
   blogs.
 * We’re waiting for WordPress team support !
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964225)
 * Thank you all for the reports! We’re looking into it, and I’ll get back to you
   as soon as I have some news.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964228)
 * The problem should now be fixed.
 * If you still experience issues, can you please use Jetpack’s Debugger module 
   to send us some more information about your site?
 * 1) Go to the Jetpack page in your dashboard.
    2) Click on the Debug link appearing
   at the bottom of the page. 3) Click the link that says “click here to contact
   Jetpack support.” 4) Fill in the description box and your name and email address.
   5) Click the “Contact Support” button.
 * Thanks!
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/rest-api-broken/#post-3964233)
 * Thanks Mr. Happiness!

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/rest-api-broken/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/rest-api-broken/page/2/?output_format=md)

The topic ‘REST API Broken’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 18 replies
 * 8 participants
 * Last reply from: [nrturner](https://wordpress.org/support/users/nrturner/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/rest-api-broken/page/2/#post-3964328)
 * Status: resolved