# Letterbook

> Create and read support conversations, add private notes, and remove team members.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/letterbook

## Actions

### Add note

Add note.

**Inputs**

- Conversation (`conversation_id`, text, required): Conversation ID.
- Author email (`author_email`, text, required): Author email.
- Content (`content`, text, required): Content.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "author": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "content": "example",
    "conversation_id": "example",
    "created_at": "example",
    "id": "example"
  }
}
```

### Create conversation

Create conversation.

**Inputs**

- Customer email (`customer_email`, text, required): Customer email.
- Message (`message`, text, required): Message.
- Customer name (`customer_name`, text): Customer name.
- Subject (`subject`, text): Subject.
- Message html (`message_html`, text): Message html.
- Priority (`priority`, text): Priority. One of: `low`, `medium`, `high`, `urgent`.
- Assignee email (`assignee_email`, text): Assignee email.
- External ID (`external_id`, text): Use the same key when retrying the same operation.
- Metadata (`metadata`, object): Metadata.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "display_id": 1,
    "id": "example",
    "status": "example",
    "url": "example"
  }
}
```

### Delete team member

Delete team member.

**Inputs**

- Member ID (`member_id`, text, required): Member ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "api_keys_revoked": 1,
    "status": "example"
  }
}
```

### Get conversation

Get conversation.

**Inputs**

- Conversation (`conversation_id`, text, required): Conversation ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "contact": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "created_at": "example",
    "display_id": 1,
    "id": "example",
    "last_message_at": "example",
    "messages": [],
    "priority": "example",
    "source": "example",
    "status": "example",
    "subject": "example",
    "updated_at": "example"
  }
}
```

### List conversations

List conversations.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Status (`status`, text): Status. One of: `open`, `pending`, `on_hold` (On hold), `resolved`, `spam`, `trash`.
- Priority (`priority`, text): Priority. One of: `low`, `medium`, `high`, `urgent`.
- Source (`source`, text): Source. One of: `discord`, `email`, `portal`, `webhook`.
- Inbox email (`inbox_email`, text): Inbox email.
- Has first response (`has_first_response`, true/false): Has first response.
- Search (`search`, text): Search.
- Contact email (`contact_email`, text): Contact email.
- Sort (`sort`, text): Sort. One of: `recency`, `oldest`, `priority`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_next_page": false,
      "has_previous_page": false,
      "page": 1,
      "page_size": 1
    }
  }
}
```
