# Heartbeat

> Read community members, channels, discussions and events in Heartbeat.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/heartbeat

## Actions

### Create channel category

Create channel category.

**Inputs**

- Name (`name`, text, required): Name.

**Outputs**

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

**Example output**

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

### Create comment

Create comment.

**Inputs**

- Text (`text`, text, required): Text.
- Thread ID (`thread_id`, text, required): Thread id.
- Parent comment ID (`parent_comment_id`, text, required): Parent comment id.
- Member (`member_id`, text): Member id.
- Created at (`created_at`, date and time): Created at.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "children": [
      {
        "content": "example",
        "createdAt": "example",
        "files": [
          "example"
        ],
        "id": "example",
        "images": [
          "example"
        ],
        "reactions": {},
        "userID": "example"
      }
    ],
    "content": "example",
    "createdAt": "example",
    "files": [
      "example"
    ],
    "id": "example",
    "images": [
      "example"
    ],
    "reactions": {},
    "userID": "example"
  }
}
```

### Create lead

Create lead.

**Inputs**

- Email (`email`, text, required): Email.
- Name (`name`, text): Name.
- Custom fields (`custom_fields`, object): Custom fields.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "leadID": "example",
    "result": "CREATED"
  }
}
```

### Create thread

Create thread.

**Inputs**

- Text (`text`, text, required): Text.
- Channel (`channel_id`, text, required): Channel id.
- Member (`member_id`, text): Member id.
- Embeds (`embeds`, list): Embeds.
- Created at (`created_at`, date and time): Created at.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "channelID": "example",
    "comments": [
      {
        "children": [
          {}
        ],
        "content": "example",
        "createdAt": "example",
        "files": [
          "example"
        ],
        "id": "example",
        "images": [
          "example"
        ],
        "reactions": {},
        "userID": "example"
      }
    ],
    "content": "example",
    "createdAt": "example",
    "files": [
      "example"
    ],
    "id": "example",
    "reactions": {},
    "url": "example",
    "userID": "example"
  }
}
```

### Find member by email

Find member by email.

**Inputs**

- Email (`email`, text, required): Email.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "avatar": "example",
      "bio": "example",
      "customFields": {},
      "email": "example",
      "firstName": "example",
      "groups": [
        {}
      ],
      "id": "example",
      "isAdmin": true,
      "lastLogin": "example",
      "lastName": "example",
      "linkedInData": {
        "company": "example",
        "description": "example",
        "headline": "example",
        "jobs": [
          {}
        ],
        "location": "example",
        "profileUrl": "example",
        "schools": [
          {}
        ],
        "skills": [
          "example"
        ]
      },
      "linkedInSummary": "example",
      "name": "example",
      "onboardingResponses": [
        {}
      ],
      "role": "example",
      "socialLinks": {
        "calendar": "example",
        "community": "example",
        "instagram": "example",
        "linkedin": "example",
        "personalWebsite": "example",
        "twitter": "example"
      }
    }
  ]
}
```

### Get event

Get event.

**Inputs**

- Event (`event_id`, text, required): Event id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "coverImage": "example",
    "createdAt": "example",
    "createdBy": "example",
    "description": "example",
    "endTime": "example",
    "id": "example",
    "invitedGroups": [
      "example"
    ],
    "invitedUsers": [
      "example"
    ],
    "name": "example",
    "recurring": true,
    "startTime": "example"
  }
}
```

### Get member

Get member.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "avatar": "example",
    "bio": "example",
    "customFields": {},
    "email": "example",
    "firstName": "example",
    "groups": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "isAdmin": true,
    "lastLogin": "example",
    "lastName": "example",
    "linkedInData": {
      "company": "example",
      "description": "example",
      "headline": "example",
      "jobs": [
        {}
      ],
      "location": "example",
      "profileUrl": "example",
      "schools": [
        {}
      ],
      "skills": [
        "example"
      ]
    },
    "linkedInSummary": "example",
    "name": "example",
    "onboardingResponses": [
      {
        "answer": "example",
        "isPrivate": true,
        "question": "example"
      }
    ],
    "role": "example",
    "socialLinks": {
      "calendar": "example",
      "community": "example",
      "instagram": "example",
      "linkedin": "example",
      "personalWebsite": "example",
      "twitter": "example"
    }
  }
}
```

