# Smartwaiver

> Read signed waivers and check-ins, send waivers and create prefilled waiver links and group reservations.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/smartwaiver

## Actions

### Create a group reservation

Create a group reservation and get the group leader's invite link and management link.

**Inputs**

- Waiver template (`template_id`, text, required): The waiver template the group signs.
- Event start (`event_date`, date and time, required): When the group's event starts.
- Group name (`group_name`, text, required): The group reservation's name.
- Event name (`event_name`, text): A name for the event.
- Event description (`event_description`, text): A description of the event.
- Leader first name (`leader_first_name`, text, required): The group leader's first name.
- Leader last name (`leader_last_name`, text, required): The group leader's last name.
- Leader email (`leader_email`, text, required): The group leader's email address.
- Who sends the invite (`mailer`, text): smartwaiver: Smartwaiver emails the leader the invite link. thirdparty: you send it yourself. One of: `smartwaiver`, `thirdparty`.
- Participants (`participants`, list): People in the group, each with first_name, last_name and optionally email. They can't be changed in the group dashboard afterwards.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "event": {
        "description": "example",
        "event_date": "example",
        "leader": "example",
        "name": "example"
      },
      "group_management": "example",
      "invite_urls": [
        {
          "invite_url": "example",
          "recipient": "example"
        }
      ],
      "leader": {
        "email": "example",
        "first_name": "example",
        "last_name": "example"
      },
      "mailer": "example",
      "template": "example",
      "user": 1
    }
  }
}
```

### Create a prefilled waiver link

Create a waiver link with a participant's details already filled in, which expires after the time you set.

**Inputs**

- Waiver template (`template_id`, text, required): The waiver template.
- Expires after (seconds) (`expiration`, number, required): How many seconds the link works for, 300 (5 minutes) to 2592000 (30 days). From 300 to 2592000.
- Participant first name (`first_name`, text): The participant's first name.
- Participant middle name (`middle_name`, text): The participant's middle name.
- Participant last name (`last_name`, text): The participant's last name.
- Participant date of birth (`date_of_birth`, date): The participant's date of birth.
- Participant phone (`phone`, text): The participant's phone number.
- Email (`email`, text): The email address question's answer.
- Guardian first name (`guardian_first_name`, text): The guardian's first name, for a minor's waiver.
- Guardian last name (`guardian_last_name`, text): The guardian's last name.
- Guardian relationship (`guardian_relationship`, text): The guardian's relationship to the minor.
- Address line 1 (`address_line_one`, text): Address, first line.
- Address line 2 (`address_line_two`, text): Address, second line.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country, such as US.
- Emergency contact name (`emergency_contact_name`, text): Emergency contact's full name.
- Emergency contact phone (`emergency_contact_phone`, text): Emergency contact's phone number.
- External ID (`external_id`, text): Your own ID for this signer, such as a membership number: letters, digits and underscores, up to 128.
- Lock prefilled fields (`lock_prefilled`, true/false): Stop the signer changing the prefilled standard fields.
- Adult only (`adult`, true/false): On for a waiver signed by an adult only, off when a minor is included.
- Kiosk mode (`kiosk`, true/false): Open the waiver in kiosk mode.
- Hide extra signers (`hide_anyone_else`, true/false): Hide the buttons that add other signers.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "prefill": {
      "expiration": 1,
      "url": "example",
      "uuid": "example"
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get a signed waiver

Get every detail of one signed waiver, optionally with its signed PDF.

**Inputs**

- Waiver ID (`waiver_id`, text, required): The signed waiver's ID, such as `6jebdfxzvrdkd`.
- Include PDF (`include_pdf`, true/false): Include the signed PDF, Base64 encoded.
- Include events (`include_events`, true/false): Include the events the waiver was signed for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "ts": "example",
    "type": "example",
    "version": 1,
    "waiver": {
      "addressCity": "example",
      "addressCountry": "example",
      "addressLineOne": "example",
      "addressLineTwo": "example",
      "addressState": "example",
      "addressZip": "example",
      "autoTag": "example",
      "clientIP": "example",
      "createdOn": "example",
      "customWaiverFields": {},
      "dob": "example",
      "driversLicenseNumber": "example",
      "driversLicenseState": "example",
      "email": "example",
      "emergencyContactName": "example",
      "emergencyContactPhone": "example",
      "events": [
        {
          "endDate": "example",
          "eventUuid": "example",
          "name": "example",
          "startDate": "example"
        }
      ],
      "expirationDate": "example",
      "expired": true,
      "firstName": "example",
      "flags": [
        {
          "displayText": "example",
          "reason": "example"
        }
      ],
      "guardian": {
        "dob": "example",
        "firstName": "example",
        "lastName": "example",
        "middleName": "example",
        "phone": "example",
        "relationship": "example"
      },
      "insuranceCarrier": "example",
      "insurancePolicyNumber": "example",
      "kiosk": true,
      "lastName": "example",
      "marketingAllowed": true,
      "middleName": "example",
      "participants": [
        {
          "customParticipantFields": {},
          "dob": "example",
          "firstName": "example",
          "flags": [
            {
              "displayText": "example",
              "reason": "example"
            }
          ],
          "gender": "example",
          "isMinor": true,
          "lastName": "example",
          "middleName": "example",
          "phone": "example",
          "tags": [
            "example"
          ]
        }
      ],
      "pdf": "example",
      "photos": 1,
      "tags": [
        "example"
      ],
      "templateId": "example",
      "title": "example",
      "typedSignatures": {
        "bodyInitials": [
          "example"
        ],
        "bodySignatures": [
          "example"
        ],
        "guardian": [
          "example"
        ],
        "participants": [
          "example"
        ]
      },
      "verified": true,
      "waiverId": "example"
    }
  }
}
```

