# Alchemer

> Create and manage Alchemer surveys, questions, share links and email campaigns, record and read responses and statistics, keep contact lists, and follow new and changed surveys and responses.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/alchemer

## Actions

### Add campaign contact

Add a person to an email campaign, so they get its invitations. Each contact gets their own invite link.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Email campaign (`campaign_id`, text, required): The email campaign.
- Email address (`email_address`, text, required): The contact's email address.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Organization (`organization`, text): The contact's organization.
- Department (`department`, text): The contact's department.
- Job title (`title`, text): The contact's job title.
- Work phone (`business_phone`, text): The contact's work phone.
- Mobile phone (`mobilephone`, text): The contact's mobile phone, for an SMS campaign.
- Status (`status`, text): Inactive unsubscribes the contact. Leave empty for Active. One of: `Active`, `Inactive` (Inactive (unsubscribed)).
- Custom fields (`custom_fields`, object): Values for the account's contact custom fields, by field name, such as {"customerid": "A-100"}.
- Allow duplicates (`allowdupe`, true/false): Add the contact again even if the campaign already has this email address.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "business_phone": "example",
    "date_last_sent": "example",
    "department": "example",
    "email_address": "example",
    "first_name": "example",
    "id": 1,
    "invitelink": "example",
    "last_name": "example",
    "mobilephone": "example",
    "organization": "example",
    "status": "example",
    "subscriber_status": "example",
    "title": "example"
  }
}
```

### Add contact to list

Add a person to a contact list.

**Inputs**

- Contact list (`list_id`, number, required): The contact list. At least 1.
- Email address (`email_address`, text, required): The contact's email address.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Organization (`organization`, text): The contact's organization.
- Department (`department`, text): The contact's department.
- Job title (`title`, text): The contact's job title.
- Work phone (`business_phone`, text): The contact's work phone.
- City (`mailing_address_city`, text): The contact's city.
- State (`mailing_address_state`, text): The contact's state or region.
- Postal code (`mailing_address_postal`, text): The contact's postal or ZIP code.
- Country (`mailing_address_country`, text): The contact's country code, such as `US`.
- Status (`status`, text): Inactive unsubscribes the contact. Leave empty for Active. One of: `Active`, `Inactive` (Inactive (unsubscribed)).
- Custom fields (`custom_fields`, object): Values for the list's custom fields, by custom field ID, such as {"15": "Gold"}.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "business_phone": "example",
    "department": "example",
    "email_address": "example",
    "first_name": "example",
    "id": 1,
    "last_name": "example",
    "mailing_address_city": "example",
    "mailing_address_country": "example",
    "mailing_address_postal": "example",
    "mailing_address_state": "example",
    "organization": "example",
    "status": "example",
    "title": "example"
  }
}
```

### Create campaign

Create a share link or an email campaign for a survey.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Type (`type`, text, required): How the survey is shared. One of: `link` (Web link), `email` (Email campaign), `html` (HTML embed), `js` (JavaScript embed), `blog` (Blog embed), `iframe` (Iframe embed), `popup`.
- Name (`name`, text, required): The campaign's name.
- Language (`language`, text): The language of the survey people see, such as `English`, or `auto` to use their browser's language. Leave empty for auto.
- Secure link (`secure`, true/false): Use an https link.
- Custom link ending (`slug`, text): A custom ending for the link's address.
- Link address (`subtype`, text): What kind of address the link has. Leave empty for a standard link. One of: `standard` (Standard link), `private` (Private domain), `shortlink` (Short link), `subdomain`.
- Private domain (`privatename`, text): Your private domain, such as `surveys.example.com`, when Link address is Private domain.
- Subdomain (`subdomain`, text): Your subdomain, such as `mycompany`, when Link address is Subdomain.
- Open date (`link_open_date`, date and time): When the link starts taking responses.
- Close date (`link_close_date`, date and time): When the link stops taking responses.
- URL variables (`token_variables`, object): URL variables added to the link, by name, such as {"source": "newsletter"}.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "SSL": "example",
    "date_created": "example",
    "date_modified": "example",
    "id": "example",
    "invite_id": "example",
    "language": "example",
    "limit_responses": "example",
    "link_close_date": "example",
    "link_open_date": "example",
    "link_type": "example",
    "name": "example",
    "status": "example",
    "subtype": "example",
    "token_variables": "example",
    "type": "example",
    "uri": "example"
  }
}
```

### Create contact list

Create a contact list, to hold people to invite to surveys.

**Inputs**

- List name (`list_name`, text, required): The contact list's name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "date_created": "example",
    "date_modified": "example",
    "id": 1,
    "list_name": "example",
    "user_id_created": 1,
    "user_id_modified": 1
  }
}
```

