# CoachAccountable

> Read coaching clients, appointments, tasks, worksheets and courses.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/coachaccountable

## Actions

### Get a client

Read one coaching client’s profile and contact details.

**Inputs**

- Client Id (`client_id`, number, required): The coaching client ID. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": {
      "ID": 1,
      "email": "example",
      "firstName": "example",
      "lastName": "example"
    },
    "status": "example",
    "timezone": "example"
  }
}
```

### Get account profile

Read the profile associated with your API credentials.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": {
      "email": "example",
      "firstName": "example",
      "lasName": "example",
      "username": "example"
    },
    "status": "example",
    "timezone": "example"
  }
}
```

### List agreement templates

Read saved coaching agreement templates.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {}
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List appointment types

Read the appointment types configured for your account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {}
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List appointments

Read coaching appointments in a selected time range.

**Inputs**

- Client Id (`client_id`, number): Filter by coaching client. At least 1.
- Start Time (`start_time`, date and time): The earliest appointment start.
- End Time (`end_time`, date and time): The latest appointment start.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ClientID": 1,
        "CoachID": 1,
        "ID": 1,
        "endDate": "example",
        "name": "example",
        "startDate": "example",
        "status": "example"
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List clients

Find active or inactive coaching clients.

**Inputs**

- Include Inactive (`include_inactive`, true/false): Include clients marked inactive.
- Sort Order (`sort_order`, text): Sort clients by name or by creation date. One of: `A`, `C`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ID": 1,
        "email": "example",
        "firstName": "example",
        "lastName": "example"
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List coaching actions

Read client or coach tasks, including completed tasks when selected.

**Inputs**

- Client Id (`client_id`, number): Filter by coaching client. At least 1.
- Include Done (`include_done`, true/false): Include completed actions.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ClientID": 1,
        "CoachID": 1,
        "ID": 1,
        "action": "example",
        "isDone": true
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List courses

Read courses available to the coaching account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {}
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List metrics

Read measurements tracked for a coaching client.

**Inputs**

- Client Id (`client_id`, number, required): The coaching client ID. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ClientID": 1,
        "CoachID": 1,
        "ID": 1
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List offerings

Read the coaching offerings configured for your account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {}
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List sessions

Read coaching sessions for a client.

**Inputs**

- Client Id (`client_id`, number, required): The coaching client ID. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ClientID": 1,
        "CoachID": 1,
        "ID": 1
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```

### List worksheets

Read worksheets for a coaching client.

**Inputs**

- Client Id (`client_id`, number, required): The coaching client ID. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": 1,
    "message": "example",
    "result": "example",
    "return": [
      {
        "ClientID": 1,
        "CoachID": 1,
        "ID": 1
      }
    ],
    "status": "example",
    "timezone": "example"
  }
}
```
