Datasets
Datasets are modules of data that can be published to workspaces. Datasets are visualised in Meltano Cloud following the Chart.js specifications.
Objects
Dataset
| Path | JSON Type | Format | Description |
|---|---|---|---|
id | string | Version 4 UUID | The dataset ID |
published | string | ISO 8601 timestamp | The instant the dataset was published |
alias | string | The dataset alias | |
workspaceId | string | Version 4 UUID | The workspace ID of the published dataset |
source | string | The channel ID where the dataset was initially published to | |
title | string | The dataset title | |
description | string | The dataset description (may contain markdown) | |
questions | string | The dataset questions | |
rawData | string | JSON | The dataset raw data |
visualisation | string | JSON | The dataset visualisation metadata. More Info |
metadata | string | JSON | The dataset metadata. More Info |
query | string | SQL statement | The dataset query. More Info |
likeCount | number | Unsigned integer | The number of likes the dataset has received |
likedByProfiles | object[] | Array of Members | The members that have liked the dataset |
commentCount | number | Unsigned integer | The number of comments the dataset has received |
viewCount | number | Unsigned integer | The number of views the dataset has received |
created | string | ISO 8601 timestamp | The instant the dataset was create |
score | number | Decimal | The dataset score used to determine its position in the workspace Feed |
Example response body
Dataset Message
| Path | JSON Type | Format | Description |
|---|---|---|---|
id | string | Version 4 UUID | The dataset message ID (shared with the resulting notification) |
recipientId | string | The recipient profile ID | |
message | string | The dataset message content | |
datasetId | string | Version 4 UUID | The message subject dataset ID |
Example response body
Requests
View all datasets in a workspace
GET /api/workspaces/{workspace-id}/datasets
Returns all datasets in the workspace {workspace-id}.
Prerequisites
- The user must be a member of the workspace
{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets' -i -X GET
import requests
url = "https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset collection with HAL links.
Example response body
View all liked datasets in a workspace
GET /api/workspaces/{workspace-id}/liked
Returns all datasets in the workspace {workspace-id} liked by the authenticated profile.
Prerequisites
- The user must be a member of the workspace
{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/liked' -i -X GET
import requests
url = "https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/liked"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset collection with HAL links.
Example response body
View datasets by channel
GET /api/channels/{channel-id}/datasets
Returns datasets by the channel {channel-id}.
Prerequisites
- Channel
{channel-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/channels/892a6d77-f70e-4d25-9c0d-b0b444db15f0/datasets' -i -X GET
import requests
url = "https://app.meltano.com:443/api/channels/892a6d77-f70e-4d25-9c0d-b0b444db15f0/datasets"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset collection with HAL links.
Example response body
View a dataset
GET /api/datasets/{dataset-id}
Returns the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb' -i -X GET
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset with HAL links.
Example response body
View a dataset in a workspace
GET /api/workspaces/{workspace-id}/datasets/{dataset-id-or-alias}
Returns the dataset {dataset-id-or-alias} in the workspace {workspace-id}.
Prerequisites
- The user must be a member of the workspace
{workspace-id} - Dataset
{dataset-id-or-alias}must exist within the workspace{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets/sit-generated-dataset' -i -X GET
import requests
url = "https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets/sit-generated-dataset"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset with HAL links.
Example response body
View the data of a dataset
GET /api/datasets/{dataset-id}/data
Returns the data of the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Headers
Accept
| Media Type(s) | Description |
|---|---|
application/json */* | Sets the response content type format to JSON |
text/csv | Sets the response content type format to CSV |
Defaults to application/json (given Accept */* or no Accept header).
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/4544efd3-7fc1-4f8c-86d5-06e9ab4160c2/data' -i -X GET
import requests
url = "https://app.meltano.com:443/api/datasets/4544efd3-7fc1-4f8c-86d5-06e9ab4160c2/data"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200: The dataset data (defaults to JSON format).
Example response body
204: No response body provided.
Publish a dataset to a workspace
POST /api/workspaces/{workspace-id}/datasets
Publishes a dataset to the workspace {workspace-id}.
Prerequisites
- The user must be a member of the workspace
{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"alias" : "sit-generated-dataset",
"title" : "SIT-Generated Dataset [2026-12-04T06:42:12.964372672]",
"description" : "This dataset was created during a SIT run.",
"questions" : "What questions might this dataset help answer?",
"query" : "SELECT * FROM table_name;"
}'
import requests
url = "https://app.meltano.com:443/api/workspaces/757c63e1-4b72-4133-8cc5-633a8d2734a1/datasets"
data = {
"alias" : "sit-generated-dataset",
"title" : "SIT-Generated Dataset [2026-12-04T06:42:12.964372672]",
"description" : "This dataset was created during a SIT run.",
"questions" : "What questions might this dataset help answer?",
"query" : "SELECT * FROM table_name;"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK / 201 Created
Dataset with HAL links.
Example response body
Edit a dataset
PATCH /api/datasets/{dataset-id}
Edits the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Body
This request can update one or more of the dataset fields at once. With a single request, it is possible to - for example - edit the dataset title only, or both title and description (shown below).
{
"title" : "SIT-Generated Dataset [2026-12-04T06:42:13.262407585]",
"description" : "This dataset was edited during a SIT run."
}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"title" : "SIT-Generated Dataset [2026-12-04T06:42:13.262407585]",
"description" : "This dataset was edited during a SIT run."
}'
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb"
data = {
"title" : "SIT-Generated Dataset [2026-12-04T06:42:13.262407585]",
"description" : "This dataset was edited during a SIT run."
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PATCH", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK
Dataset with HAL links.
Example response body
Record a view of a dataset
PUT /api/datasets/{dataset-id}/view
"Adds a view to the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/view' -i -X PUT \
-H 'Content-Type: application/json'
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/view"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
No response body provided.
Record a like of a dataset
PUT /api/datasets/{dataset-id}/like
Records a like of the dataset {dataset-id} from the authenticated user profile.
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/like' -i -X PUT \
-H 'Content-Type: application/json'
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/like"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
No response body provided.
Remove a like from a dataset
DELETE /api/datasets/{dataset-id}/like
Removes a like of the dataset {dataset-id} from the authenticated user profile.
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/like' -i -X DELETE
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/like"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.
Initialise a new dataset message
POST /api/datasets/{dataset-id}/messages
Initialises a new dataset message for the dataset {dataset-id}
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/messages' -i -X POST \
-H 'Content-Type: application/json'
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/messages"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset Message with HAL links.
Example response body
Create or update a dataset message
PUT /api/datasets/{dataset-id}/messages/{message-id}
Creates or updates the dataset message {message-id} for the dataset {dataset-id}. This appears as DATASET_MESSAGE notification for the recipient.
Prerequisites
- Dataset
{dataset-id}must exist
Body
Dataset Message resource.
{
"recipientId" : "auth0|6a21dc7aa1db2e036a222942",
"message" : "SIT-generated dataset message [2026-12-04T06:42:13.933073478]"
}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/messages/407840ce-edca-4468-bb10-fedef41a2bd8' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"recipientId" : "auth0|6a21dc7aa1db2e036a222942",
"message" : "SIT-generated dataset message [2026-12-04T06:42:13.933073478]"
}'
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb/messages/407840ce-edca-4468-bb10-fedef41a2bd8"
data = {
"recipientId" : "auth0|6a21dc7aa1db2e036a222942",
"message" : "SIT-generated dataset message [2026-12-04T06:42:13.933073478]"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK / 201 Created
Dataset Message with HAL links.
Example response body
Delete a dataset
DELETE /api/datasets/{dataset-id}
Deletes the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb' -i -X DELETE
import requests
url = "https://app.meltano.com:443/api/datasets/bc6978d5-68fc-4134-aecb-ad301d7179bb"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.
Further Reading: