Skip to main content
GET
/
api
/
v1
/
webhooks
/
subscription
/
{partnerId}
Check if authenticated user is subscribed to partner webhooks
const options = {method: 'GET'};

fetch('https://api.valox.co/api/v1/webhooks/subscription/{partnerId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "subscribed": true,
  "subscriptionId": "<string>"
}

Path Parameters

partnerId
string
required

Partner ID to check subscription for

Response

Subscription status retrieved successfully

subscribed
boolean

Whether the authenticated user is subscribed to the partner's webhooks

subscriptionId
string | null

ID of the subscription if it exists