> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Availity with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a Availity account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using Availity actions.

> [!WARNING]
>
> Live payer data needs the Standard plan, which Availity approves only after your organization signs a contract with Availity. The Demo plan is approved straight away and returns fixed sample answers, so use it to test the connection rather than to read real patient data.

## Get your Availity API Key, Secret and scope

Your API Key, Secret and scope come from an app you create on the [Availity Developer Portal](https://developer.availity.com), once Availity approves a product plan for that app. The Developer Portal is a different site from Availity Essentials, so you need an account on it.

**1. Create an app**

Sign in to the [Availity Developer Portal](https://developer.availity.com) and select **My Apps**.

<ul>
  <li>Select **+ CREATE A NEW APP**.</li>
  <li>**App Name**: a descriptive name, for example `StackOne Integration`.</li>
  <li>**Description**: what the app is for. This field is optional.</li>
  <li>**Redirect URLs**: required by the form. Availity pre-fills `https://availity.com/`, and this connection does not use it, so you can leave the pre-filled value.</li>
  <li>Select **CREATE APP**. Apps cannot be edited after they are created.</li>
</ul>

![The My Apps page with the CREATE A NEW APP button highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-create-app.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=3f0aaf6ec2b7caef546f593a8c4b0c31)

**2. Fill in the app details**

The **APP DETAILS** form asks for the name, description and redirect URL of the app.

![The APP DETAILS form with App Name, Description, Redirect URLs and CREATE APP highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-app-details.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=a5ecbe519396b7573a3f1cac7798aec3)

**3. Choose a product and plan**

Select **API Products** in the menu bar and open the product you need. **Healthcare HIPAA Transactions** returns live payer data, and **Healthcare HIPAA Transactions Demo** returns fixed sample answers. The AWS Availity Payer List is a separate product that only the list\_payers\_v2 action uses, and Availity issues it its own API Key, Secret and scope, so request it separately and connect it as a second account.

<ul>
  <li>Select **ACCESS THIS PRODUCT**.</li>
  <li>Under **Plans Available for Subscription**, select **ACCESS WITH THIS PLAN** on the plan you want.</li>
</ul>

![A product page with the ACCESS THIS PRODUCT button highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-access-product.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=7c40cb79be851104895f51bed9b0b248)

**4. Submit the access request**

Availity adds the product to your cart. Open the cart to finish the request.

<ul>
  <li>Check that **1 Selected Products** and **2 Selected Plan** show the product and plan you chose.</li>
  <li>Under **3 Select an App**, select **Existing App** and choose the app you created.</li>
  <li>Select **SUBMIT REQUEST**.</li>
  <li>**Demo**: Availity approves the request straight away.</li>
  <li>For the Standard plan, email [partnermanagement@availity.com](mailto:partnermanagement@availity.com), or use [Contact Sales](https://www.availity.com/contact-sales/), to start the contract. Availity emails you once it has approved the request.</li>
</ul>

![The cart page with the Existing App option and the SUBMIT REQUEST button highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-submit-request.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=aa8fac4a0269759ae7e265ff58e4aca4)

**5. Copy the API Key and Secret**

Open **My Apps**, select your app, and stay on the **Approved access** tab. A request Availity has not approved yet sits under **Pending access** instead, with no credentials to copy.

<ul>
  <li>Under **ACCESS AND CREDENTIALS INFO**, copy the value next to **API KEY** with the copy icon at the end of its row.</li>
  <li>Copy the value next to **SECRET** the same way.</li>
  <li>Paste the **API KEY** into **API Key** and the **SECRET** into **Secret** in StackOne Hub.</li>
</ul>

![The Approved access tab with the API KEY and SECRET rows highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-credentials.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=94def9a74e07897abff2573fa7219067)

**6. Copy the scope**

On the same page, select **View client type info**.

<ul>
  <li>Read every name listed under **SCOPE PERMISSION**.</li>
  <li>Paste them into **Scope** in StackOne Hub on one line, separated by a single space.</li>
  <li>Example: a Demo subscription lists `healthcare-hipaa-transactions-demo` and `healthcare-hipaa-transactions-demo-demo`, so the scope is `healthcare-hipaa-transactions-demo healthcare-hipaa-transactions-demo-demo`.</li>
  <li>Availity issues each approved product its own API Key, Secret and scope, so moving from Demo to Standard means copying all three again.</li>
</ul>

![The client type info panel with the SCOPE PERMISSION values highlighted](https://mintcdn.com/stackone-60/af5LcXVL5vpPMRNE/connectors/availity/images/availity-config-scope.png?fit=max\&auto=format\&n=af5LcXVL5vpPMRNE\&q=85\&s=ec6d4a5e26a8a043fe5bc6554491cb12)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.