> For the complete documentation index, see [llms.txt](https://docs.middle.app/middle-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.middle.app/middle-docs/guides/app-reference/gravity-forms.md).

# Gravity Forms

To connect Gravity Forms follow the below steps.

{% hint style="info" %}
Middle uses the v2 version of Gravit Form's API
{% endhint %}

{% embed url="<https://docs.gravityforms.com/gravity-forms-rest-api-settings/>" %}

{% stepper %}
{% step %}

### Active the REST API

1. To enable the Gravity Forms REST API, navigate to Forms → Settings → REST API
2. Check the Enabled checkbox
3. Click on the Update button to save the settings
4. The REST API is now enabled
   {% endstep %}

{% step %}

### Create an API key

<figure><img src="/files/q7zqgkQa0h7OkNbSjq3P" alt=""><figcaption></figcaption></figure>

1. Click on **Add Key**
2. Add a Description for your key
3. Select the user assigned to that key
4. Select the Permissions: Middle only needs read permissions
5. Add the key
6. Copy the Consumer Key and Secret now, as they will not be available once you leave this page
7. After copying the keys, click the X in the upper right corner to close the dialog
8. You will see your new key in the Authentication list
9. Once you have copied your Consumer Key and Consumer Secret and the API key you created is listed, click the “Update” button at the bottom of the page to save the key

{% hint style="danger" %}
You will not be able to access your consumer and secret key after leaving the setup page
{% endhint %}
{% endstep %}

{% step %}

### Enter your credentials and base URL in Middle

You will need to [create a new](/middle-docs/accounts/connect-or-edit-an-app-connection.md#adding-a-new-app-connection) Gravity Forms app connection. The the auth form you will need to enter your `consumer_key` and `secret_key` along with your base\_url. Your `base_url` appears in the URL of your Wordpress website. For example, [https://dog.com/](https://perkville.com/) has the base URL of "dog".
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.middle.app/middle-docs/guides/app-reference/gravity-forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
