# Linear

### Generate an API key

First, you'll need to generate a Linear API key.&#x20;

1. Navigate to [Security & access](https://linear.app/settings/account/security) in your Linear settings, then in the "Personal API keys" section, click **New API key**.
2. Provide a name for your key (eg. "Violet integration"), then confirm **Read** and **Write** permission&#x73;**.**
   1. You can also keep this set to the default Full Access - Violet does not access any admin-only features.
3. \[Optional] Select specific teams that should be accessible by this key.
4. Click **Create**, and copy the key that appears. Note, you won't be able to access this key again (but you can always create another one).

<figure><img src="/files/z8nCHPHpU5xbPT3NxZuf" alt="" width="375"><figcaption></figcaption></figure>

### **Connect Linear in Violet**

1. In [Violet](https://app.violetlabs.com/) (or [VioletGov](https://app.violetgov.com/)), navigate to **Integrations** and click  <img src="/files/IS4aq5Ad1Nr6RFUu4LLg" alt="" data-size="line"> to add a new integration.&#x20;
2. Select <img src="/files/pas1GWrfurWNZxanjQTe" alt="" data-size="line"> **Linear**

\[Optional] You can also provide a unique name for the connection based on the credentials you're using, and you can create **restricted permissions** to users or groups:

<figure><img src="/files/SpT8vIwBwWHZWTDqTFdP" alt="" width="375"><figcaption></figcaption></figure>

3. Enter your API Key and click **Connect**
4. Once connected, configure your integration (optional), then click **Create.** You're done!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.violetlabs.com/apps/l/linear.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