### Get a waiver template

Get one waiver template with its web and kiosk links.

**Inputs**

- Waiver template (`template_id`, text, required): The waiver template.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "template": {
      "kioskUrl": "example",
      "publishedOn": "example",
      "publishedVersion": 1,
      "templateId": "example",
      "title": "example",
      "vanityUrls": [
        "example"
      ],
      "webUrl": "example",
      "webhook": {
        "emailValidationRequired": "example",
        "endpoint": "example"
      }
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get a waiver's photos

Get the photos taken with a signed waiver, Base64 encoded.

**Inputs**

- Waiver ID (`waiver_id`, text, required): The signed waiver's ID, such as `6jebdfxzvrdkd`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "photos": {
      "createdOn": "example",
      "photos": [
        {
          "date": "example",
          "fileType": "example",
          "photo": "example",
          "photoId": "example",
          "tag": "example",
          "type": "example"
        }
      ],
      "templateId": "example",
      "title": "example",
      "waiverId": "example"
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get a waiver's signatures

Get the signature images of a signed waiver, Base64 encoded.

**Inputs**

- Waiver ID (`waiver_id`, text, required): The signed waiver's ID, such as `6jebdfxzvrdkd`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "signatures": {
      "createdOn": "example",
      "signatures": {
        "bodyInitials": [
          "example"
        ],
        "bodySignatures": [
          "example"
        ],
        "guardian": [
          "example"
        ],
        "participants": [
          "example"
        ]
      },
      "templateId": "example",
      "title": "example",
      "waiverId": "example"
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get a waiver's uploaded files

Get the files uploaded with a signed waiver, Base64 encoded.

**Inputs**

- Waiver ID (`waiver_id`, text, required): The signed waiver's ID, such as `6jebdfxzvrdkd`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "files": {
      "createdOn": "example",
      "files": [
        {
          "date": "example",
          "file": "example",
          "fileId": "example",
          "fileType": "example",
          "tag": "example",
          "type": "example"
        }
      ],
      "templateId": "example",
      "title": "example",
      "waiverId": "example"
    },
    "id": "example",
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get account info

