Skip to main content
GET
/
api
/
v1
/
webhooks
/
subscription
/
{partnerId}
Check if authenticated user is subscribed to partner webhooks
const url = 'https://api.gnosispay.com/api/v1/webhooks/subscription/{partnerId}';
const options = {method: 'GET', body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "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