Retrieve Webhook Endpoint
WebhookEndpoint webhooks().retrieve(WebhookRetrieveParamsparams = WebhookRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/webhook_endpoints/{webhook_endpoint_id}
Retrieve Webhook Endpoint
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.webhooks.WebhookEndpoint;
import com.openai.models.webhooks.WebhookRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
WebhookEndpoint webhookEndpoint = client.webhooks().retrieve("whe_123");
}
}{
"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
}