> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parable.work/llms.txt
> Use this file to discover all available pages before exploring further.

# API Key

> Connect Parable to ActivTrak using an API key

export const platform_1 = "ActivTrak"

export const limit_0 = "varies by tier; implement backoff for 429 responses"

export const platform_0 = "ActivTrak"

export const role_0 = undefined

export const tokenName_0 = "API key"

<Tabs>
  <Tab title="Setup">
    <Card title="What You'll Need" icon="key">
      | Credential | What it is                               |
      | ---------- | ---------------------------------------- |
      | **Token**  | API token generated from ActivTrak admin |
    </Card>

    ## Overview

    Connect Parable to ActivTrak for workforce productivity analytics.

    <CardGroup cols={2}>
      <Card title="Activity" icon="chart-line">
        Working hours, app usage, activity
      </Card>

      <Card title="Productivity" icon="gauge">
        Productivity scores, benchmarks
      </Card>
    </CardGroup>

    ## Prerequisites

    <Info>
      **Setup access in {platform_0}.** These steps require **{role_0}**, or a colleague with equivalent permissions who can create credentials for you.

      If that is not you, ask your {platform_0} administrator.
    </Info>

    * **Admin** access to ActivTrak
    * Advanced Insights tier (for full API access)

    ## Setup Guide

    <Steps>
      <Step title="Access API Settings">
        1. Log in to ActivTrak
        2. Go to **Settings** → **Integrations**
        3. Navigate to **API** section
      </Step>

      <Step title="Generate API Key">
        1. Click **Generate API Key** or **Create New Key**
        2. Name: `Parable Integration`
        3. Copy the generated key

        <Warning>
          **Copy your {tokenName_0} now!**

          This is the only time it will be displayed. Store it in a secure password manager before closing this page.
        </Warning>
      </Step>

      <Step title="Enter values in the form">
        1. **API Key**: Paste your ActivTrak API key.
        2. Click **Save & test connection**.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Reference">
    ## Verify Your Setup

    <CodeGroup>
      ```bash Test Authentication theme={null}
      curl -H "x-api-key: YOUR_API_KEY" \
        "https://app.activtrak.com/api/v2/users"
      ```
    </CodeGroup>

    <Check>
      **Success!** If you received a `200 OK` response with valid data, your credentials are configured correctly. You can now proceed to configure this connector in Parable.
    </Check>

    <Tip>
      **Rate Limits:** {platform_1} enforces rate limits of **{limit_0}**.

      Parable handles rate limiting automatically with exponential backoff, but initial syncs of large datasets may take longer due to these limits.
    </Tip>

    ## Troubleshooting

    | Error              | Meaning               | Solution                |
    | ------------------ | --------------------- | ----------------------- |
    | `401 Unauthorized` | Invalid API key       | Verify key is correct   |
    | `403 Forbidden`    | Feature not available | Check subscription tier |

    ## Additional Resources

    <CardGroup cols={2}>
      <Card title="ActivTrak API" icon="book" href="https://support.activtrak.com/hc/en-us/articles/360039987751-ActivConnect-API-Documentation-Setup-Guide">
        Official API documentation
      </Card>
    </CardGroup>
  </Tab>
</Tabs>