### Create question

Add a question to a page of a survey, with its answer options for a radio button, checkbox or dropdown question.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Page (`page_id`, text, required): The page to add the question to.
- Question type (`type`, text, required): The kind of question. One of: `radio` (Radio buttons (pick one)), `checkbox` (Checkboxes (pick any)), `menu` (Dropdown menu), `text` (Textbox), `essay` (Essay (long text)), `email` (Email campaign), `hidden` (Hidden value), `instructions` (Text and instructions).
- Question (`title`, text, required): The question's text.
- Answer options (`options`, list): The answers to choose from, for a radio button, checkbox or dropdown question.
- Description (`description`, text): Help text shown with the question.
- Shortname (`shortname`, text): A short name for the question, which Create response can use in place of its ID.
- Required (`required`, true/false): Respondents must answer before going on.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1,
    "options": [
      {
        "id": "example",
        "title": "example",
        "value": "example"
      }
    ],
    "properties": {},
    "shortname": "example",
    "title": {},
    "type": "example"
  }
}
```

### Create response

Record a response to a survey with the answers given, such as one collected elsewhere.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Answers (`answers`, object, required): Answers by question ID or shortname. A text answer is the text; a choice is an object of option IDs and their values, such as {"10001": "Yes"}.
- Status (`status`, text): The response's status. Leave empty for Complete. One of: `Complete`, `Partial`, `Disqualified`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "example",
    "contact_id": "example",
    "country": "example",
    "date_started": "example",
    "date_submitted": "example",
    "date_updated": "example",
    "id": "example",
    "ip_address": "example",
    "is_test_data": "example",
    "language": "example",
    "link_id": "example",
    "postal": "example",
    "referer": "example",
    "region": "example",
    "session_id": "example",
    "status": "example",
    "survey_data": {},
    "url_variables": {},
    "user_agent": "example"
  }
}
```

### Create survey

Create an empty survey, form, poll or quiz. Alchemer adds a first page and a thank-you page.

**Inputs**

- Title (`title`, text, required): The survey's title.
- Type (`type`, text, required): What to create. One of: `survey`, `form`, `poll`, `quiz`.
- Status (`status`, text): The survey's status. Leave empty for Alchemer's default. One of: `Launched` (Launched (open for responses)), `Closed`.
- Team (`survey_team_id`, text): The team that owns the survey. Leave empty for your default team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_on": "example",
    "forward_only": true,
    "id": "example",
    "internal_title": "example",
    "languages": [
      "example"
    ],
    "links": {
      "campaign": "example",
      "default": "example",
      "edit": "example",
      "publish": "example"
    },
    "modified_on": "example",
    "pages": [
      {
        "id": 1,
        "properties": {},
        "questions": [
          {
            "base_type": "example",
            "id": 1,
            "options": [
              {
                "id": 1,
                "properties": {},
                "title": {},
                "value": "example"
              }
            ],
            "properties": {},
            "shortname": "example",
            "title": {},
            "type": "example"
          }
        ],
        "title": {}
      }
    ],
    "statistics": {},
    "status": "example",
    "team": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "theme": "example",
    "title": "example",
    "type": "example"
  }
}
```

### Delete campaign

Delete a share link or email campaign from a survey. This can't be undone.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Campaign (`campaign_id`, text, required): The share link or email campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "result_ok": true
  }
}
```

### Delete contact list

Delete a contact list. This can't be undone.

**Inputs**

- Contact list (`list_id`, number, required): The contact list. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "result_ok": true
  }
}
```

### Delete response

Delete a response from a survey. This can't be undone.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Response ID (`response_id`, text, required): The response's ID, such as one from List responses or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "result_ok": true
  }
}
```

### Delete survey

Delete a survey with all its responses, links and reports. This can't be undone.

**Inputs**

- Survey (`survey_id`, text, required): The survey.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "result_ok": true
  }
}
```

### Get account

Get the Alchemer account that's connected: its ID, organization and when it was created.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contact_phone": "example",
    "date_created": "example",
    "id": 1,
    "login_link": "example",
    "organization": "example",
    "reseller": true
  }
}
```

### Get response

