# Twist

> Read workspaces, channels, threads, comments, and messages in Twist.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/twist

## Actions

### Get channel

Read one channel’s details.

**Inputs**

- Channel (`channel`, number, required): Use the channel ID from List channels. From 1 to 9007199254740991.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example"
  }
}
```

### Get comment

Read one thread comment.

**Inputs**

- Comment (`comment`, number, required): Use the comment ID from List comments. From 1 to 9007199254740991.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": 1
  }
}
```

### Get current user

Read the Twist account that approved this connection.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example"
  }
}
```

### Get default workspace

Read your default Twist workspace.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example"
  }
}
```

### Get thread

Read the details of a thread.

**Inputs**

- Thread (`thread`, number, required): Use the thread ID from List threads. From 1 to 9007199254740991.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": 1,
    "title": "example"
  }
}
```

### Get workspace

Read the details for one workspace.

**Inputs**

- Workspace (`workspace`, number, required): Choose the workspace. From 1 to 9007199254740991.

**Outputs**

- `data` (object): The response from Twist.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example"
  }
}
```

### List channels

Show channels you can access in a workspace.

**Inputs**

- Workspace (`workspace`, number, required): Choose the workspace. From 1 to 9007199254740991.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}
```

### List comments

Show comments in a thread.

**Inputs**

- Thread (`thread`, number, required): Use the thread ID from List threads. From 1 to 9007199254740991.
- Limit (`limit`, number): Set the number of results to return. From 1 to 500.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "content": "example",
      "id": 1
    }
  ]
}
```

### List conversation messages

Show the messages in a conversation.

**Inputs**

- Conversation (`conversation`, number, required): Use the conversation ID from List conversations. From 1 to 9007199254740991.
- Limit (`limit`, number): Set the number of results to return. From 1 to 500.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "content": "example",
      "id": 1
    }
  ]
}
```

### List conversations

Show your conversations in one workspace.

**Inputs**

- Workspace (`workspace`, number, required): Choose the workspace. From 1 to 9007199254740991.
- Limit (`limit`, number): Set the number of results to return. From 1 to 500.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "id": 1
    }
  ]
}
```

### List public channels

Find public channels in a workspace.

**Inputs**

- Workspace (`workspace`, number, required): Choose the workspace. From 1 to 9007199254740991.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}
```

### List threads

Show threads in a channel and optionally filter by date.

**Inputs**

- Channel (`channel`, number, required): Use the channel ID from List channels. From 1 to 9007199254740991.
- Limit (`limit`, number): Set the number of results to return. From 1 to 500.
- Newer than (`newer_than`, date and time): Only return threads created after this date and time.
- Older than (`older_than`, date and time): Only return threads created before this date and time.
- Before ID (`before_id`, number): Continue paging before this thread ID. From 1 to 9007199254740991.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "content": "example",
      "id": 1,
      "title": "example"
    }
  ]
}
```

### List workspace users

Show the people in one workspace.

**Inputs**

- Workspace (`workspace`, number, required): Choose the workspace. From 1 to 9007199254740991.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}
```

### List workspaces

Show workspaces you can access.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Twist.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}
```
