> ## 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 Particle Health with OAuth 2.0 Client Credentials

> Link your Particle Health account in the StackOne Hub with OAuth 2.0 Client Credentials, then use its actions in StackOne.

## Get your service account credentials

Particle authenticates every call with a JSON Web Token generated from a service account client ID and client secret.

**1. Request credentials**

Ask your Particle Health representative to create a service account and issue a client ID and client secret, or create them yourself with the Management API.

<ul>
  <li>Use a service account with the **project.owner** or **project.user** role to call the patient data APIs.</li>
  <li>An **organization.owner** service account can call only the Management API.</li>
</ul>

**2. Copy the client ID and client secret**

Particle shows the client secret only once, so store it securely.

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

## Find your project ID

Patient data calls are made on behalf of one project, and the token is scoped to that project only.

**1. Copy the project ID**

The project ID is the UUID in the project resource name `projects/{project_id}`, returned as `name` by the Management API Projects endpoints or provided by your Particle Health representative.

<ul>
  <li>Example: for `projects/8a1d4c2e-5f6b-4a7c-9d0e-1f2a3b4c5d6e`, the **Project ID** is `8a1d4c2e-5f6b-4a7c-9d0e-1f2a3b4c5d6e`</li>
  <li>Leave it blank only when connecting an organization.owner service account for Management API use.</li>
</ul>

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