Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete Webhook Endpoint

DeletedWebhookEndpoint webhooks().delete(WebhookDeleteParamsparams = WebhookDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/webhook_endpoints/{webhook_endpoint_id}

Deletes a webhook endpoint for the authenticated project.

ParametersExpand Collapse
WebhookDeleteParams params
Optional<String> webhookEndpointId
ReturnsExpand Collapse
class DeletedWebhookEndpoint:
String id

The ID of the deleted webhook endpoint.

boolean deleted

Whether the endpoint was deleted.

JsonValue; object_ "webhook_endpoint.deleted"constant"webhook_endpoint.deleted"constant

The object type, which is always webhook_endpoint.deleted.

Delete Webhook Endpoint

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.webhooks.DeletedWebhookEndpoint;
import com.openai.models.webhooks.WebhookDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        DeletedWebhookEndpoint deletedWebhookEndpoint = client.webhooks().delete("whe_123");
    }
}
{
  "id": "id",
  "deleted": true,
  "object": "webhook_endpoint.deleted"
}
Returns Examples
{
  "id": "id",
  "deleted": true,
  "object": "webhook_endpoint.deleted"
}