Posthog
Prerequisites
- api_key - obtain Private API Key for your account following these steps
- base_url - 'https://app.posthog.com' by default, but it can be different if self-hosted posthog instances is used
Tables in the Posthog connector
| No | Table Name | Columns | Primary Keys | Read Mode | Inc. Sync Keys | API Info |
|---|---|---|---|---|---|---|
| 1 | persons | 4 | id | Full Refresh | API Reference | |
| 2 | projects | 11 | id | Full Refresh | API Reference | |
| 3 | insights | 23 | id | Full Refresh | API Reference | |
| 4 | feature_flags | 9 | id | Full Refresh | ||
| 5 | annotations | 10 | id | Full Refresh | API Reference | |
| 6 | events | 8 | id | Full Refresh, Incremental | timestamp | API Reference |
| 7 | cohorts | 11 | id | Full Refresh | API Reference |
Table: persons
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | name | VARCHAR | |
| 2 | created_at | VARCHAR | |
| 3 | id | VARCHAR | Primary Key |
| 4 | distinct_ids | VARCHAR |
Table: projects
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | completed_snippet_onboarding | BOOLEAN | |
| 2 | timezone | VARCHAR | |
| 3 | organization | VARCHAR | |
| 4 | api_token | VARCHAR | |
| 5 | access_control | BOOLEAN | |
| 6 | effective_membership_level | DOUBLE | |
| 7 | name | VARCHAR | |
| 8 | id | DOUBLE | Primary Key |
| 9 | uuid | VARCHAR | |
| 10 | is_demo | BOOLEAN | |
| 11 | ingested_event | BOOLEAN |
Table: insights
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | saved | BOOLEAN | |
| 2 | timezone | VARCHAR | |
| 3 | last_refresh | VARCHAR | |
| 4 | created_at | VARCHAR | |
| 5 | description | VARCHAR | |
| 6 | short_id | VARCHAR | |
| 7 | filters | VARCHAR | |
| 8 | filters_hash | VARCHAR | |
| 9 | last_modified_by | VARCHAR | |
| 10 | effective_restriction_level | DOUBLE | |
| 11 | created_by | VARCHAR | |
| 12 | last_modified_at | VARCHAR | |
| 13 | is_sample | BOOLEAN | |
| 14 | tags | VARCHAR | |
| 15 | result | VARCHAR | |
| 16 | effective_privilege_level | DOUBLE | |
| 17 | deleted | BOOLEAN | |
| 18 | updated_at | VARCHAR | |
| 19 | refreshing | BOOLEAN | |
| 20 | name | VARCHAR | |
| 21 | id | DOUBLE | Primary Key |
| 22 | order | VARCHAR | |
| 23 | favorited | BOOLEAN |
Table: feature_flags
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | deleted | BOOLEAN | |
| 2 | rollout_percentage | INTEGER | |
| 3 | name | VARCHAR | |
| 4 | active | BOOLEAN | |
| 5 | created_at | VARCHAR | |
| 6 | id | INTEGER | Primary Key |
| 7 | filters | VARCHAR | |
| 8 | created_by | VARCHAR | |
| 9 | key | VARCHAR |
Table: annotations
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | deleted | BOOLEAN | |
| 2 | date_marker | VARCHAR | |
| 3 | updated_at | VARCHAR | |
| 4 | creation_type | VARCHAR | |
| 5 | scope | VARCHAR | |
| 6 | created_at | VARCHAR | |
| 7 | id | INTEGER | Primary Key |
| 8 | created_by | VARCHAR | |
| 9 | content | VARCHAR | |
| 10 | dashboard_item | VARCHAR |
Table: events
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | distinct_id | VARCHAR | |
| 2 | person | VARCHAR | |
| 3 | elements | VARCHAR | |
| 4 | id | VARCHAR | Primary Key |
| 5 | event | VARCHAR | |
| 6 | elements_chain | VARCHAR | |
| 7 | properties | VARCHAR | |
| 8 | timestamp | VARCHAR | Incremental sync key |
Table: cohorts
| No | Column Name | Type | Notes |
|---|---|---|---|
| 1 | deleted | BOOLEAN | |
| 2 | last_calculation | VARCHAR | |
| 3 | is_static | BOOLEAN | |
| 4 | is_calculating | BOOLEAN | |
| 5 | name | VARCHAR | |
| 6 | count | INTEGER | |
| 7 | groups | VARCHAR | |
| 8 | created_at | VARCHAR | |
| 9 | id | INTEGER | Primary Key |
| 10 | created_by | VARCHAR | |
| 11 | errors_calculating | INTEGER |
External Resources
Zipstack Cloud features a powerful SQL querying engine on top of many types of connectors, including those from Trino, some custom connectors and connectors from the open source Airbyte project. Some Zipstack cloud connectors are designed to utilize and expand upon Airbyte's connector protocol, but they do not use Airbyte's EL core. Additionally, some parts of the documentation for these connectors have been adapted from the connector documentation found in Airbyte's open source project.