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

# SDK quickstart

> Install the official TypeScript or Python SDK and make your first API request.

Create a [read-scoped API key](https://docs.userintuition.ai/api-reference/introduction.md#api-keys-recommended)
and set `USERINTUITION_API_KEY` in your server environment. The client uses the
key's default organization. To select another workspace, pass its ID as
`uiOrganizationId` in TypeScript or `ui_organization_id` in Python.

> [tab] TypeScript
>
> Install [@userintuition-ai/sdk](https://www.npmjs.com/package/@userintuition-ai/sdk).
>
> ```bash theme={null}
> npm install @userintuition-ai/sdk
> ```
>
> ```typescript theme={null}
> import { UserIntuitionClient } from "@userintuition-ai/sdk";
>
> const token = process.env.USERINTUITION_API_KEY;
> if (!token) throw new Error("Set USERINTUITION_API_KEY");
>
> const client = new UserIntuitionClient({ token });
> const page = await client.publicStudies.listStudies({ page_size: 10 });
> console.log(page);
> ```

> [tab] Python
>
> Install [userintuition](https://pypi.org/project/userintuition/).
>
> ```bash theme={null}
> python -m pip install userintuition
> ```
>
> ```python theme={null}
> import os
>
> from userintuition import UserIntuitionClient
>
> client = UserIntuitionClient(token=os.environ["USERINTUITION_API_KEY"])
> page = client.public_studies.list_studies(page_size=10)
> print(page)
> ```

SDK updates are generated from the [public OpenAPI specification](https://docs.userintuition.ai/api-reference/openapi.json).
Check the [API changelog](https://docs.userintuition.ai/api-reference/changelog.md) for API changes and the
package registry for available SDK versions. For an operation that isn't in your
installed SDK, call its REST endpoint directly from the API reference.


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