List Subscriptions

Returns a list of your subscriptions. The subscriptions are returned sorted by creation date, with the most recent subscriptions appearing last.

Request

GET /event/v1/subscription

Parameters

No parameters

Example

curl -XGET 'https://platform.wellviasolutions.com/event/v1/subscription' \
    -u 'Bearer:{your_token}'
GET https://platform.wellviasolutions.com/event/v1/subscription HTTP/1.1
using WellViaSDK.Event;

const string apiSubscriptionKey = "your_api_subscription_key";
var _evntClient = new WellViaEventServiceClient(subscriptionKey: apiSubscriptionKey);

var mySubscriptions = await _evntClient.GetSubscriptionsAsync();

Response

An array of subscriptions. Each entry in the array is a separate subscription object. If no subscriptions are available, the resulting array will be empty. This request should never return an error.

Attributes

id string : required The unique identifier of the subscription. subscriberId string : required The unique identifier of the subscriber. type string : required The type of event that will trigger this webhook. More information about the type can be found in the Event Type Dictionary. httpEndpoint uri : required The URI of the subscription that you provided when the subscription was created.

Example

[
  {
    "id": "evntsbn_XXX",
    "subscriberId": "evntsbr_XXX",
    "type": "com.wellviasolutions.member.account.created.v1",
    "httpEndpoint": "https://myapp.com/notify"
  },
  {
    "id": "evntsbn_XXX",
    "subscriberId": "evntsbr_XXX",
    "type": "com.wellviasolutions.member.account.closed.v1",
    "httpEndpoint": "https://myapp.com/notify"
  }
]