Skip to main content

Subscriptions

Subscriptions are a declaration of interest in a particular resource, allowing a user to receive notifications when certain events occur. The events that trigger notifications are controlled by the type of subscription.


Objects​

Subscription​

PathJSON TypeFormatDescription
idstringVersion 4 UUIDThe subscription ID
createdstringISO 8601 timestampThe instant the subscription was created at
lastModifiedstringISO 8601 timestampThe instant the subscription was last modified at
typestringSubscription TypeThe type of subscription
{
"id" : "198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"created" : "2026-07-13T16:39:42.110161",
"lastModified" : "2026-07-13T16:39:42.110163",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "PUT"
},
"channel" : {
"href" : "https://staging.meltano.com/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b"
}
}
}

Formats​

Subscription Type​

string

ValueDescription
ALLTriggers notifications for all resource events
ALERTSTriggers notifications for resource alert events only
NONEDoes not trigger any notifications

Requests​

View all subscriptions​

GET /api/subscriptions

Returns all subscriptions for the authenticated user profile.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/subscriptions' -i -X GET

Response​

200 OK

Subscription collection with HAL links.

{
"_embedded" : {
"subscriptions" : [ {
"id" : "198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"created" : "2026-07-13T16:39:42.110161",
"lastModified" : "2026-07-13T16:39:42.232457",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "PUT"
},
"channel" : {
"href" : "https://staging.meltano.com/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b"
}
}
}, {
"id" : "f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"created" : "2026-07-13T16:39:42.489179",
"lastModified" : "2026-07-13T16:39:42.48918",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
},
"dataset" : {
"id" : "3180ef0b-c3c3-4017-8a2d-f31a7987e700",
"published" : "2026-07-13T16:39:36.707114",
"alias" : "simple-bar-chart",
"workspaceId" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"source" : "matatika-limited",
"title" : "How many people have visited our website?",
"description" : "# Some Markdown\n- point 1\n- point 2\n- point 3\n",
"questions" : "[''This is my question'', ''this is second question'']",
"visualisation" : "{\"google-chart\": {\"chartType\": \"BarChart\",\"options\": {\"title\": \"Website visitors\"}}}",
"query" : "SELECT to_char(date(report_date),'YYYYMM') as year_month, SUM(sessions) \n FROM\n \"google_analytics_website_overview\"\n WHERE\n \"google_analytics_website_overview\".\"report_date\" >= DATE(NOW()) - INTERVAL '365 DAY'\n GROUP BY year_month\n ORDER BY year_month ASC;",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2026-07-13T16:39:36.724181",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"type" : "PUT"
},
"dataset" : {
"href" : "https://staging.meltano.com/api/datasets/3180ef0b-c3c3-4017-8a2d-f31a7987e700"
}
}
}, {
"id" : "bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"created" : "2026-07-13T16:39:48.15893",
"lastModified" : "2026-07-13T16:39:48.158932",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
},
"pipeline" : {
"id" : "4c05cb57-f67d-48ae-8eb6-3b0c2386a851",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2026-07-13T16:39:42.937049"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://staging.meltano.com/api/pipelines/4c05cb57-f67d-48ae-8eb6-3b0c2386a851"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 3,
"totalPages" : 1,
"number" : 0
}
}

View all member subscriptions to a workspace​

GET /api/workspaces/{workspace-id}/members/subscriptions

Returns all member subscriptions to the workspace {workspace-id}.

Prerequisites​

  • Workspace {workspace-id} must exist
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/workspaces/95cffb14-3b98-4282-907c-f83e5f95d9c4/members/subscriptions' -i -X GET

Response​

200 OK

Subscription collection with HAL links.

