# Lark

> Work with Lark chats, messages, documents, Drive files and Base records.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/lark

## Actions

### Create chat

Create chat.

**Inputs**

- Name (`name`, text, required): Name.
- Description (`description`, text): Description.
- Chat mode (`chat_mode`, text): Chat mode. One of: `group`, `topic`.
- Chat type (`chat_type`, text): Chat type. One of: `private`, `public`.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Create document

Create document.

**Inputs**

- Title (`title`, text): Title.
- Folder token (`folder_token`, text): Folder token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Create folder

Create folder.

**Inputs**

- Name (`name`, text, required): Name.
- Folder token (`folder_token`, text, required): Folder token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Create record

Create record.

**Inputs**

- App token (`app_token`, text, required): App token.
- Table (`table_id`, text, required): Table id.
- Fields (`fields`, object, required): Fields.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Create table

Create table.

**Inputs**

- App token (`app_token`, text, required): App token.
- Name (`name`, text, required): Name.
- Default view name (`default_view_name`, text): Default view name.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Delete message

Delete message.

**Inputs**

- Message id (`message_id`, text, required): Message id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get chat

Get chat.

**Inputs**

- Chat (`chat_id`, text, required): Chat id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get document

Get document.

**Inputs**

- Document id (`document_id`, text, required): Document id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get document text

Get document text.

**Inputs**

- Document id (`document_id`, text, required): Document id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Get message

Get message.

**Inputs**

- Message id (`message_id`, text, required): Message id.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List chat members

List chat members.

**Inputs**

- Chat (`chat_id`, text, required): Chat id.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List chats

List chats.

**Inputs**

- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List document blocks

List document blocks.

**Inputs**

- Document id (`document_id`, text, required): Document id.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List files

List files.

**Inputs**

- Folder token (`folder_token`, text): Folder token.
- Order by (`order_by`, text): Order by. One of: `EditedTime`, `CreatedTime`.
- Direction (`direction`, text): Direction. One of: `ASC`, `DESC`.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List messages

List messages.

**Inputs**

- Chat (`chat_id`, text, required): Chat id.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Sort type (`sort_type`, text): Sort type. One of: `ByCreateTimeAsc`, `ByCreateTimeDesc`.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List records

List records.

**Inputs**

- App token (`app_token`, text, required): App token.
- Table (`table_id`, text, required): Table id.
- View id (`view_id`, text): View id.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### List tables

List tables.

**Inputs**

- App token (`app_token`, text, required): App token.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Page token (`page_token`, text): Page token.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Reply message

Reply message.

**Inputs**

- Message id (`message_id`, text, required): Message id.
- Text (`text`, text, required): Text.
- Reply in thread (`reply_in_thread`, true/false): Reply in thread.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Send message

Send message.

**Inputs**

- Receive id (`receive_id`, text, required): Receive id.
- Receive id type (`receive_id_type`, text, required): Receive id type. One of: `open_id` (Open id), `user_id` (User id), `union_id` (Union id), `email`, `chat_id` (Chat id).
- Text (`text`, text, required): Text.
- Uuid (`uuid`, text): Uuid.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```

### Update record

Update record.

**Inputs**

- App token (`app_token`, text, required): App token.
- Table (`table_id`, text, required): Table id.
- Record id (`record_id`, text, required): Record id.
- Fields (`fields`, object, required): Fields.

**Outputs**

- `data` (object): Service response.

**Example output**

```json
{
  "data": {}
}
```
