---
title: "Integration: Gorgias"
description: This article will help you learn about how Daasity replicates data from Gorgias, limitations to the data we can extract and where the data is stored in the Gorgias schema.
---

[Back to home](https://support.daasity.com/migrated/knowledge)

- [ Welcome to Daasity
  
  
  
  ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity) 
    - [ Integration Setup | Connect Your Data Sources ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#integration-setup-connect-your-data-sources)
    - [ Integration Setup | Amazon Seller Central ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#integration-setup-amazon-seller-central)
    - [ Navigating the Daasity App ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#navigating-the-daasity-app)
- [ Daasity Platform | Business User Analytics
  
  
  
  ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics) 
    - [ Brand Supplied Data (BSD) ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#brand-supplied-data-bsd)
    - [ Dashboards ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#dashboards)
    - [ Reports ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#reports)
    - [ Explores ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#explores)
    - [ Views ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#views)
    - [ Audiences ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#audiences)
    - [ Customizations ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#customizations)
- [ ELT+ | Technical User Documentation
  
  
  
  ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation) 
    - [ Platform ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#platform)
    - [ Transformation ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#transformation)
    - [ Integrations ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#integrations)
- [ User Manual and Support
  
  
  
  ](https://support.daasity.com/migrated/knowledge/user-manual-and-support) 
    - [ Daasity Logic and Best Practices ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#daasity-logic-and-best-practices)
    - [ Marketing Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#marketing-analytics)
    - [ Customer Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#customer-analytics)
    - [ Date Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#date-analytics)
    - [ Inventory and Returns Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#inventory-and-returns-analytics)
    - [ Submit a Support Request ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#submit-a-support-request)
- [ Release Updates
  
  
  
  ](https://support.daasity.com/migrated/knowledge/release-updates) 
    - [ Release Updates ](https://support.daasity.com/migrated/knowledge/release-updates#release-updates)

# Integration: Gorgias

## This article will help you learn about how Daasity replicates data from Gorgias, limitations to the data we can extract and where the data is stored in the Gorgias schema.

### Key Topics

Click on the links below to take you to the section where you can learn more about this Integration

- [API Endpoints](https://support.daasity.com/migrated/knowledge/integration-gorgias#api-endpoints)
- [Entity Relationship Diagram](https://support.daasity.com/migrated/knowledge/integration-gorgias#erd)
- [Gorgias Schema](https://support.daasity.com/migrated/knowledge/integration-gorgias#gorgias-schema)
- [Related Resources](https://support.daasity.com/migrated/knowledge/integration-gorgias#related-resources)

### Integration Availability

This integration is available for:

- Growth
- Pro (V1 and V2)

### Integration Overview

Gorgias is a customer support platform used by merchants to centralize customer interactions and automate responses to repetitive questions. The Daasity integration with Gorgias extracts data from the most important endpoints needed to analyze how customers interact with customer support and the performance of those interactions.

### API Endpoints

The Daasity Gorgias extractor is built based on this [Gorgias API documentation](https://developers.gorgias.com/reference/introduction).  The following endpoints are used by Daasity to replicate data from Gorgias:

- [Account](https://developers.gorgias.com/reference/the-account-object)
- [Events](https://developers.gorgias.com/reference/get_api-events)<https://developers.gorgias.com/reference/the-integration-object>
- [Tickets](https://developers.gorgias.com/reference/the-ticket-object)
- [Tags](https://developers.gorgias.com/reference/the-tag-object)
- [Ticket Messages](https://developers.gorgias.com/reference/the-ticketmessage-object)
- [Users](https://developers.gorgias.com/reference/the-user-object)
- [Satisfaction Surveys](https://developers.gorgias.com/reference/the-satisfactionsurvey-object)

### **Entity Relationship Diagram (ERD) **

The embedded diagram houses the ERD for the Daasity Gorgias integration illustrating the different tables and keys to join across tables.  Hover over the embedded diagram to reveal controls to zoom and scroll.

### Gorgias Schema

The Daasity Gorgias 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.

- [Accounts](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-accounts)
- [Accounts Custom Attributes](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-accounts-custom-attributes)
- [Accounts Custom Attributes Data](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-accounts-custom-attributes-data)
- [Events](https://support.daasity.com/migrated/knowledge/integration-gorgias#events_table)
- [Tickets](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-tickets)
- [Ticket Tags](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-ticket-tags)
- [Ticket Messages](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-ticket-msgs)
- [Users](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-users)
- [Satisfaction Surveys](https://support.daasity.com/migrated/knowledge/integration-gorgias#schema-satisfaction-survey)

 

#### Accounts

- Endpoint: [Account](https://developers.gorgias.com/reference/the-account-object)
- Update Method: UPSERT
- Table Name: gorgias.accounts

| **JSON Element**** ** | **Database Column** |
| --- | --- |
| domain  | domain  |
| status  | status  |
| created_datetime  | created_at  |
| current_subscription::plan  | subscription_plan  |
| current_subscription::start_datetime  | subscription_created_at  |
| current_subscription::status  | subscription_status  |
| settings::id  | setting_id  |
| settings::type  | setting_type  |
| settings::data::timezone  | timezone  |
| settings::data::business_hours::days  | business_days  |
| settings::data::business_hours::to_time  | business_close  |
| settings::data::business_hours::from_time  | business_open  |
| MD5(id + domain) | __sync_key |
| Daasity: timestamp when loaded into DB | __synced_at |

 

 

#### Accounts Custom Attributes

- Endpoint: [Account](https://developers.gorgias.com/reference/the-account-object)
- Update Method: UPSERT
- Table Name: gorgias.accounts_custom_attributes

| **JSON Element** | **Database Column** |
| --- | --- |
| domain | domain |
| setting_row::id | settings_id |
| key | custom_attribute_key |
| value | custom_attribute_value |
| setting_row::type | custom_attribute_type |
| _account_id | account_id |
| MD5(setting_row::id + domain + key) | __sync_key |

 

#### Accounts Custom Attributes Data

- Endpoint: [Account](https://developers.gorgias.com/reference/the-account-object)
- Update Method: UPSERT
- Table Name: gorgias.accounts_custom_attributes_data

| **JSON Element** | **Database Column** |
| --- | --- |
| domain | domain |
| settings_row::id | settings_id |
| array_name | attribute_data_name |
| settings_row::type | custom_attribute_type |
| index | custom_attribute_index |
| key | custom_data_key |
| value | custom_data_value |
| MD5(settings_row::id + domain + array_name + index + source_id + key) | __sync_key |

#### Events

- Endpoint: <https://developers.gorgias.com/reference/the-account-object>
- Update Method: UPSERT
- Table Name: gorgias.event

| **JSON Element** | **Database Column** |
| --- | --- |
| id | event_id |
| uri | event_uri |
| object_type | object_type |
| object_id | object_id |
| user_id | user_id |
| type | event_type |
| context | context |
| created_datetime | created_at |
| MD5(id) | __sync_key |

 

#### Tickets

- Endpoint: [Tickets](https://developers.gorgias.com/reference/the-ticket-object)
- Update Method: UPSERT
- Table Name: gorgias.tickets

| **JSON Element**** ** | **Database Column** |
| --- | --- |
|  id  |  ticket_id  |
|  external_id  |  external_id  |
|  channel  |  ticket_channel  |
|  via  |  via  |
|  from_agent  |  from_agent  |
|  status  |  ticket_status  |
|  priority  |  ticket_priority  |
|  requester::id  |  requester_id  |
|  requester::email  |  requester_email  |
|  requester::name  |  requester_name  |
|  requester::firstname  |  requester_firstname  |
|  requester::lastname  |  requester_lastname  |
|  customer::id  |  customer_id  |
|  customer::email  |  customer_email  |
|  customer::name  |  customer_name  |
|  customer::firstname  |  customer_firstname  |
|  customer::lastname  |  customer_lastname  |
|  assignee_user::firstname  |  assignee_firstname  |
|  assignee_user::lastname  |  assignee_lastname  |
|  assignee_user::id  |  assignee_id  |
|  assignee_user::email  |  assignee_email  |
|  subject  |  ticket_subject  |
|  except  |  ticket_excerpt  |
|  messages_count  |  messages_count  |
|  is_unread  |  is_unread  |
|  created_datetime  |  created_at  |
|  opened_datetime  |  opened_at  |
|  last_received_message_datetime  |  last_received_at  |
|  last_message_datetime  |  last_message_at  |
|  updated_datetime  |  updated_at  |
|  closed_datetime  |  closed_at  |
| trashed_datetime | trashed_at |
| snooze_datetime | snooze_at |
| MD5(id + requestor::id + created_datetime + source_id) | __sync_key |

 

#### **Ticket Tags**

- Endpoint: [Tickets](https://developers.gorgias.com/reference/the-ticket-object) and [Tags](https://developers.gorgias.com/reference/the-tag-object)
- Update Method: UPSERT
- Table Name: gorgias.ticket_tags

| **JSON Element**** ** | **Database Column** |
| --- | --- |
|  id  |  ticket_id  |
|  tag::name  |  tag_name  |
|  tag::id  |  tag_id  |
| account_id | __account_id |
|  MD5(id + name + source_id) |  __sync_key |

**  
**

#### Ticket Messages

- Endpoint: [Tickets](https://developers.gorgias.com/reference/the-ticket-object) and [Ticket Messages](https://developers.gorgias.com/reference/the-ticketmessage-object)
- Update Method: UPSERT
- Table Name: gorgias.ticket_messages

 

| **JSON Element** | **Database Column** |
| --- | --- |
| id | message_id |
| ticket_id | ticket_id |
| public | public |
| channel | channel |
| via | via |
| sender::id | sender_id |
| sender::email | sender_email |
| sender::name | sender_name |
| sender::firstname | sender_firstname |
| sender::lastname | sender_lastname |
| sender::channel | sender_channel |
| integration_id | integration_id |
| from_agent | from_agent |
| receiver::id | receiver_id |
| receiver::email | receiver_email |
| receiver::name | receiver_name |
| receiver::firstname | receiver_firstname |
| receiver::lastname | receiver_lastname |
| receiver::meta::name_set_via | receiver_channel |
| subject | subject |
| body_text | body_text |
| stripped_text | stripped_text |
| created_datetime | created_at |
| sent_datetime | send_at |
| account_id | _account_id |
| MD5(id + ticket_id + source_id) | __sync_key |

 

#### Users

- Endpoint: [Users](https://developers.gorgias.com/reference/the-user-object)
- Update Method: UPSERT
- Table Name: gorgias.users

 

| **JSON Element**** ** | **Database Column** |
| --- | --- |
|  id  |  user_id  |
|  external_id  |  external_id  |
|  active  |  active  |
|  email  |  user_email  |
|  firstname  |  first_name  |
|  lastname  |  last_name  |
| name | user_name |
|  created_datetime  |  created_at  |
|  updated_datetime  |  updated_at  |
| account_id |  _account_id |
|  MD5(id + source_id) |  __sync_key |

​

#### Satisfaction Survey

- Endpoint: [Satisfaction Surveys](https://developers.gorgias.com/reference/the-satisfactionsurvey-object)
- Update Method: UPSERT
- Table Name: gorgias.satisfaction_survey

| **JSON Element**** ** | **Database Column** |
| --- | --- |
|  id  |  survey_id  |
|  customer_id  |  customer_id  |
|  ticket_id  |  ticket_id  |
|  sent_datetime  |  sent_at  |
|  scored_datetime  |  scored_at  |
|  body_text  |  body_text  |
|  score  |  score  |
|  created_datetime  |  created_at  |
|  MD5(id + customer_id + ticket_id + source_id) |  __sync_key |

 

 

### Release Notes

- Updated: 2023-02-27 
    - Add the [gorgias.events] table