Get one response with every answer, its status, and where and when it was taken.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Response ID (`response_id`, text, required): The response's ID, such as one from List responses or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "example",
    "contact_id": "example",
    "country": "example",
    "date_started": "example",
    "date_submitted": "example",
    "date_updated": "example",
    "id": "example",
    "ip_address": "example",
    "is_test_data": "example",
    "language": "example",
    "link_id": "example",
    "postal": "example",
    "referer": "example",
    "region": "example",
    "session_id": "example",
    "status": "example",
    "survey_data": {},
    "url_variables": {},
    "user_agent": "example"
  }
}
```

### Get survey

Get a survey with its pages, questions and answer options. Question and option IDs here are what Create response takes.

**Inputs**

- Survey (`survey_id`, text, required): The survey.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_on": "example",
    "forward_only": true,
    "id": "example",
    "internal_title": "example",
    "languages": [
      "example"
    ],
    "links": {
      "campaign": "example",
      "default": "example",
      "edit": "example",
      "publish": "example"
    },
    "modified_on": "example",
    "pages": [
      {
        "id": 1,
        "properties": {},
        "questions": [
          {
            "base_type": "example",
            "id": 1,
            "options": [
              {
                "id": 1,
                "properties": {},
                "title": {},
                "value": "example"
              }
            ],
            "properties": {},
            "shortname": "example",
            "title": {},
            "type": "example"
          }
        ],
        "title": {}
      }
    ],
    "statistics": {},
    "status": "example",
    "team": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "theme": "example",
    "title": "example",
    "type": "example"
  }
}
```

### Get survey statistics

Get each question's statistics: response counts, and for choice questions how many picked each option.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Page (`page_id`, number): Only the questions on this page. At least 1.
- Question ID (`question_id`, number): Only this question. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "average": "example",
        "breakdown": [
          {
            "count": "example",
            "label": "example",
            "percentage": "example"
          }
        ],
        "id": 1,
        "max": "example",
        "min": "example",
        "stdDev": "example",
        "sum": "example",
        "total responses": "example",
        "type": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List campaign contacts

List the contacts in an email campaign, with their invite links and whether each has been sent, started or finished the survey.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Email campaign (`campaign_id`, text, required): The email campaign.
- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "business_phone": "example",
        "date_last_sent": "example",
        "department": "example",
        "email_address": "example",
        "first_name": "example",
        "id": 1,
        "invitelink": "example",
        "last_name": "example",
        "mobilephone": "example",
        "organization": "example",
        "status": "example",
        "subscriber_status": "example",
        "title": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List campaigns

List a survey's share links and email campaigns, with their addresses and status.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "SSL": "example",
        "date_created": "example",
        "date_modified": "example",
        "id": "example",
        "invite_id": "example",
        "language": "example",
        "limit_responses": "example",
        "link_close_date": "example",
        "link_open_date": "example",
        "link_type": "example",
        "name": "example",
        "status": "example",
        "subtype": "example",
        "token_variables": "example",
        "type": "example",
        "uri": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List contact lists

List the account's contact lists.

**Inputs**

- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "date_created": "example",
        "date_modified": "example",
        "id": 1,
        "list_name": "example",
        "user_id_created": 1,
        "user_id_modified": 1
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List contacts in list

List the contacts in a contact list.

**Inputs**

- Contact list (`list_id`, number, required): The contact list. At least 1.
- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "business_phone": "example",
        "department": "example",
        "email_address": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "mailing_address_city": "example",
        "mailing_address_country": "example",
        "mailing_address_postal": "example",
        "mailing_address_state": "example",
        "organization": "example",
        "status": "example",
        "title": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List questions

List a survey's questions with their IDs, types, shortnames and answer options.

**Inputs**

- Survey (`survey_id`, text, required): The survey.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "base_type": "example",
        "id": 1,
        "options": [
          {
            "id": 1,
            "properties": {},
            "title": {},
            "value": "example"
          }
        ],
        "properties": {},
        "shortname": "example",
        "title": {},
        "type": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List responses

List a survey's responses with every answer, optionally only those with a status or submitted or changed in a time range.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Status (`status`, text): Only responses with this status. One of: `Complete`, `Partial`, `Disqualified`.
- Submitted since (`submitted_since`, date and time): Only responses submitted at or after this time.
- Submitted before (`submitted_before`, date and time): Only responses submitted before this time.
- Changed since (`updated_since`, date and time): Only responses changed at or after this time.
- Leave out test responses (`exclude_test_data`, true/false): Leave out responses marked as test data.
- Order (`order_by`, text): The order to list them in. Leave empty for oldest submitted first. One of: `-date_submitted` (Newest submitted first), `date_submitted` (Oldest submitted first), `-date_updated` (Most recently changed first), `date_updated` (Least recently changed first).
- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "city": "example",
        "contact_id": "example",
        "country": "example",
        "date_started": "example",
        "date_submitted": "example",
        "date_updated": "example",
        "id": "example",
        "ip_address": "example",
        "is_test_data": "example",
        "language": "example",
        "link_id": "example",
        "postal": "example",
        "referer": "example",
        "region": "example",
        "session_id": "example",
        "status": "example",
        "survey_data": {},
        "url_variables": {},
        "user_agent": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### List surveys

