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

# Guru - How do I link my account?

# Overview

To authenticate with Guru, you will need:

1. **User/Collection ID** - The user or collection ID of your Guru account.
2. **User/Collection Token** - The user or collection token of your Guru account.

This guide will walk you through finding the **User/Collection ID** and generating your **User/Collection Token** within Guru.

### Prerequisites:

* You must have an account with Guru.

### Instructions:

#### Step 1: Finding your User/Collection ID

a. Finding your User ID

* Your **User ID** is the username you use to sign in to your account.

b. Finding your Collection ID

* You can obtain your **Collection ID** by perfoming a curl request with your **USER ID and Token** to get a [list of all collections](https://developer.getguru.com/reference/getv1collectionsgetcollections) on your team.

```
curl -u USER:TOKEN https://api.getguru.com/api/v1/collections -D -
```

* If your credentials are correct, you will receive a list of collections along with their IDs, which you can use as your Collection ID.

#### Step 2: Generating Your User/Collection token

* There are two types of tokens for using the Guru API: a `Collection token` (read-only), and a `User token` (read/write). This guide will demonstrate how to obtain both.

a. Generating your User token

1. Login to your [Guru](https://app.getguru.com/) account.
2. Navigate to the [Apps & Integrations](https://app.getguru.com/manage/integrations/apps) page under the **Manage** menu.

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/api_integrations.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=f6295eb27b7def87cafe8c17d1d766c4" width="3024" height="1428" data-path="integrations/all/guru/api_integrations.png" />

3. Click on the [API Access](https://app.getguru.com/settings/integrations/api-access) tab to manage your tokens.
4. Generate an API token for yourself by selecting **Generate User Token** and entering your name. You can also generate API tokens for your teammates by selecting **Generate a new user token**.

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/generate_user_token.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=b6351d38ff41cb94ff2290c7b6069ca9" width="3024" height="1428" data-path="integrations/all/guru/generate_user_token.png" />

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/api_token.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=3e1994eaf2a1b0e60d1837f4bc988196" width="1000" height="620" data-path="integrations/all/guru/api_token.png" />

4. You can reissue a token using the **circular arrow icon** on the right side of the dashboard next to the corresponding user. You can also revoke a user's token using the **trash can icon**.

b. Generating your Collection token

1. You can also generate Collection-based read-only tokens by selecting **Generate a New Collection Token** and then selecting your desired Collection from the dropdown.

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/generate_collection_token.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=0f0ccb6e57e52dfb3bca9c54e3a5844f" width="3024" height="346" data-path="integrations/all/guru/generate_collection_token.png" />

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/collection_token.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=07626c8412d981843304e36246480186" width="1000" height="620" data-path="integrations/all/guru/collection_token.png" />

#### Step 3: Enter credentials in the Connect UI

Once you have your **User/Collection ID** and **User/Collection Token**:

1. Open the form where you need to authenticate with Guru.
2. Enter the **User/Collection ID** and **User/Collection Token** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/yd3la1jeUGwiAtCR/integrations/all/guru/form.png?fit=max&auto=format&n=yd3la1jeUGwiAtCR&q=85&s=5f6addd52f61cfb2d7f6ae03b0509786" style={{maxWidth: "450px" }} width="998" height="1394" data-path="integrations/all/guru/form.png" />

You are now connected to Guru.
