## GET /v1/integrations/linear/teams

List the teams of the connected Linear workspace. Returns 404 when Linear is not connected.

Required permissions: read:integrations.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "organization_id": str,
  "teams": [
    {
      "id": str,
      "is_enabled": bool,
      "key": str,
      "name": str
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.integrations.linear.teams()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.integrations.linear.teams();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/integrations/linear/teams" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "organization_id": {
      "type": "string"
    },
    "teams": {
      "items": {
        "properties": {
          "id": {
            "type": "string"
          },
          "is_enabled": {
            "type": "boolean"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "is_enabled"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "organization_id",
    "teams"
  ],
  "type": "object"
}
```
