> ## 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 Eurecia with API Key – StackOne Hub

> Link a Eurecia account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Eurecia actions.

> [!WARNING]
>
> Generating an API token requires access to the Eurécia admin area (Espace admin). If the API (web-services) section is not shown, contact Eurécia support to activate the feature.

## Generating an API token

The API Token is a persistent token that identifies the Eurécia user the integration acts as. Requests run with the rights of that user, so generate it for a user with enough rights for the data you want to sync. The Eurécia interface is in French; labels below are shown as they appear in the app.

**1. Sign in to Eurécia**

Sign in to your [Eurécia account](https://www.eurecia.com/login).

<ul>
  <li>Open the admin area (**Espace admin**).</li>
</ul>

**2. Open the employee sheet**

Navigate to **Salariés & Utilisateurs** > **Fiche salarié** and open the employee sheet of the user the integration will act as.

<ul>
  <li>Open the **Administration** tab.</li>
</ul>

**3. Generate and save the token**

In the **API (web-services)** section, click the icon to generate a new token.

<ul>
  <li>Click **Valider**, then save the employee sheet.</li>
  <li>Copy the generated token and store it securely for use later.</li>
  <li>Paste it into the **API Token** field in StackOne Hub.</li>
</ul>

## Using a user profile token instead

Instead of a token for one user, you can generate a token for a user profile, so requests run with the rights of that profile.

<ul>
  <li>Navigate to **Espace admin** > **Paramètres généraux** > **Fiche société** and open the **Paramètres** tab.</li>
  <li>In the **API** section, click the icon to generate a new token and select the user profile that will connect to the API with it.</li>
  <li>Click **valider la ligne**, then save the page.</li>
  <li>At least one existing user must be attached to the selected user profile.</li>
  <li>Paste the token into the **API Token** field in StackOne Hub.</li>
</ul>

## Avoiding an authentication block

Eurécia temporarily blocks your IP address after several requests with an invalid token.

<ul>
  <li>After several invalid authentication attempts within 15 minutes, all authentication requests from that IP address are rejected for 60 minutes, including ones with a valid token.</li>
  <li>Double-check the token before connecting the account.</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/connect/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.