Retrieve Subscription

Retrieves the details of an existing subscription. You need only supply the unique subscription identifier that was returned upon subscription creation.

Request

GET /event/v1/subscription/:id

Parameters

No parameters

Example

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

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

string subscriptionId = "evntsbr_XXX";
var myNewSubscription = await _evntClient.GetSubscriptionAsync(id: subscriptionId);

Response

A subscription object if a valid identifier was provided.

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"
}