Retrieve
Get
client.webhooks.retrieve(stringid, RequestOptionsoptions?): webhookWebhookWebhookRetrieveResponse
get/api/v1/webhooks/{id}
Invokes the c1.api.webhooks.v1.WebhooksService.Get method.
Parameters
idstring
The id field.
Returns
WebhookRetrieveResponse
The WebhooksServiceGetResponse message.
Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';
const client = new ConductoroneSDK({
apiKey: 'My API Key',
});
const webhook = await client.webhooks.retrieve('id');
console.log(webhook.webhook);200 Example
{
"webhook": {
"id": "id",
"description": "description",
"displayName": "displayName",
"url": "url"
}
}