# GetFeedback

> Read survey responses and email survey invites.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/getfeedback

## Actions

### Get response

Get one response to a survey with its answers.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response": {
      "answers": [
        {
          "choices": [
            {
              "id": 1,
              "is_other": true,
              "text": "example"
            }
          ],
          "comment": "example",
          "component_id": 1,
          "created_at": "example",
          "id": 1,
          "number": 1,
          "response_id": 1,
          "scale": 1,
          "text": "example",
          "type": "example",
          "updated_at": "example"
        }
      ],
      "browser": "example",
      "completed_at": "example",
      "created_at": "example",
      "id": 1,
      "limited": true,
      "merge_map": {},
      "platform": "example",
      "status": "example",
      "token": "example",
      "updated_at": "example"
    }
  }
}
```

### Get survey

Get a survey with its questions and links.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "survey": {
      "campaigns": [
        {
          "ended_at": "example",
          "id": 1,
          "survey_id": 1,
          "token": "example",
          "type": "example"
        }
      ],
      "completed_responses_count": 1,
      "created_at": "example",
      "folder_id": 1,
      "id": 1,
      "language": "example",
      "last_published": "example",
      "locale": "example",
      "merge_keys": [
        "example"
      ],
      "name": "example",
      "notification_level": "example",
      "ordered_components": [
        {
          "description": "example",
          "embedded_answer_key": "example",
          "id": 1,
          "is_email_embeddable": true,
          "is_question": true,
          "required": true,
          "survey_id": 1,
          "title": "example",
          "type": "example"
        }
      ],
      "questions_count": 1,
      "share_token": "example",
      "started_responses_count": 1,
      "updated_at": "example",
      "user_id": 1
    }
  }
}
```

### List responses

List a survey's responses with their answers.

**Inputs**

- Survey (`survey_id`, number, required): The survey.
- Since (`since`, date and time): Only responses from this time on, oldest first. Leave empty for the newest first.
- Until (`until`, date and time): Only responses up to this time. Works with Since.
- Compare (`since_field`, text): Which date Since and Until compare. Completed lists completed responses only. One of: `created_at` (Started), `updated_at` (Last updated), `completed_at` (Completed). Default: `created_at`.
- Status (`status`, text): Only responses in this state. Leave empty for all. One of: `started` (Started, not finished), `completed`.
- Page size (`per_page`, number): Responses per page, up to 100. From 1 to 100. Default: `30`.
- Page (`page`, number): The page to read, starting at 1. At least 1. Default: `1`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active_models": [
      {
        "answers": [
          {
            "choices": [
              {
                "id": 1,
                "is_other": true,
                "text": "example"
              }
            ],
            "comment": "example",
            "component_id": 1,
            "created_at": "example",
            "id": 1,
            "number": 1,
            "response_id": 1,
            "scale": 1,
            "text": "example",
            "type": "example",
            "updated_at": "example"
          }
        ],
        "browser": "example",
        "completed_at": "example",
        "created_at": "example",
        "id": 1,
        "limited": true,
        "merge_map": {},
        "platform": "example",
        "status": "example",
        "token": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List surveys

List your surveys, or the surveys shared with you.

**Inputs**

- Show (`filter`, text): Which surveys to list. One of: `active` (My active surveys), `shared` (Surveys shared with me). Default: `active`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "surveys": [
      {
        "completed_responses_count": 1,
        "created_at": "example",
        "folder_id": 1,
        "id": 1,
        "language": "example",
        "locale": "example",
        "merge_keys": [
          "example"
        ],
        "name": "example",
        "notification_level": "example",
        "questions_count": 1,
        "started_responses_count": 1,
        "updated_at": "example",
        "user_id": 1
      }
    ]
  }
}
```

### Send survey invite

Email a survey to one person.

**Inputs**

- Survey (`survey_id`, number, required): The survey.
- Email (`email`, text, required): The person's email address.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- More fields (`merge_fields`, object): More details about the person, as names and values, that the message can name in brackets, such as user_id.
- Subject (`subject`, text, required): The email's subject. Write [first_name] or another recipient field in brackets to fill it in for each person.
- Title (`title`, text): The heading at the top of the email, such as Hi [first_name],.
- Message (`body`, text): The email's message.
- Button label (`button_label`, text): The text on the button that opens the survey.
- Question in the email (`embedded_component_id`, number): Put this question in the email itself, so people can answer it there. Its ID is in Get survey's questions.
- Sender name (`from_email_name`, text): The sender's name, the part of the address before the @.
- Sender domain (`from_email_domain`, text): The sender's email domain, one set up for your GetFeedback account.
- Reply to (`reply_to`, text): The address replies go to.
- Footer (`footer`, text): The email's footer.
- Button color (`button_color`, text): The button's color as a hex value, such as #40c326.
- Logo URL (`logo_image_url`, text): The address of a logo to show in the email.
- Anonymous (`anonymize`, true/false): Turn off open and click tracking, and keep answers off the recipients' records.
- Import without sending (`gf_test`, true/false): Add the recipients to the survey's list without emailing them.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "subject": "example",
    "title": "example",
    "total_recipients": 1
  }
}
```

### Send survey invites

Email a survey to a list of people.

**Inputs**

- Survey (`survey_id`, number, required): The survey.
- Recipients (`recipients`, list, required): The people to invite, each with an email and optionally first_name, last_name and other fields the message names in brackets.
- Subject (`subject`, text, required): The email's subject. Write [first_name] or another recipient field in brackets to fill it in for each person.
- Title (`title`, text): The heading at the top of the email, such as Hi [first_name],.
- Message (`body`, text): The email's message.
- Button label (`button_label`, text): The text on the button that opens the survey.
- Question in the email (`embedded_component_id`, number): Put this question in the email itself, so people can answer it there. Its ID is in Get survey's questions.
- Sender name (`from_email_name`, text): The sender's name, the part of the address before the @.
- Sender domain (`from_email_domain`, text): The sender's email domain, one set up for your GetFeedback account.
- Reply to (`reply_to`, text): The address replies go to.
- Footer (`footer`, text): The email's footer.
- Button color (`button_color`, text): The button's color as a hex value, such as #40c326.
- Logo URL (`logo_image_url`, text): The address of a logo to show in the email.
- Anonymous (`anonymize`, true/false): Turn off open and click tracking, and keep answers off the recipients' records.
- Import without sending (`gf_test`, true/false): Add the recipients to the survey's list without emailing them.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "subject": "example",
    "title": "example",
    "total_recipients": 1
  }
}
```