List the account's surveys, forms, polls and quizzes, with their status, response counts and links.

**Inputs**

- Status (`status`, text): Only surveys with this status. One of: `Launched` (Launched (open for responses)), `Closed`.
- Team (`survey_team_id`, text): Only surveys this team owns.
- Created since (`created_since`, date and time): Only surveys created at or after this time.
- Changed since (`modified_since`, date and time): Only surveys changed at or after this time.
- Page (`page`, number): Which page of results to return. Leave empty for the first. At least 1.
- Results per page (`results_per_page`, number): How many results to return on a page, up to 500. Leave empty for 50. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "created_on": "example",
        "id": "example",
        "links": {
          "campaign": "example",
          "default": "example",
          "edit": "example",
          "publish": "example"
        },
        "modified_on": "example",
        "statistics": {},
        "status": "example",
        "team": "example",
        "title": "example",
        "type": "example"
      }
    ],
    "results_per_page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}
```

### Update campaign

Rename, close or reopen a share link or email campaign, change its dates, or add a contact list to an email campaign.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Campaign (`campaign_id`, text, required): The share link or email campaign.
- Name (`name`, text): The campaign's new name.
- Status (`status`, text): Closed stops it taking responses. One of: `active`, `closed`.
- Language (`language`, text): The language of the survey people see, such as `English`, or `auto` to use their browser's language. Leave empty for auto.
- Secure link (`secure`, true/false): Use an https link.
- Custom link ending (`slug`, text): A custom ending for the link's address.
- Link address (`subtype`, text): What kind of address the link has. Leave empty for a standard link. One of: `standard` (Standard link), `private` (Private domain), `shortlink` (Short link), `subdomain`.
- Private domain (`privatename`, text): Your private domain, such as `surveys.example.com`, when Link address is Private domain.
- Subdomain (`subdomain`, text): Your subdomain, such as `mycompany`, when Link address is Subdomain.
- Open date (`link_open_date`, date and time): When the link starts taking responses.
- Close date (`link_close_date`, date and time): When the link stops taking responses.
- URL variables (`token_variables`, object): URL variables added to the link, by name, such as {"source": "newsletter"}.
- Add contact list (`contact_list`, number): For an email campaign: a contact list whose contacts to add to it. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "SSL": "example",
    "date_created": "example",
    "date_modified": "example",
    "id": "example",
    "invite_id": "example",
    "language": "example",
    "limit_responses": "example",
    "link_close_date": "example",
    "link_open_date": "example",
    "link_type": "example",
    "name": "example",
    "status": "example",
    "subtype": "example",
    "token_variables": "example",
    "type": "example",
    "uri": "example"
  }
}
```

### Update response

Change answers on a response, or its status. Answers left out stay as they are.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Response ID (`response_id`, text, required): The response's ID, such as one from List responses or a trigger.
- Answers (`answers`, object, required): Answers by question ID or shortname. A text answer is the text; a choice is an object of option IDs and their values, such as {"10001": "Yes"}.
- Status (`status`, text): The response's new status. One of: `Complete`, `Partial`, `Disqualified`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "example",
    "contact_id": "example",
    "country": "example",
    "date_started": "example",
    "date_submitted": "example",
    "date_updated": "example",
    "id": "example",
    "ip_address": "example",
    "is_test_data": "example",
    "language": "example",
    "link_id": "example",
    "postal": "example",
    "referer": "example",
    "region": "example",
    "session_id": "example",
    "status": "example",
    "survey_data": {},
    "url_variables": {},
    "user_agent": "example"
  }
}
```

### Update survey

Rename a survey, launch or close it, or move it to another team. Only the fields filled in change.

**Inputs**

- Survey (`survey_id`, text, required): The survey.
- Title (`title`, text): The survey's new title.
- Status (`status`, text): Launched takes responses; Closed stops them. One of: `Launched` (Launched (open for responses)), `Closed`.
- Team (`survey_team_id`, text): Move the survey to this team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_on": "example",
    "forward_only": true,
    "id": "example",
    "internal_title": "example",
    "languages": [
      "example"
    ],
    "links": {
      "campaign": "example",
      "default": "example",
      "edit": "example",
      "publish": "example"
    },
    "modified_on": "example",
    "pages": [
      {
        "id": 1,
        "properties": {},
        "questions": [
          {
            "base_type": "example",
            "id": 1,
            "options": [
              {
                "id": 1,
                "properties": {},
                "title": {},
                "value": "example"
              }
            ],
            "properties": {},
            "shortname": "example",
            "title": {},
            "type": "example"
          }
        ],
        "title": {}
      }
    ],
    "statistics": {},
    "status": "example",
    "team": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "theme": "example",
    "title": "example",
    "type": "example"
  }
}
```
