Title: Issue with API
Last modified: November 1, 2022

---

# Issue with API

 *  Resolved [novely](https://wordpress.org/support/users/novely/)
 * (@novely)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-with-api/)
 * Hi!
 * I’m trying to connect a client’s form and it was working until the recent update(
   I think)
 * Here’s the error message I see:
    Warning: Invalid argument supplied for foreach()
   in /home/customer/www/[siteURL]/public_html/wp-content/plugins/convertkit-gravity-
   forms/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api.
   php on line 1353
 * Any idea why that’s coming up?
    The API should work, but the ConvertKit Forms
   are not coming up to connect properly.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kit](https://wordpress.org/support/users/convertkit/)
 * (@convertkit)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-with-api/#post-16156181)
 * Either:
    1. An invalid API key has been entered at `Gravity Forms > Settings 
   > ConvertKit > API Key` 2. The ConvertKit account for said API key has no forms
   specified in ConvertKit 3. (Unlikely) you’ve hit an API rate limit
 * If you’re certain that you’ve entered a valid API key for a ConvertKit account
   that absolutely has a form specified, please reach out to [support](https://convertkit.com/support)
   so we can look at the ConvertKit account in question.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Issue with API’ is closed to new replies.

 * ![](https://ps.w.org/convertkit-gravity-forms/assets/icon-256x256.png?rev=2695363)
 * [Gravity Forms ConvertKit Add-On](https://wordpress.org/plugins/convertkit-gravity-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/convertkit-gravity-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/convertkit-gravity-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/convertkit-gravity-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/convertkit-gravity-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/convertkit-gravity-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kit](https://wordpress.org/support/users/convertkit/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/issue-with-api/#post-16156181)
 * Status: resolved