Skip to content

Commit 8f2d4a6

Browse files
author
Yuriy Tolstykh
authored
feat: add warehouse connectors openapi (#1304)
* adding warehouse connectors openapi config * adding importId * adding importId in params * adding overview * adding overview file * fixing tags * changing operation id * modifying spec * adding empty slug * removing empty slug * fixing copy and dates
1 parent 2e874c0 commit 8f2d4a6

File tree

5 files changed

+92
-10
lines changed

5 files changed

+92
-10
lines changed

openapi/openapi.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apiDefinitions:
99
lexicon-schemas: ./src/lexicon-schemas.openapi.yaml
1010
query: ./src/query.openapi.yaml
1111
service-accounts: ./src/service-accounts.openapi.yaml
12+
warehouse-connectors: ./src/warehouse-connectors.openapi.yaml
1213

1314
lint:
1415
extends:

openapi/src/common/parameters.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ path:
55
schema:
66
type: integer
77
required: true
8-
description: 'Your project id (eg: 12345)'
8+
description: "Your project id (eg: 12345)"
99
organizationId:
1010
in: path
1111
name: organizationId
1212
schema:
1313
type: integer
1414
required: true
15-
description: 'Your organization id (eg: 12345)'
15+
description: "Your organization id (eg: 12345)"
16+
importId:
17+
in: path
18+
name: importId
19+
schema:
20+
type: integer
21+
required: true
22+
description: "Your warehouse import id (eg: 12345)"
1623
query:
1724
projectId:
1825
in: query
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
openapi: 3.0.2
2+
info:
3+
title: Warehouse Connectors API
4+
description: Connect an external warehouse to import events, users, groups, and lookup tables.
5+
version: 1.0.0
6+
contact:
7+
url: https://mixpanel.com/get-support
8+
servers:
9+
- $ref: ./common/app-api.yaml#/server
10+
security:
11+
- ServiceAccount: []
12+
tags:
13+
- name: Run an import
14+
description: Trigger an import sync via API
15+
paths:
16+
/projects/{projectId}/warehouse-sources/imports/{importId}/manual-sync:
17+
put:
18+
parameters:
19+
- $ref: ./common/parameters.yaml#/path/projectId
20+
- $ref: ./common/parameters.yaml#/path/importId
21+
operationId: run-an-import
22+
requestBody:
23+
required: true
24+
content:
25+
application/json: {}
26+
tags:
27+
- Run an import
28+
summary: Run an import
29+
description: >-
30+
This API endpoint triggers an immediate sync for a given warehouse import.
31+
responses:
32+
"200":
33+
description: Success
34+
content:
35+
application/json:
36+
schema:
37+
type: object
38+
properties:
39+
status:
40+
$ref: "./common/responses.yaml#/ResponseStatusOk"
41+
"401":
42+
$ref: "./common/responses.yaml#/401Unauthorized"
43+
"403":
44+
$ref: "./common/responses.yaml#/403Forbidden"
45+
"404":
46+
$ref: "./common/responses.yaml#/404NotFound"
47+
components:
48+
securitySchemes:
49+
$ref: ./common/securitySchemes.yaml

reference/Mixpanel APIs/overview.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,57 @@ title: "Overview"
33
slug: "overview"
44
hidden: false
55
createdAt: "2020-08-13T17:28:39.814Z"
6-
updatedAt: "2021-10-07T19:08:48.152Z"
6+
updatedAt: "2024-08-05T19:31:43.295Z"
77
---
8+
89
Mixpanel supports API endpoints that can query, export, and import data as well as manipulate Mixpanel metadata (such as data definitions).
910

1011
The API endpoints are organized by the function that they support. The API structure is as follows:
1112

12-
### [**Ingestion API**](ref:ingestion-api)
13+
### [**Ingestion API**](ref:ingestion-api)
14+
1315
**Standard Server:** `api.mixpanel.com`
1416
**EU Residency Server:** `api-eu.mixpanel.com`
1517
Use the Ingestion API to get your data into Mixpanel. This includes live events, historical imports, and user profile data.
1618

19+
### [**Query API**](ref:query-api)
1720

18-
### [**Query API**](ref:query-api)
1921
**Standard Server:** `mixpanel.com/api`
2022
**EU Residency Server:** `eu.mixpanel.com/api`
2123
Use the Query AP to get the same calculated data the powers Mixpanel's web application. This includes Insights, Funnels, Retention, and custom JQL Queries.
2224

23-
### [**Raw Data Export API **](ref:raw-data-export-api)
25+
### [**Raw Data Export API **](ref:raw-data-export-api)
26+
2427
**Standard Server:** `data.mixpanel.com/api/2.0/export`
2528
**EU Residency Server:** `data-eu.mixpanel.com/api/2.0/export`
2629
Use the Raw Data Export API endpoint to obtain your event data. This API supports direct download or uploading to a cloud bucket.
2730

2831
### [**Data Pipelines API**](ref:overview-2)
32+
2933
**Standard Server:** `data.mixpanel.com/api/2.0/nessie`
3034
**EU Residency Server:** `data-eu.mixpanel.com/api/2.0/nessie`
31-
Use the Data Pipelines API to export Mixpanel data to your own Data Warehouse. Mixpanel’s Data Pipelines product removes the need to build complex connectors, maintain exporting code, and apply ad-hoc data transformations.
35+
Use the Data Pipelines API to export Mixpanel data to your own Data Warehouse. Mixpanel’s Data Pipelines product removes the need to build complex connectors, maintain exporting code, and apply ad-hoc data transformations.
36+
37+
### [**Lexicon Schemas API**](ref:lexicon-schemas-api)
3238

33-
### [**Lexicon Schemas API**](ref:lexicon-schemas-api)
3439
**Standard Server:** `mixpanel.com/api/app/projects`
3540
**EU Residency Server:** `eu.mixpanel.com/api/app/projects`
3641
Use the Schemas API to manage your data definitions in Lexicon and Data Audit
3742

38-
### [**Connectors API**](ref:connectors-api)
43+
### [**Connectors API**](ref:connectors-api)
44+
3945
**Standard Server:** `mixpanel.com/api/app/projects`
4046
**EU Residency Server:** `eu.mixpanel.com/api/app/projects`
4147
Batch import large volumes of data into Mixpanel from a cloud bucket
4248

43-
### [**GDPR API**](ref:gdpr-api)
49+
### [**GDPR API**](ref:gdpr-api)
50+
4451
**Standard Server:** `mixpanel.com/api/app/data-retrievals`
4552
**EU Residency Server:** `eu.mixpanel.com/api/app/data-retrievals`
4653
The retrieval and deletion API calls are updated for version 3 and are made for GDPR and CCPA compliance.
54+
55+
### [**Warehouse Connectors API**](ref:warehouse-connectors-api)
56+
57+
**Standard Server:** `mixpanel.com/api/app/projects`
58+
**EU Residency Server:** `eu.mixpanel.com/api/app/projects`
59+
Use the Warehouse Connectors API to manually run a warehouse imports.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Overview"
3+
slug: "warehouse-connectors-api"
4+
hidden: false
5+
createdAt: "2024-08-05T19:31:43.295Z"
6+
updatedAt: "2024-08-05T19:31:43.295Z"
7+
categorySlug: "warehouse-connectors-api"
8+
---
9+
10+
Warehouse Connectors allow you to connect a warehouse of your choice to import events, users, groups, and lookup tables.
11+
12+
Use Warehouse Connectors API to run a specific import manually.

0 commit comments

Comments
 (0)