> ## 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 Belina with Username & Password – StackOne Hub

> Link a Belina account in the StackOne Hub using Username & Password. End-user guide to authorize the integration and start using Belina actions.

## Request API access from Belina

Belina turns the API on per client. Once your organization is registered, Belina emails a client code that identifies it on every request, so start here if you have not received one.

**1. Register your organization for the Belina API**

Contact Belina through the [Belina contact page](https://www.belinapayroll.com/contact.html), or email `sales@belinamail.com`, and ask for your organization to be signed up for the Belina API. There is no self-service sign-up.

**2. Find the client code in your confirmation email**

Belina shares the code in the initial confirmation email it sends once your organization has been signed up for the Belina API. It is the same code for everyone at your organization.

## Set up the Belina user the connector signs in as

The connector signs in as one of your Belina users, and Belina checks that user's own permissions on every request. Pick an existing user or create one in Belina Payroll under **Setup** - **Security** - **Users**.

**1. Create or choose the user**

Open **Setup** - **Security** - **Users**, then click **Insert** to add a user, or **Change** to amend an existing one. On the **Password** tab, set the user's details.

<ul>
  <li>**Login Name**: a short name identifying the user, which is the value you enter as the Username</li>
  <li>**Full Name**: the full name of the user</li>
  <li>**Password**: the password you enter alongside it</li>
  <li>**Warning**: leave **User must change password at next logon** clear and **Password expires every** unset for this user. Belina exchanges the login for an access token on every sync, so a password this user is forced to change stops the connection working until it is updated here.</li>
</ul>

**2. Grant the user access to the payrolls you want to read**

On the **Account** tab, tick **Apply Group Security** and the group that applies if the user belongs to one, and leave **Account is disabled** clear. On the **User Payrolls** tab, leave the list empty to give the user access to every payroll in the system, or insert only the payrolls the connector should read.

<ul>
  <li>**Note**: **Limit Processing** on the same tab narrows the user further, to particular departments, `Cost Centres`, paypoints and employee master fields. Anything you exclude here is also hidden from the connector.</li>
</ul>

**3. Check the group and area permissions cover what you need**

Belina resolves this user's permissions per record type, so a user who cannot reach leave, loans, time control or payroll transactions in Belina Payroll cannot read them through the API either. Review them under **Setup** - **Security** - **Usergroups** and **Setup** - **Security** - **Areas**.

<ul>
  <li>Under **Usergroups**, the **Payrolls** tab moves each payroll into **Accessible Payrolls** with the **Add >>** button.</li>
  <li>Under **Areas**, the **Transactions Codes** tab starts every transaction code at security level 0, so raise the level on each code whose transaction data you want to read.</li>
</ul>

## Enter your Belina credentials

Three values connect the account: the client code Belina emailed your organization, and the login of the Belina user.

**1. Enter the client code and the user login**

Take the client code from Belina's confirmation email and the login from the Belina user you set up.

<ul>
  <li>**Client Code**: the code from Belina's confirmation email, which looks like `BEL0001`</li>
  <li>**Username**: the **Login Name** of the Belina user</li>
  <li>**Password**: the password for that same Belina user</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.