All pages
Powered by GitBook
1 of 1

Loading...

Search subscribed webhooks

Use case

Here you can learn how to find a complete list of subscribed webhooks.

Sample API call

To obtain a list of subscribed webhooks, make the API call below:

Search for subscribed webhooks. Returns complete list of subscribed webhooks.

Sample request

Here is a sample request for obtaining the full list of subscribed webhooks:

https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions
curl 'https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions' \
-H 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDctMjBUMTE6MjE6MjQiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2ODk4NTIwODR9.1v9D9oH3iGaxnQbI12MW6rhWy9vYyrmgk3aYj5AAnPQ' \
-d ''

Sample response

Below you will find the response body to the sample request:

Response
{
    "data": [
        {
            "subscriptionId": "ID-1000",
            "url": "https://webhook.site/b43453ab-6eda-4523-b04d-8b23b3a5d0e6",
            "version": "1",
            "notificationTypeCode": "PERSON_CREATED"
        },
        {
            "subscriptionId": "ID-1001",
            "url": "https://webhook.site/b43453ab-6eda-4523-b04d-8b23b3a5d0e6",
            "version": "1",
            "notificationTypeCode": "ACCOUNT_CREATED"
        }
    ]
}

Please remember that the response to your request will depend on the webhook subscription data in your Tuum instance.

Result

The complete list of the subscribed webhooks has been received.

https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions

Learn more about the in the Tuum developer portal.

In the next step, we will for notifications type PERSON_UPDATED, which is not in the list of subscribed webhooks above.

endpoint
subscribe to webhook