> For the complete documentation index, see [llms.txt](https://help.daasity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/alchemer/integration-specifications.md).

# Integration Specifications

## Integration Overview

Alchemer, formerly named Survey Gizmo, is a survey software and customer feedback management platform that helps businesses understand and transform their engagement with markets, customers and employees.&#x20;

This document provides context on what kind of data is being gathered through this extractor, which endpoints that data is coming from, and how the extracted tables relate to each other.&#x20;

## **Integration Availability**

This integration is available for:

* Enterprise

## API Endpoints

The Daasity Alchemer extractor is built based on this [Alchemer API Documentation](https://apihelp.alchemer.com/help). The following endpoint is used by Daasity to replicate data from Alchemer:

* [Survey](https://apihelp.alchemer.com/help/survey-object-v5)
* [SurveyPage](https://apihelp.alchemer.com/help/surveypage-sub-object-v5)
* [SurveyResponse](https://apihelp.alchemer.com/help/surveyresponse-sub-object-v5)

## Entity Relationship Diagram (ERD)

[Click here to view the ERD for the Daasity Alchemer integration](https://lucid.app/documents/embedded/5f831d84-6a00-426e-b559-dd9e6cc7f405) illustrating the different tables and keys to join across tables.

## Alchemer Schema

The Daasity Alchemer extractor creates these tables using the endpoints and replication methods listed. The data is mapped from source API endpoint to the table based on the mapping logic outlined in each table.

* [Surveys](#surveys)
* [Questions](#questions)
* [Question Options](#question-options)
* [Responses](#responses)
* [Response Answers](#response-answers)
* [Response Answer Options](#response-answer-options)

### **Surveys**

* Endpoint: [Survey](https://apihelp.alchemer.com/help/survey-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.surveys`]

| JSON Element                           | Database Column |
| -------------------------------------- | --------------- |
| survey::id                             | id              |
| survey::title                          | title           |
| survey::created\_on                    | created\_at     |
| survey::modified\_on                   | updated\_at     |
| Daasity: timestamp when loaded into DB | loaded\_at      |

### **Questions**

* Endpoint: [SurveyPage](https://apihelp.alchemer.com/help/surveypage-sub-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.questions`]

| JSON Element                           | Database Column      |
| -------------------------------------- | -------------------- |
| MD5(survey::id + survey::question::id) | id                   |
| survey::id                             | survey\_id           |
| survey::question::id                   | origin\_question\_id |
| survey::question::title::English       | title                |
| survey::question::page\_id             | page\_id             |
| survey::question::position             | position             |
| Daasity: timestamp when loaded into DB | loaded\_at           |

### **Question Options**

* Endpoint: [SurveyPage](https://apihelp.alchemer.com/help/surveypage-sub-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.question_options`]

| JSON Element                                    | Database Column    |
| ----------------------------------------------- | ------------------ |
| MD5(survey::id + survey::question::options::id) | option+id          |
| survey::question::options::id                   | origin\_option\_id |
| MD5(survey::id + survey::question::id)          | question\_id       |
| survey::question::option::title::English        | title              |
| survey::question::option::properties::disabled  | disabled           |
| survey::question::option::properties::position  | position           |
| Daasity: timestamp when loaded into DB          | loaded\_at         |

### **Responses**

* Endpoint: [SurveyResponse](https://apihelp.alchemer.com/help/surveyresponse-sub-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.responses`]

| JSON Element                           | Database Column      |
| -------------------------------------- | -------------------- |
| MD5(response::id)                      | id                   |
| survey::id                             | survey\_id           |
| response::id                           | origin\_response\_id |
| response::status                       | status               |
| response::date\_started                | started\_at          |
| response::date\_submitted              | completed\_at        |
| response::params::email                | email                |
| response::params::firstname            | first\_name          |
| response::params::subscriptionid       | subscription\_id     |
| response::params::orderid              | order\_id            |
| response::params::customerid           | customer\_id         |
| response::params::emailid              | email\_id            |
| Daasity: timestamp when loaded into DB | loaded\_at           |

### **Response Answers**

* Endpoint: [SurveyResponse](https://apihelp.alchemer.com/help/surveyresponse-sub-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.response_answers`]

| JSON Element                                                               | Database Column |
| -------------------------------------------------------------------------- | --------------- |
| MD5(response::id + response::question::id)                                 | id              |
| MD5(response::id)                                                          | response\_id    |
| MD5(survey::id + response::question::id)                                   | question\_id    |
| response::answer                                                           | answer          |
| survey::id + response::id + response::question::id + question + loaded\_at | answer\_options |
| response::question::shown                                                  | shown           |
| Daasity: timestamp when loaded into DB                                     | loaded\_at      |

### **Response Answer Options**

* Endpoint: [SurveyResponse](https://apihelp.alchemer.com/help/surveyresponse-sub-object-v5)
* Update Method: UPSERT
* Table Name: \[`survey_gizmo.response_answer_options`]

| JSON Element                                                                                 | Database Column      |
| -------------------------------------------------------------------------------------------- | -------------------- |
| MD5(response::question\_answer::id + response::question\_answer::options::id)                | id                   |
| MD5(survey::id + response::question\_answer::options::id)                                    | question\_option\_id |
| response::question\_answer::id                                                               | response\_answer\_id |
| response::question\_answer::options::option \|\| response::question\_answer::options::answer | answer               |
| response::question\_answer::options::rank                                                    | rank                 |
| Daasity: timestamp when loaded into DB                                                       | loaded\_at           |
