> ## 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 Client Credentials – StackOne Hub

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

## Creating API credentials

An API credential (a Client ID and Client Secret) lets StackOne request short-lived access tokens for your Eka workspace.

**1. Sign in to Eka Console**

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

<ul>
  <li>Choose the sign-in method you use, such as **Continue with Email**.</li>
</ul>

![The Login to Eka Care page with the sign-in options highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-sign-in.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=7a5ce4c06cd62dc700bf69ceb7a5decd)

**2. Open API credentials**

On the **Dashboard**, under **Quick Actions**, click **Manage API Credentials ( Client IDs and Secrets )**.

![The Eka Console dashboard with Manage API Credentials highlighted under Quick Actions](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-quick-actions.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=f96296bbdd33d3003a0abc581a60c2cb)

**3. Start a new credential**

On the **API Credentials** page, click **Create**.

![The API Credentials page with the Create button highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-setup-api-credentials.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=1101d91e7bac26ad4eafe96f4ca9ee24)

**4. Name the credential**

In **Create Client ID and Client Secret**, enter a **Name** and click **Create**.

<ul>
  <li>Name: any name you prefer, for example `StackOne Integration`</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)

**5. Copy the Client Secret**

In **Client Secret Created**, click **Copy to Clipboard** and paste the value into the **Client Secret** field in StackOne Hub.

<ul>
  <li>The Client Secret is only displayed once and cannot be retrieved later. Store it securely for use later.</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)

**6. Copy the Client ID**

Back on **API Credentials**, copy the **Client ID** of your new credential and paste it into the **Client ID** field in StackOne Hub.

<ul>
  <li>Format: `EC_` followed by digits</li>
  <li>Example: `EC_178843954824934`</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; leave the field empty to use your own workspace.

**1. Sign in to Eka Hub**

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

<ul>
  <li>In the sidebar, open **Utilities** and click **API Token**.</li>
</ul>

![The Eka Hub sidebar with Utilities and API Token highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-utilities-api-token.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=20782991b03b404ee0f4298460197c67)

**2. Create a new token**

On the **API Token** page, click **Create New**.

![The API Token page with the Create New button highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-create-new.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=a23b85bc5632073d65fde77f7ebe6002)

**3. Name the token**

In **Create APIToken**, fill in **Name:** and **Description:**, then click **Save**.

<ul>
  <li>Name: any name you prefer, for example `StackOne Integration`</li>
  <li>Description: any short description, for example `Integration with StackOne`</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)

**4. Copy the token**

Copy the value in the **Token** column of the new row and paste it into the **Sharing Key** field in StackOne Hub.

<ul>
  <li>Treat the token as a secret and store it securely for use later.</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. Open your agent**

In the [Eka Console](https://console.eka.care/) sidebar, click **Agents**, then click your agent in the list.

![The Agents page with the Agents menu item and an agent row highlighted](https://mintcdn.com/stackone-60/2aitSsNAQhtZqow7/connectors/ekacare/images/oauth2-config-agents.png?fit=max\&auto=format\&n=2aitSsNAQhtZqow7\&q=85\&s=e66684e5778e3ae7180168621ac4565c)

**2. Copy the agent ID**

Copy the ID shown under the agent name and paste it into the **MedAssist Agent ID** field in StackOne Hub.

<ul>
  <li>Format: a Base64 string that ends in `=`</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/connect/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.