{
"_embedded" : {
"subscriptions" : [ {
"id" : "e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"created" : "2026-07-13T16:39:48.325862",
"lastModified" : "2026-07-13T16:39:48.325863",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"name" : "Test Workspace [2026-07-13T16:39:36.099396366]"
},
"workspace" : {
"id" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"name" : "Test Workspace [2026-07-13T16:39:36.099396366]"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://staging.meltano.com/api/workspaces/95cffb14-3b98-4282-907c-f83e5f95d9c4"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/workspaces/95cffb14-3b98-4282-907c-f83e5f95d9c4/members/subscriptions?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 1,
"totalPages" : 1,
"number" : 0
}
}

View a subscription​

GET /api/subscriptions/{subscription-id}

Returns the subscription {subscription-id}.

Prerequisites​

  • Subscription {subscription-id} must exist
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f' -i -X GET

Response​

200 OK

Subscription with HAL links.

{
"id" : "198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"created" : "2026-07-13T16:39:42.110161",
"lastModified" : "2026-07-13T16:39:42.110163",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "PUT"
},
"channel" : {
"href" : "https://staging.meltano.com/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b"
}
}
}

Subscribe to a workspace​

POST /api/workspaces/{workspace-id}/subscriptions

Subscribes the authenticated user profile to the workspace {workspace-id}.

By default, the subscription is configured for all workspace events (see Subscription Type for more information).

Prerequisites​

  • Workspace {workspace-id} must exist

Query Parameters​

ParameterRequiredFormatDefault ValueDescription
allMembersNoBooleanfalseWhether or not to subscribe the workspace to workspace events, in order to enable workspace-wide notifications for all members by default (applicable for the workspace owner only)
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/workspaces/95cffb14-3b98-4282-907c-f83e5f95d9c4/subscriptions?allMembers=true' -i -X POST \
-H 'Content-Type: application/json'

Response​

200 OK

Subscription with HAL links.

{
"id" : "e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"created" : "2026-07-13T16:39:48.325862153",
"lastModified" : "2026-07-13T16:39:48.325863354",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"name" : "Test Workspace [2026-07-13T16:39:36.099396366]"
},
"workspace" : {
"id" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"name" : "Test Workspace [2026-07-13T16:39:36.099396366]"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/e54743cc-4ccc-4953-a770-adbe1c7d6c9e",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://staging.meltano.com/api/workspaces/95cffb14-3b98-4282-907c-f83e5f95d9c4"
}
}
}

Subscribe to a channel​

POST /api/channels/{channel-id}/subscriptions

Subscribes the authenticated user profile to the channel {channel-id}.

By default, the subscription is configured for all channel events (see Subscription Type for more information).

Prerequisites​

  • Channel {channel-id} must exist

Query Parameters​

ParameterRequiredFormatDefault ValueDescription
allMembersNoBooleanfalseWhether or not to subscribe the workspace to channel events, enabling notifications for all members by default (applicable for the workspace owner only)
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b/subscriptions' -i -X POST \
-H 'Content-Type: application/json'

Response​

200 OK

Subscription with HAL links.

{
"id" : "198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"created" : "2026-07-13T16:39:42.110161446",
"lastModified" : "2026-07-13T16:39:42.110162665",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "PUT"
},
"channel" : {
"href" : "https://staging.meltano.com/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b"
}
}
}

Subscribe to a dataset​

POST /api/datasets/{dataset-id}/subscriptions

Subscribes the authenticated user profile to the dataset {dataset-id}.

By default, the subscription is configured for all dataset events (see Subscription Type for more information).

Prerequisites​

  • Dataset {dataset-id} must exist

Query Parameters​

ParameterRequiredFormatDefault ValueDescription
allMembersNoBooleanfalseWhether or not to subscribe the workspace to dataset events, enabling notifications for all members by default (applicable for the workspace owner only)
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/datasets/3180ef0b-c3c3-4017-8a2d-f31a7987e700/subscriptions' -i -X POST \
-H 'Content-Type: application/json'

Response​

200 OK

Subscription with HAL links.

