Retrieve Webhook Endpoint
client.webhooks.retrieve(stringwebhookEndpointID, RequestOptionsoptions?): WebhookEndpoint { id, created_at, event_types, 5 more }
GET/webhook_endpoints/{webhook_endpoint_id}
Retrieves a webhook endpoint for the authenticated project.
Retrieve Webhook Endpoint
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});
const webhookEndpoint = await client.webhooks.retrieve('whe_123');
console.log(webhookEndpoint.id);{
"id": "id",
"created_at": 0,
"event_types": [
"string"
],
"name": "name",
"object": "webhook_endpoint",
"signing_secret_hint": "signing_secret_hint",
"url": "url",
"updated_at": 0
}Returns Examples
{
"id": "id",
"created_at": 0,
"event_types": [
"string"
],
"name": "name",
"object": "webhook_endpoint",
"signing_secret_hint": "signing_secret_hint",
"url": "url",
"updated_at": 0
}