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

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

> [!WARNING]
>
> Service Accounts are available on Tulip Professional plans and above, and are created by an account or workspace administrator.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Find your Instance and Workspace ID

Your **Instance** is the subdomain of the address you use to sign in to Tulip.

<ul>
  <li>Format: `https://{instance}.tulip.co`</li>
  <li>Example: if your address is `https://acme.tulip.co`, your Instance is `acme`</li>
  <li>Enter it in the **Instance** field when you connect your account.</li>
  <li>The **Workspace ID** is the part of a workspace address after `/w/`. The first workspace of every instance is `DEFAULT`.</li>
  <li>Example: if your address is `https://acme.tulip.co/w/DEFAULT`, your Workspace ID is `DEFAULT`</li>
  <li>Enter the **Workspace ID** only when you use an account-level Service Account, created from **Account Settings**. A Service Account created from **Workspace Settings** already belongs to one workspace, so leave the field empty.</li>
</ul>

## Creating a Service Account

Each Tulip Service Account has an **API Key** and a **Secret**. Service Accounts were called **API Tokens** before Tulip release r383.

**1. Open the Service Account settings**

Sign in to your Tulip instance, then open **Settings** in the top right.

<ul>
  <li>Choose **Account Settings** for a Service Account that works in every workspace.</li>
  <li>Choose **Workspace Settings** for a Service Account that works in one workspace.</li>
</ul>

**2. Create the Service Account**

Enables actions: Archive Interface, Archive Station, Archive Station Group, Assign Interface To Station, Count Records Of A Tulip Table, Create A Table Link Relationship, Create A Tulip Table, Create A Tulip Table Aggregation, Create A Tulip Table Query, Create A Tulip Table Record, Create A User, Create Interface, Create Station, Create Station App Assignment, Create Station Group, Create Station Group App Assignment, Delete A Record From A Tulip Table, Delete A Tulip Table Query From A Tulip Table, Delete All Records Of A Tulip Table, Delete All Station App Assignments, Delete All Station Group App Assignments, Delete An Aggregation From A Tulip Table, Delete Station App Assignment, Delete Station Group App Assignment, Fetch Link Information, Generate Machine Activity Archive. Returned Object Contains Id Necessary For Later Retrieval, Get Interface, Get Station, Get Station Group, Get User, Get User Group, Get User Role, Increment Or Decrement A Field In A Tulip Table Record, Link Records, List Aggregations Of A Tulip Table, List Interfaces, List Queries For A Tulip Table, List Records Of A Tulip Table, List Station App Assignments, List Station Group App Assignments, List Station Groups, List Stations, List Tulip App Groups And The Apps They Contain, List Tulip Machine Types And Their Corresponding Machines, List Tulip Tables, List User Group Users, List User Groups, List User Roles, List User User Groups, List Users, Look Up A Record Of A Tulip Table, Look Up A Table Query For A Tulip Table By Id, Look Up A Tulip Table, Look Up An Aggregation Of A Tulip Table, Report New Values For Machine Attributes, Retrieve Machine Activity Archive Status. Returned Object Contains Status And Related Information, Run An Aggregate Function (e.g. Average, Mode) On A Table's Field, Sign Cloud Storage URLs, Unassign Interface From Station, Unlink Records, Update A Query Of A Tulip Table, Update A Record Of A Tulip Table, Update A Tulip Table, Update An Aggregation Of A Tulip Table, Update Interface, Update Station, Update Station App Assignment, Update Station Group, Update Station Group App Assignment, Update Station Group Stations, Update The Column Labels For Link, Write Machine Attribute

Create a **Service Account** and fill in its details.

<ul>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Scopes**: the scopes for the actions you plan to use</li>
  <li>Click **Create**.</li>
</ul>

<ul>
  <li>
    tables:read
  </li>

  <li>
    tables:write
  </li>

  <li>
    table-queries:read
  </li>

  <li>
    table-queries:write
  </li>

  <li>
    stations:read
  </li>

  <li>
    stations:write
  </li>

  <li>
    users:read
  </li>

  <li>
    users:write
  </li>

  <li>
    machines:read
  </li>

  <li>
    machines:write
  </li>

  <li>
    attributes:report
  </li>

  <li>
    attributes:write
  </li>

  <li>
    apps:read
  </li>

  <li>
    urls:sign
  </li>
</ul>

**3. Copy the credentials**

Tulip shows the **API Key** and **Secret** of the new Service Account.

<ul>
  <li>Copy the **API Key** value and paste it into the **API Key** field when you connect your account.</li>
  <li>Copy the **Secret** value and paste it into the **API Secret** field when you connect your account.</li>
  <li>The **Secret** is only displayed once and cannot be retrieved later. If you lose it, create a new Service 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/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.