> ## 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 Eka Care with OAuth 2.0 (Client Credentials) – StackOne Hub

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

## Creating API credentials

An API credential is a Client ID and Client Secret pair for your Eka workspace.

**1. Create the credential**

Sign in to your [Eka Console account](https://console.eka.care/).

<ul>
  <li>On the **Dashboard**, under **Quick Actions**, click **Manage API Credentials ( Client IDs and Secrets )**.</li>
  <li>On the **API Credentials** page, click **Create**.</li>
  <li>In **Create Client ID and Client Secret**, enter the **Name**: `StackOne Integration`</li>
  <li>Click **Create**.</li>
</ul>

![The Create Client ID and Client Secret form with the Name field and Create button highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-create-credential.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=900d32cb637abb14ae131f8f98f3e88c)

**2. Copy the Client Secret**

In **Client Secret Created**, click **Copy to Clipboard**.

<ul>
  <li>Copy the **Client Secret** across. Eka shows it only once.</li>
  <li>Click **Done**.</li>
</ul>

![The Client Secret Created dialog with the secret hidden and Copy to Clipboard highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-copy-secret.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=3cf39936e7c19da5f11741ab790c7708)

**3. Copy the Client ID**

On the **API Credentials** page, find your new credential.

<ul>
  <li>Copy the **Client ID** across.</li>
</ul>

![The API Credentials list with the Client ID of the new credential highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-client-id.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=1006b04cd1420b92b8da3778f7a85bca)

## Generating a Sharing Key (optional)

A **Sharing Key** lets the connection act on another clinic's Eka workspace. Only add one when that workspace's owner has generated it for you.

**1. Create the token**

The workspace owner signs in to their [Eka Hub account](https://hub.eka.care/).

<ul>
  <li>In the sidebar, open **Utilities** > **API Token**.</li>
  <li>On the **API Token** page, click **Create New**.</li>
  <li>In **Create APIToken**, enter the details.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Description**: `Integration with StackOne`</li>
  <li>Click **Save**.</li>
</ul>

![The Create APIToken form with the Name, Description and Save controls highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-create-token.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=b3b26b2ef92791f92c6b8e512b738a2a)

**2. Copy the token**

On the **API Token** page, find the new row.

<ul>
  <li>Copy the value in the **Token** column across to **Sharing Key**.</li>
</ul>

![The API Token list with the new token value hidden and its Token cell highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-copy-token.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=0f6bd9a48a926e5592e68178ba046f9c)

## Find your MedAssist agent ID (optional)

The **MedAssist Agent ID** identifies your MedAssist agent. Only the MedAssist actions use it; leave it empty otherwise.

**1. Copy the agent ID**

Sign in to your [Eka Console account](https://console.eka.care/).

<ul>
  <li>In the sidebar, click **Agents**.</li>
  <li>Click your agent in the list.</li>
  <li>Copy the **MedAssist Agent ID** across. It is the ID shown under the agent name.</li>
</ul>

![An agent page with the agent ID under the agent name highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-agent-id.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=1e20080908b4aeab4bcaeb9d85c52df1)

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

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/ekacare/guides/webhook-setup.md)
>
> Configure receiving Events for Eka Care into StackOne.


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