{
"id" : "f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"created" : "2026-07-13T16:39:42.489179054",
"lastModified" : "2026-07-13T16:39:42.489180446",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
},
"dataset" : {
"id" : "3180ef0b-c3c3-4017-8a2d-f31a7987e700",
"published" : "2026-07-13T16:39:36.707114",
"alias" : "simple-bar-chart",
"workspaceId" : "95cffb14-3b98-4282-907c-f83e5f95d9c4",
"source" : "matatika-limited",
"title" : "How many people have visited our website?",
"description" : "# Some Markdown\n- point 1\n- point 2\n- point 3\n",
"questions" : "[''This is my question'', ''this is second question'']",
"visualisation" : "{\"google-chart\": {\"chartType\": \"BarChart\",\"options\": {\"title\": \"Website visitors\"}}}",
"query" : "SELECT to_char(date(report_date),'YYYYMM') as year_month, SUM(sessions) \n FROM\n \"google_analytics_website_overview\"\n WHERE\n \"google_analytics_website_overview\".\"report_date\" >= DATE(NOW()) - INTERVAL '365 DAY'\n GROUP BY year_month\n ORDER BY year_month ASC;",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2026-07-13T16:39:36.724181",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/f3d181f9-e154-4c8e-99ab-d3d9ec579ebd",
"type" : "PUT"
},
"dataset" : {
"href" : "https://staging.meltano.com/api/datasets/3180ef0b-c3c3-4017-8a2d-f31a7987e700"
}
}
}

Subscribe to a pipeline​

POST /api/pipelines/{pipeline-id}/subscriptions

Subscribes the authenticated user profile to the pipeline {pipeline-id}.

By default, the subscription is configured for all pipeline events (see Subscription Type for more information).

Prerequisites​

  • Pipeline {pipeline-id} must exist

Query Parameters​

ParameterRequiredFormatDefault ValueDescription
allMembersNoBooleanfalseWhether or not to subscribe the workspace to pipeline events, enabling notifications for all members by default (applicable for the workspace owner only)
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/pipelines/4c05cb57-f67d-48ae-8eb6-3b0c2386a851/subscriptions' -i -X POST \
-H 'Content-Type: application/json'

Response​

200 OK

Subscription with HAL links.

{
"id" : "bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"created" : "2026-07-13T16:39:48.15893044",
"lastModified" : "2026-07-13T16:39:48.158932192",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
},
"pipeline" : {
"id" : "4c05cb57-f67d-48ae-8eb6-3b0c2386a851",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2026-07-13T16:39:42.937049"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/bdb47446-d4d4-4a65-9f6c-862c5737e3a5",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://staging.meltano.com/api/pipelines/4c05cb57-f67d-48ae-8eb6-3b0c2386a851"
}
}
}

Update a subscription​

PUT /api/subscriptions/{subscription-id}

Updates the subscription {subscription-id}.

Prerequisites​

  • Subscription {subscription-id} must exist

Body​

PathJSON TypeFormatDescription
typestringSubscription TypeThe type of subscription
{
"type" : "ALERTS"
}
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"type" : "ALERTS"
}'

Response​

200 OK

Subscription with HAL links.

{
"id" : "198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"created" : "2026-07-13T16:39:42.110161",
"lastModified" : "2026-07-13T16:39:42.232457211",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|6a205ea86a76a69d8a3babcb",
"name" : "sit@meltano.com",
"handle" : "@sit1"
}
},
"_links" : {
"self" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f"
},
"delete subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://staging.meltano.com/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f",
"type" : "PUT"
},
"channel" : {
"href" : "https://staging.meltano.com/api/channels/2c23cabe-022c-4b38-9532-eddfd65b399b"
}
}
}

Remove a subscription​

DELETE /api/subscriptions/{subscription-id}

Removes the subscription {subscription-id}.

Prerequisites​

  • Subscription {subscription-id} must exist
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://staging.meltano.com:443/api/subscriptions/198f445d-bf09-47ff-b68f-3f9eb0cad24f' -i -X DELETE

Response​

204 No Content

No response body provided.