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

# OAuth Install URL

> Get the OAuth URL to install the Linear integration.

Returns the Linear OAuth authorization URL for the managed Runtime app. After the user authorizes on Linear, they are redirected back to complete the integration setup.

Requires org admin role.

**Required scope:** `integrations:write`

> [!NOTE]
>
> Requires organization context via the `X-Organization-Id` header.

**X-Organization-Id** `string` *required*

The organization to install the integration for.

**dev\_proxy\_url** `string`

Optional. Dev server URL for OAuth proxy redirect during local development.

**url** `string` *required*

Linear OAuth authorization URL. Redirect the user here.

```bash cURL theme={null}
curl "https://app.runtm.com/api/v1/linear/oauth/install-url" \
  -H "Authorization: Bearer runtm_xxx" \
  -H "X-Organization-Id: org_abc123"
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://app.runtm.com/api/v1/linear/oauth/install-url",
    headers={
        "Authorization": "Bearer runtm_xxx",
        "X-Organization-Id": "org_abc123",
    },
)
data = resp.json()
print(f"Redirect user to: {data['url']}")
```

```javascript JavaScript theme={null}
const resp = await fetch(
  "https://app.runtm.com/api/v1/linear/oauth/install-url",
  {
    headers: {
      Authorization: "Bearer runtm_xxx",
      "X-Organization-Id": "org_abc123",
    },
  }
);
const data = await resp.json();
```

```json 200 theme={null}
{
  "url": "https://linear.app/oauth/authorize?client_id=xxx&redirect_uri=...&response_type=code&scope=read,write,issues:create,app:assignable,app:mentionable&state=..."
}
```


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