Title: Invalid Key Error
Last modified: August 30, 2016

---

# Invalid Key Error

 *  Resolved [jamesmillar](https://wordpress.org/support/users/jamesmillar/)
 * (@jamesmillar)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-key-error/)
 * I’m attempting to run the following:
 *     ```
       global $infusionsoft;
       $contact = $infusionsoft->contact( 'add', array( 'Email' => 'james@*******' ) );
       ```
   
 * However no matter how I cut it it fails with:
 *     ```
       object(WP_Error)#5706 (2) {
         ["errors"]=>
         array(1) {
           ["invalid-request"]=>
           array(1) {
             [0]=>
             string(23) "[InvalidKey]Invalid Key"
           }
         }
         ["error_data"]=>
         array(0) {
         }
       }
       ```
   
 * I have checked my key many times, and can complete the action without any problems
   using the IO Docs: [https://keys.developer.infusionsoft.com/io-docs](https://keys.developer.infusionsoft.com/io-docs)
 * Can you give me any help on this?
 * Thanks.
 * [https://wordpress.org/plugins/infusionsoft-for-developers/](https://wordpress.org/plugins/infusionsoft-for-developers/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [jamesmillar](https://wordpress.org/support/users/jamesmillar/)
 * (@jamesmillar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/invalid-key-error/#post-6381223)
 * Resolved.
 * The Infusionsoft documentation primarily refers to ‘OAuth 2.0 API Access’, however
   the plugin does not support this, it supports the legacy ‘Account-level API Access’.
   See: [https://developer.infusionsoft.com/2014/07/03/simplifying-infusionsoft-authentication-with-oauth2/](https://developer.infusionsoft.com/2014/07/03/simplifying-infusionsoft-authentication-with-oauth2/)

Viewing 1 replies (of 1 total)

The topic ‘Invalid Key Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infusionsoft-for-developers.svg)
 * [Infusionsoft WordPress Developers Plugin](https://wordpress.org/plugins/infusionsoft-for-developers/)
 * [Support Threads](https://wordpress.org/support/plugin/infusionsoft-for-developers/)
 * [Active Topics](https://wordpress.org/support/plugin/infusionsoft-for-developers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infusionsoft-for-developers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infusionsoft-for-developers/reviews/)

## Tags

 * [invalid key](https://wordpress.org/support/topic-tag/invalid-key/)

 * 1 reply
 * 1 participant
 * Last reply from: [jamesmillar](https://wordpress.org/support/users/jamesmillar/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/invalid-key-error/#post-6381223)
 * Status: resolved