# linear Provider

Manage [Linear](https://linear.app) workspace configuration — teams, labels, workflow states, views, git automation, webhooks and workspace settings — as code. An API key is scoped to a single workspace, so managing several workspaces needs one aliased provider per workspace.

## Example Usage

```terraform
terraform {
  required_providers {
    linear = {
      source = "kirchdev/linear"
    }
  }
}

variable "linear_token" {
  type      = string
  sensitive = true
}

# A Linear API key is scoped to a single workspace, so managing several
# workspaces means one aliased provider per workspace.
provider "linear" {
  token = var.linear_token
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `endpoint` (String) URL of the Linear GraphQL API. Defaults to `https://api.linear.app/graphql`. May also be set via `LINEAR_ENDPOINT` (mainly for testing).
- `token` (String, Sensitive) Linear API key. Sent verbatim as the `Authorization` header — Linear expects a personal API key **without** a `Bearer` prefix. The key is workspace-scoped. May also be set via the `LINEAR_TOKEN` environment variable.