> ## 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 Token

> Connect Parable to Lattice using an API key

export const platform_1 = "Lattice"

export const limit_0 = "rate limits apply; monitor response headers"

export const platform_0 = "Lattice"

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                            |
      | ------------- | ------------------------------------- |
      | **API Token** | API token from Lattice admin settings |
    </Card>

    ## Overview

    Connect Parable to Lattice for people performance and management data.

    <CardGroup cols={2}>
      <Card title="People" icon="users">
        Employee profiles, org structure
      </Card>

      <Card title="Performance" icon="chart-line">
        Goals, reviews, feedback
      </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** role in Lattice
    * API access enabled for your account

    ## Setup Guide

    <Steps>
      <Step title="Access Admin Settings">
        1. Log in to Lattice as admin
        2. Go to **Admin** → **Platform** → **API Keys**
      </Step>

      <Step title="Generate API Key">
        1. Click **Generate API key**
        2. Name: `Parable Integration`
        3. Select permissions as needed
        4. Click **Create**

        <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 Lattice API key.
        2. Click **Save & test connection**.
      </Step>
    </Steps>
  </Tab>

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

    <CodeGroup>
      ```bash Test Authentication theme={null}
      curl -H "Authorization: Bearer YOUR_API_KEY" \
        "https://api.latticehq.com/v1/users?per_page=5"
      ```
    </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`    | Insufficient permissions | Check API key permissions |

    ## Additional Resources

    <CardGroup cols={2}>
      <Card title="Lattice API" icon="book" href="https://developers.lattice.com/">
        Official API documentation
      </Card>
    </CardGroup>
  </Tab>
</Tabs>
