Skip to content

Get a subscription

Request

Retrieve an existing webhook subscription

Path
idinteger, (int32)required

The ID of the subscription

const id = 'YOUR_id_PARAMETER';
const resp = await fetch(
  `https://api-sandbox.lawvu.com/account-apis/v1/webhooks/subscriptions/${id}`,
  {method: 'GET'}
);

const data = await resp.text();
console.log(data);

Responses

OK

Body
idinteger, (int32)
topicsArray of strings(WebhookTopicArray)
subscriptionUrlstring or null
clientStatestring or null
statusstring or null
createdDateUtcstring, (date-time)
createdBystring or null
modifiedDateUtcstring, (date-time)
modifiedBystring or null
Response
{
  "id": 1,
  "topics": [
    "matter.created",
    "matter.updated",
    "matter.status.updated"
  ],
  "subscriptionUrl": "https://myapplication.com/incomingwebhooks",
  "clientState": "my client state",
  "status": "active",
  "createdDateUtc": "2022-10-11T23:54:04.017",
  "createdBy": "461fffa2-950f-4961-b313-09fef67d419c",
  "modifiedDateUtc": "2022-12-19T23:54:04.017",
  "modifiedBy": "461fffa2-950f-4961-b313-09fef67d419c"
}