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 | 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" : "2d419a84-dc73-4473-8257-faa32db18236",
"created" : "2025-01-17T17:00:19.317588",
"lastModified" : "2025-01-17T17:00:19.317588",
"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/2d419a84-dc73-4473-8257-faa32db18236"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110"
}
}
}
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 \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
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" : "2d419a84-dc73-4473-8257-faa32db18236",
"created" : "2025-01-17T17:00:19.317588",
"lastModified" : "2025-01-17T17:00:19.635112",
"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/2d419a84-dc73-4473-8257-faa32db18236"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110"
}
}
}, {
"id" : "52cf7bab-440b-43ad-93ea-62050150704e",
"created" : "2025-01-17T17:00:20.209849",
"lastModified" : "2025-01-17T17:00:20.209849",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "29e46385-6c7d-4cb7-9d39-023b1671748a",
"published" : "2025-01-17T17:00:13.436539",
"alias" : "simple-bar-chart",
"workspaceId" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"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-01-17T17:00:13.436539",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/29e46385-6c7d-4cb7-9d39-023b1671748a"
}
}
}, {
"id" : "0e947125-d2f3-4e58-9159-5c09b006d6f8",
"created" : "2025-01-17T17:00:26.031612",
"lastModified" : "2025-01-17T17:00:26.031612",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "ff416534-ae6a-48d1-8e24-bfee80a9df1d",
"name" : "SIT-generated pipeline",
"lastModified" : "2025-01-17T17:00:20.732587"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/ff416534-ae6a-48d1-8e24-bfee80a9df1d"
}
}
} ]
},
"_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/2adefb04-5498-46dd-bab1-82569f52ff3e/members/subscriptions' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/workspaces/2adefb04-5498-46dd-bab1-82569f52ff3e/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" : "6058f224-2ddb-41be-8721-b67a52f8a31c",
"created" : "2025-01-17T17:00:26.368319",
"lastModified" : "2025-01-17T17:00:26.368319",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"name" : "Test Workspace [2025-01-17T17:00:13.085919376]"
},
"workspace" : {
"id" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"name" : "Test Workspace [2025-01-17T17:00:13.085919376]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/2adefb04-5498-46dd-bab1-82569f52ff3e"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/2adefb04-5498-46dd-bab1-82569f52ff3e/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/2d419a84-dc73-4473-8257-faa32db18236' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "2d419a84-dc73-4473-8257-faa32db18236",
"created" : "2025-01-17T17:00:19.317588",
"lastModified" : "2025-01-17T17:00:19.317588",
"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/2d419a84-dc73-4473-8257-faa32db18236"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110"
}
}
}
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/2adefb04-5498-46dd-bab1-82569f52ff3e/subscriptions?allMembers=true' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/workspaces/2adefb04-5498-46dd-bab1-82569f52ff3e/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" : "6058f224-2ddb-41be-8721-b67a52f8a31c",
"created" : "2025-01-17T17:00:26.368318611",
"lastModified" : "2025-01-17T17:00:26.368319111",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"name" : "Test Workspace [2025-01-17T17:00:13.085919376]"
},
"workspace" : {
"id" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"name" : "Test Workspace [2025-01-17T17:00:13.085919376]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/6058f224-2ddb-41be-8721-b67a52f8a31c",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/2adefb04-5498-46dd-bab1-82569f52ff3e"
}
}
}
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/a13e6b94-1699-4fd4-86c4-b252f17bc110/subscriptions' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110/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" : "2d419a84-dc73-4473-8257-faa32db18236",
"created" : "2025-01-17T17:00:19.317587889",
"lastModified" : "2025-01-17T17:00:19.317588289",
"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/2d419a84-dc73-4473-8257-faa32db18236"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110"
}
}
}
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/29e46385-6c7d-4cb7-9d39-023b1671748a/subscriptions' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/29e46385-6c7d-4cb7-9d39-023b1671748a/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" : "52cf7bab-440b-43ad-93ea-62050150704e",
"created" : "2025-01-17T17:00:20.209848541",
"lastModified" : "2025-01-17T17:00:20.209848941",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "29e46385-6c7d-4cb7-9d39-023b1671748a",
"published" : "2025-01-17T17:00:13.436539",
"alias" : "simple-bar-chart",
"workspaceId" : "2adefb04-5498-46dd-bab1-82569f52ff3e",
"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-01-17T17:00:13.436539",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/52cf7bab-440b-43ad-93ea-62050150704e",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/29e46385-6c7d-4cb7-9d39-023b1671748a"
}
}
}
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/ff416534-ae6a-48d1-8e24-bfee80a9df1d/subscriptions' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/pipelines/ff416534-ae6a-48d1-8e24-bfee80a9df1d/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" : "0e947125-d2f3-4e58-9159-5c09b006d6f8",
"created" : "2025-01-17T17:00:26.031612014",
"lastModified" : "2025-01-17T17:00:26.031612414",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "ff416534-ae6a-48d1-8e24-bfee80a9df1d",
"name" : "SIT-generated pipeline",
"lastModified" : "2025-01-17T17:00:20.732587"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/0e947125-d2f3-4e58-9159-5c09b006d6f8",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/ff416534-ae6a-48d1-8e24-bfee80a9df1d"
}
}
}
Update a subscription
PUT
/api/subscriptions/{subscription-id}
Updates the subscription {subscription-id}
.
Prerequisites
- Subscription
{subscription-id}
must exist
Request
Body
Path | 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/2d419a84-dc73-4473-8257-faa32db18236' -i -X PUT \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json' \
-d '{
"type" : "ALERTS"
}'
Python (requests
)
import requests
url = "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236"
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" : "2d419a84-dc73-4473-8257-faa32db18236",
"created" : "2025-01-17T17:00:19.317588",
"lastModified" : "2025-01-17T17:00:19.635111681",
"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/2d419a84-dc73-4473-8257-faa32db18236"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/a13e6b94-1699-4fd4-86c4-b252f17bc110"
}
}
}
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/2d419a84-dc73-4473-8257-faa32db18236' -i -X DELETE \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/subscriptions/2d419a84-dc73-4473-8257-faa32db18236"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.