> 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.md).

# App Reference

Obtains the credentials to connect an app

## Getting app credentials

To connect with any app, you will need your own API credentials to facilitate the integration. Depending on the app, the nature of this integration varies. Oftentimes, an API partnership is required with the app provider, an OAuth application must be created in the software platform, or it's as simple as grabbing an API key from the app admin.

API credentials are either entered on the [app connection page](/middle-docs/product/accounts/connect-or-edit-an-app-connection.md) or at an organization level, in the [API keys](/middle-docs/product/apps/credential-storage.md) tool.

{% hint style="info" %}
All OAuth authentications require OAuth application credentials to be entered in the [API keys](/middle-docs/product/apps/credential-storage.md) menu
{% endhint %}

### Redirect URLs

When an app authentication requires a redirect URL, as is the case for OAuth flows, you'll need to use a redirect URL that returns to your Middle instance. You'll want to use the following: `https://`<mark style="color:orange;">`{`</mark>*<mark style="color:orange;">`ENTER YOUR INSTANCE NAME HERE`</mark>*<mark style="color:orange;">`}`</mark>`.middle.app/oauth-redirect-uri/`


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