Get the Smartwaiver account's username, email and sign-up date.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "info": {
      "email": "example",
      "ipAddress": "example",
      "signupDate": "example",
      "username": "example"
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get account settings

Get the account's waiver console settings, such as when waivers expire.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "settings": {
      "console": {
        "rollingExpiration": "example",
        "staticExpiration": "example"
      }
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get API key label

Get the label of the API key this connection uses.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "me": {
      "label": "example"
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get search results

Get one page of up to 100 waivers from a search.

**Inputs**

- Search ID (`search_id`, text, required): The search's guid, from Search signed waivers.
- Page (`page`, number, required): Which page to read, counting from 0. At least 0.
- Include PDFs (`include_pdf`, true/false): Include each signed PDF, Base64 encoded.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "search_results": [
      {
        "addressCity": "example",
        "addressCountry": "example",
        "addressLineOne": "example",
        "addressLineTwo": "example",
        "addressState": "example",
        "addressZip": "example",
        "autoTag": "example",
        "clientIP": "example",
        "createdOn": "example",
        "customWaiverFields": {},
        "dob": "example",
        "driversLicenseNumber": "example",
        "driversLicenseState": "example",
        "email": "example",
        "emergencyContactName": "example",
        "emergencyContactPhone": "example",
        "events": [
          {
            "endDate": "example",
            "eventUuid": "example",
            "name": "example",
            "startDate": "example"
          }
        ],
        "expirationDate": "example",
        "expired": true,
        "firstName": "example",
        "flags": [
          {
            "displayText": "example",
            "reason": "example"
          }
        ],
        "guardian": {
          "dob": "example",
          "firstName": "example",
          "lastName": "example",
          "middleName": "example",
          "phone": "example",
          "relationship": "example"
        },
        "insuranceCarrier": "example",
        "insurancePolicyNumber": "example",
        "kiosk": true,
        "lastName": "example",
        "marketingAllowed": true,
        "middleName": "example",
        "participants": [
          {
            "customParticipantFields": {},
            "dob": "example",
            "firstName": "example",
            "flags": [
              {
                "displayText": "example",
                "reason": "example"
              }
            ],
            "gender": "example",
            "isMinor": true,
            "lastName": "example",
            "middleName": "example",
            "phone": "example",
            "tags": [
              "example"
            ]
          }
        ],
        "pdf": "example",
        "photos": 1,
        "tags": [
          "example"
        ],
        "templateId": "example",
        "title": "example",
        "typedSignatures": {
          "bodyInitials": [
            "example"
          ],
          "bodySignatures": [
            "example"
          ],
          "guardian": [
            "example"
          ],
          "participants": [
            "example"
          ]
        },
        "verified": true,
        "waiverId": "example"
      }
    ],
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Get webhook settings

Get the webhook addresses the account sends new waivers to.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "ts": "example",
    "type": "example",
    "version": 1,
    "webhooks": {
      "emailValidationRequired": "example",
      "endpoint": "example",
      "endpoint2": "example",
      "endpoint3": "example"
    }
  }
}
```

### List check-ins

List participant check-ins in a time range. Both ends must be before the current hour.

**Inputs**

- From (`from_time`, date and time, required): Check-ins after this time. Must be before the current hour.
- To (`to_time`, date and time, required): Check-ins before this time. Must be before the current hour.
- Waiver ID (`waiver_id`, text): Only check-ins from this signed waiver.
- Check-in ID (`checkin_id`, text): Only this check-in.
- Limit (`limit`, number): How many check-ins to return, 1 to 100. Smartwaiver's default is 20. From 1 to 100.
- Offset (`offset`, number): How many to skip, for the next page, 0 to 1000. From 0 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "checkins": {
      "checkins": [
        {
          "checkinId": 1,
          "date": "example",
          "dateSigned": "example",
          "firstName": "example",
          "isMinor": true,
          "lastName": "example",
          "position": 1,
          "templateId": "example",
          "waiverId": "example"
        }
      ],
      "fromDts": "example",
      "moreCheckins": true,
      "toDts": "example"
    },
    "id": "example",
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### List signed waivers

List the most recently signed waivers, newest first, with filters.

**Inputs**

- Limit (`limit`, number): How many waivers to return, 1 to 300. Smartwaiver's default is 20. From 1 to 300.
- Page (`offset`, number): Which page of results to return, counting pages of the limit's size from 0. At least 0.
- Waiver template (`template_id`, text): Only waivers signed on this template.
- Signed after (`signed_after`, date and time): Only waivers signed after this date and time.
- Signed before (`signed_before`, date and time): Only waivers signed before this date and time.
- First name (`first_name`, text): Only waivers with a participant of this first name (any case).
- Last name (`last_name`, text): Only waivers with a participant of this last name (any case).
- Verified (`verified`, true/false): Only waivers whose email has (on) or hasn't (off) been verified.
- Tag (`tag`, text): Only waivers with a participant who has this primary tag.
- External ID (`external_id`, text): Only waivers signed through a prefill link with this external ID.
- Prefill ID (`prefill_id`, text): Only waivers signed through the prefill link with this ID.
- Include events (`include_events`, true/false): Include the events each waiver was signed for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "ts": "example",
    "type": "example",
    "version": 1,
    "waivers": [
      {
        "autoTag": "example",
        "createdOn": "example",
        "dob": "example",
        "events": [
          {
            "endDate": "example",
            "eventUuid": "example",
            "name": "example",
            "startDate": "example"
          }
        ],
        "expirationDate": "example",
        "expired": true,
        "firstName": "example",
        "flags": [
          {
            "displayText": "example",
            "reason": "example"
          }
        ],
        "isMinor": true,
        "kiosk": true,
        "lastName": "example",
        "middleName": "example",
        "tags": [
          "example"
        ],
        "templateId": "example",
        "title": "example",
        "verified": true,
        "waiverId": "example"
      }
    ]
  }
}
```

