Title: API ERROR: INVALID_API_KEY_FORMAT
Last modified: January 10, 2017

---

# API ERROR: INVALID_API_KEY_FORMAT

 *  Resolved [heliweb](https://wordpress.org/support/users/heliweb/)
 * (@heliweb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-error-invalid_api_key_format/)
 * New to apple news and as soon as I try to push content from my wordpress site,
   i get this INVALID_API_KEY_FORMAT error. Here is the Json file from the last 
   post I tried to publish, also the debug report I got via email below.
 * Json file: [https://drive.google.com/file/d/0BwaBS_ZPYa9edHNWaGIxVVYwQWs/view?usp=sharing](https://drive.google.com/file/d/0BwaBS_ZPYa9edHNWaGIxVVYwQWs/view?usp=sharing)
 * API Response:
 *     ```
       Array
       (
           [headers] => Requests_Utility_CaseInsensitiveDictionary Object
               (
                   [data:protected] => Array
                       (
                           [www-authenticate] => HHMAC
                           [content-type] => application/json; charset=UTF-8
                           [content-length] => 46
                       )
   
               )
   
           [body] => {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
           [response] => Array
               (
                   [code] => 401
                   [message] => Unauthorized
               )
   
           [cookies] => Array
               (
               )
   
           [filename] =>
           [http_response] => WP_HTTP_Requests_Response Object
               (
                   [response:protected] => Requests_Response Object
                       (
                           [body] => {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
                           [raw] => HTTP/1.1 401 Unauthorized
       WWW-Authenticate: HHMAC
       Content-Type: application/json; charset=UTF-8
       Content-Length: 46
   
       {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
                           [headers] => Requests_Response_Headers Object
                               (
                                   [data:protected] => Array
                                       (
                                           [www-authenticate] => Array
                                               (
                                                   [0] => HHMAC
                                               )
   
                                           [content-type] => Array
                                               (
                                                   [0] => application/json; charset=UTF-8
                                               )
   
                                           [content-length] => Array
                                               (
                                                   [0] => 46
                                               )
   
                                       )
   
                               )
   
                           [status_code] => 401
                           [protocol_version] => 1.1
                           [success] =>
                           [redirects] => 0
                           [url] => https://u48r14.digitalhub.com/channels/d8f2d843-f35c-4f46-bcbd-c7c1e718b472/articles
                           [history] => Array
                               (
                               )
   
                           [cookies] => Requests_Cookie_Jar Object
                               (
                                   [cookies:protected] => Array
                                       (
                                       )
   
                               )
   
                       )
   
                   [filename:protected] =>
                   [data] =>
                   [headers] =>
                   [status] =>
               )
   
       )
   
       Request Meta:
   
       Array
       (
           [data] => Array
               (
                   [links] => Array
                       (
                           [sections] => Array
                               (
                               )
   
                       )
   
               )
   
       )
       ```
   
 * _[Moderator note: code fixed. Please wrap code in the backtick character or [use the code button](https://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
    -  This topic was modified 9 years, 5 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-error-invalid_api_key_format/#post-8640148)
 * This error would only occur if your API key was actually invalid. Please [check your settings](https://github.com/alleyinteractive/apple-news/wiki/configuration#api-settings).

Viewing 1 replies (of 1 total)

The topic ‘API ERROR: INVALID_API_KEY_FORMAT’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/api-error-invalid_api_key_format/#post-8640148)
 * Status: resolved