### Get thread

Get thread.

**Inputs**

- Thread ID (`thread_id`, text, required): Thread id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "channelID": "example",
    "comments": [
      {
        "children": [
          {}
        ],
        "content": "example",
        "createdAt": "example",
        "files": [
          "example"
        ],
        "id": "example",
        "images": [
          "example"
        ],
        "reactions": {},
        "userID": "example"
      }
    ],
    "content": "example",
    "createdAt": "example",
    "files": [
      "example"
    ],
    "id": "example",
    "reactions": {},
    "url": "example",
    "userID": "example"
  }
}
```

### List channel categories

List channel categories.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List channel threads

List channel threads.

**Inputs**

- Channel (`channel_id`, text, required): Channel id.
- Starting after (`starting_after`, text): Starting after.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "channelID": "example",
      "comments": [
        {}
      ],
      "content": "example",
      "createdAt": "example",
      "files": [
        "example"
      ],
      "id": "example",
      "reactions": {},
      "url": "example",
      "userID": "example"
    }
  ]
}
```

### List channels

List channels.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "emoji": "example",
      "id": "example",
      "isDraft": true,
      "name": "example",
      "type": "POSTS"
    }
  ]
}
```

### List completed lessons

List completed lessons.

**Inputs**

- Member (`member_id`, text, required): Member id.
- Starting after (`starting_after`, text): Starting after.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "completedAt": "example",
      "lessonID": "example"
    }
  ]
}
```

### List custom fields

List custom fields.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "key": "example",
      "label": "example",
      "options": [
        {}
      ],
      "type": "SHORT_TEXT"
    }
  ]
}
```

### List event attendance

List event attendance.

**Inputs**

- Event (`event_id`, text, required): Event id.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "attendees": {
        "email": "example",
        "id": "example",
        "isUser": true,
        "name": "example"
      },
      "endTime": "example",
      "startTime": "example"
    }
  ]
}
```

### List event instances

List event instances.

**Inputs**

- Event (`event_id`, text, required): Event id.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "endTime": "example",
      "startTime": "example"
    }
  ]
}
```

### List event rsvps

List event rsvps.

**Inputs**

- Event (`event_id`, text, required): Event id.
- User type (`user_type`, text): User type. One of: `ALL`, `HEARTBEAT_USER` (Heartbeat user), `GUEST`.

**Outputs**

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

**Example output**

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

### List events

List events.

**Inputs**

- Group ID (`group_id`, text): Group id.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Starting after (`starting_after`, text): Starting after.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "coverImage": "example",
      "createdAt": "example",
      "createdBy": "example",
      "description": "example",
      "endTime": "example",
      "id": "example",
      "invitedGroups": [
        "example"
      ],
      "invitedUsers": [
        "example"
      ],
      "name": "example",
      "recurring": true,
      "startTime": "example"
    }
  ]
}
```

### List members

List members.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "avatar": "example",
      "bio": "example",
      "customFields": {},
      "email": "example",
      "firstName": "example",
      "groups": [
        {}
      ],
      "id": "example",
      "isAdmin": true,
      "lastLogin": "example",
      "lastName": "example",
      "linkedInData": {
        "company": "example",
        "description": "example",
        "headline": "example",
        "jobs": [
          {}
        ],
        "location": "example",
        "profileUrl": "example",
        "schools": [
          {}
        ],
        "skills": [
          "example"
        ]
      },
      "linkedInSummary": "example",
      "name": "example",
      "onboardingResponses": [
        {}
      ],
      "role": "example",
      "socialLinks": {
        "calendar": "example",
        "community": "example",
        "instagram": "example",
        "linkedin": "example",
        "personalWebsite": "example",
        "twitter": "example"
      }
    }
  ]
}
```
