Skip to content

Get all subscriptions

Request

Retrieve all existing webhook subscriptions

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

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

Responses

OK

Body
Array [
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": "supersecretstring",
    "status": "failed",
    "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"
  },
  {
    "id": 2,
    "topics": [
      "contract.created"
    ],
    "subscriptionUrl": "https://myapplication.com/incomingwebhooks/example",
    "clientState": "my client state",
    "status": "active",
    "createdDateUtc": "2022-10-15T23:54:04.017",
    "createdBy": "461fffa2-950f-4961-b313-09fef67d419c",
    "modifiedDateUtc": "2022-12-21T23:54:04.017",
    "modifiedBy": "461fffa2-950f-4961-b313-09fef67d419c"
  }
]