# HighLevel

There are two types of API keys in HighLevel: agency API keys and location API keys. For Middle's HighLevel app, you'll want to use your location API key.

You can get your [location API key](https://help.gohighlevel.com/support/solutions/articles/48001060529-highlevel-api#1.%C2%A0Location-Level-%3E-Settings%C2%A0%3E-Business-Info) from the sub-account you are connecting. This will be used for all the APIs to manage all the objects that are part of subaccounts (contacts, appointments, opportunities, etc.).

1. Go to **Settings**
2. Go to **Business Info**
3. Go to API Key

Enter the API key in [your HighLevel app connection](/middle-docs/building-workflows/connect-or-edit-an-app-connection.md).

{% embed url="<https://help.gohighlevel.com/support/solutions/articles/48001060529-highlevel-api#1.%C2%A0Location-Level-%3E-Settings%C2%A0%3E-Business-Info>" %}

<figure><img src="/files/VZK6qKlxmvJgHiZwKY79" alt=""><figcaption><p>HighLevel GIF on how to get an agency-level API key</p></figcaption></figure>

{% content-ref url="/pages/12S4me8UzRBzHvDJv3s5" %}
[Contact custom fields](/middle-docs/guides/app-reference/highlevel/contact-custom-fields.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://docs.middle.app/middle-docs/guides/app-reference/highlevel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
