> ## 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 7shifts with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a 7shifts account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using 7shifts actions.

## Have the customer grant your client access

A company administrator on the customer's account must authorize your OAuth client before you can call the API on their behalf.

**1. Generate the grant link for the customer administrator**

Send them to `https://app.7shifts.com/generate_token?client_id={CLIENT_ID}`, using the Client ID from this connector profile. Surfacing this link on your own Integrations or Marketplace page is the usual approach.

**2. Review what the administrator sees**

They sign in to 7shifts, choose which company to grant access to if they administer several, review your company name and logo, and approve.

**3. Copy the company GUID**

On approval 7shifts creates a grant GUID. With a redirect URL configured on your client, the administrator is redirected to it with `guid` and `company_id` attached. Without one, they see a page showing the GUID and send it to you.

<ul>
  <li>An administrator can also retrieve it later under **Company settings** > **Developer Tools** > **Connected Apps**, via "Copy the GUID to the clipboard".</li>
</ul>

## Fill in this account

Both values identify the single customer company this account reads and writes.

<ul>
  <li>**Company GUID** — from the grant, sent on every request as `x-company-guid`.</li>
  <li>**Company ID** — the numeric company id, used in endpoint paths.</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).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/7shifts/guides/webhook-setup.md)
>
> Configure receiving Events for 7shifts into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.