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
| Path | JSON Type | Format | Description |
|---|---|---|---|
id |
string |
Version 4 UUID | The subscription ID |
created |
string |
ISO 8601 timestamp | The instant the subscription was created at |
lastModified |
string |
ISO 8601 timestamp | The instant the subscription was last modified at |
type |
string |
Subscription Type | The type of subscription |
{
"id" : "3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"created" : "2025-12-08T11:42:32.261289",
"lastModified" : "2025-12-08T11:42:32.26129",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb"
}
}
}
Formats
Subscription Type
string
| Value | Description |
|---|---|
ALL |
Triggers notifications for all resource events |
ALERTS |
Triggers notifications for resource alert events only |
NONE |
Does not trigger any notifications |
Requests
- View all subscriptions
- View all member subscriptions to a workspace
- View a subscription
- Subscribe to a workspace
- Subscribe to a channel
- Subscribe to a dataset
- Subscribe to a pipeline
- Update a subscription
- Remove a subscription
View all subscriptions
GET
/api/subscriptions
Returns all subscriptions for the authenticated user profile.
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription collection with HAL links.
{
"_embedded" : {
"subscriptions" : [ {
"id" : "3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"created" : "2025-12-08T11:42:32.261289",
"lastModified" : "2025-12-08T11:42:32.354019",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb"
}
}
}, {
"id" : "7d904193-cb2b-46a7-9371-e59d342cd7c3",
"created" : "2025-12-08T11:42:32.532692",
"lastModified" : "2025-12-08T11:42:32.532693",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "825282aa-7019-4180-bbf5-0c7df81cc716",
"published" : "2025-12-08T11:42:26.937466",
"alias" : "simple-bar-chart",
"workspaceId" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"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" : "2025-12-08T11:42:26.937465",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/825282aa-7019-4180-bbf5-0c7df81cc716"
}
}
}, {
"id" : "2a08a275-add2-4879-95cc-ac0f619fe60f",
"created" : "2025-12-08T11:42:38.108914",
"lastModified" : "2025-12-08T11:42:38.108916",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "de558c54-59a9-4e06-8656-99c0aad9d1f5",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2025-12-08T11:42:32.862921"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/de558c54-59a9-4e06-8656-99c0aad9d1f5"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.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
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176/members/subscriptions' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176/members/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription collection with HAL links.
{
"_embedded" : {
"subscriptions" : [ {
"id" : "9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"created" : "2025-12-08T11:42:38.265242",
"lastModified" : "2025-12-08T11:42:38.265243",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"name" : "Test Workspace [2025-12-08T11:42:26.524409840]"
},
"workspace" : {
"id" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"name" : "Test Workspace [2025-12-08T11:42:26.524409840]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176/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
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"created" : "2025-12-08T11:42:32.261289",
"lastModified" : "2025-12-08T11:42:32.26129",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb"
}
}
}
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
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether 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) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176/subscriptions?allMembers=true' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176/subscriptions?allMembers=true"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"created" : "2025-12-08T11:42:38.265241562",
"lastModified" : "2025-12-08T11:42:38.265242762",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"name" : "Test Workspace [2025-12-08T11:42:26.524409840]"
},
"workspace" : {
"id" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"name" : "Test Workspace [2025-12-08T11:42:26.524409840]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/9ded340a-b4f4-4d48-aa29-7a1c4de675d5",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176"
}
}
}
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
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to channel events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"created" : "2025-12-08T11:42:32.261288652",
"lastModified" : "2025-12-08T11:42:32.261289852",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb"
}
}
}
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
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to dataset events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/825282aa-7019-4180-bbf5-0c7df81cc716/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/825282aa-7019-4180-bbf5-0c7df81cc716/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "7d904193-cb2b-46a7-9371-e59d342cd7c3",
"created" : "2025-12-08T11:42:32.532691972",
"lastModified" : "2025-12-08T11:42:32.532692872",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "825282aa-7019-4180-bbf5-0c7df81cc716",
"published" : "2025-12-08T11:42:26.937466",
"alias" : "simple-bar-chart",
"workspaceId" : "b6fd3ec0-bed9-46c2-9ed7-8fbcc48f2176",
"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" : "2025-12-08T11:42:26.937465",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/7d904193-cb2b-46a7-9371-e59d342cd7c3",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/825282aa-7019-4180-bbf5-0c7df81cc716"
}
}
}
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
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to pipeline events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/pipelines/de558c54-59a9-4e06-8656-99c0aad9d1f5/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/pipelines/de558c54-59a9-4e06-8656-99c0aad9d1f5/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "2a08a275-add2-4879-95cc-ac0f619fe60f",
"created" : "2025-12-08T11:42:38.108914017",
"lastModified" : "2025-12-08T11:42:38.108916217",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "de558c54-59a9-4e06-8656-99c0aad9d1f5",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2025-12-08T11:42:32.862921"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2a08a275-add2-4879-95cc-ac0f619fe60f",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/de558c54-59a9-4e06-8656-99c0aad9d1f5"
}
}
}
Update a subscription
PUT
/api/subscriptions/{subscription-id}
Updates the subscription {subscription-id}.
Prerequisites
- Subscription
{subscription-id}must exist
Request
Body
| Path | JSON Type | Format | Description |
|---|---|---|---|
type |
string |
Subscription Type | The type of subscription |
{
"type" : "ALERTS"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"type" : "ALERTS"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
data = {
"type" : "ALERTS"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"created" : "2025-12-08T11:42:32.261289",
"lastModified" : "2025-12-08T11:42:32.354019",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/22f2c7f5-a7a0-45d3-8338-f601a3a764cb"
}
}
}
Remove a subscription
DELETE
/api/subscriptions/{subscription-id}
Removes the subscription {subscription-id}.
Prerequisites
- Subscription
{subscription-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/3122fe7f-d5b0-4da7-bd20-8ebfe1b870c3"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.