### List waiver templates

List the account's waiver templates with their web and kiosk links.

**Inputs**

- Published only (`published`, true/false): Only published templates.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "templates": [
      {
        "kioskUrl": "example",
        "publishedOn": "example",
        "publishedVersion": 1,
        "templateId": "example",
        "title": "example",
        "vanityUrls": [
          "example"
        ],
        "webUrl": "example",
        "webhook": {
          "emailValidationRequired": "example",
          "endpoint": "example"
        }
      }
    ],
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Search signed waivers

Start a search of signed waivers. Read the results a page of 100 at a time with Get search results.

**Inputs**

- Waiver template (`template_id`, text): Only waivers signed on this template.
- Signed after (`signed_after`, date and time): Only waivers signed after this date and time.
- Signed before (`signed_before`, date and time): Only waivers signed before this date and time.
- First name (`first_name`, text): Only waivers with a participant of this first name (any case).
- Last name (`last_name`, text): Only waivers with a participant of this last name (any case).
- Verified (`verified`, true/false): Only waivers whose email has (on) or hasn't (off) been verified.
- Tag (`tag`, text): Only waivers with a participant who has this primary tag.
- Email (`email`, text): Only waivers with a participant who has this email address.
- Order (`sort`, text): Newest first (desc, the default) or oldest first (asc). One of: `desc`, `asc`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "search": {
      "count": 1,
      "guid": "example",
      "pageSize": 1,
      "pages": 1
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```

### Send a waiver by text message

Text a waiver template's link to a phone number. Smartwaiver allows only a few texts a day.

**Inputs**

- Waiver template (`template_id`, text, required): The waiver template to send.
- Phone number (`phone_number`, text, required): The mobile number with its country code, such as +1 555 555 5555.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "sms": {
      "date": "example",
      "id": "example",
      "phone": "example",
      "status": 1,
      "template": {
        "title": "example",
        "uuid": "example"
      }
    },
    "ts": "example",
    "type": "example",
    "version": 1
  }
}
```
