---
title: "Create Webhook Endpoint"
method: POST
path: "/webhook_endpoints"
---

# Create Webhook Endpoint

`POST /webhook_endpoints`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/webhook_endpoints`
- Auth: HTTP bearer

Creates a webhook endpoint for the authenticated project.

## Request body

- PublicCreateEndpointBody
  - `name` string, required: A human-readable name for the webhook endpoint.
  - `url` string, required: The HTTPS URL that receives webhook deliveries.
  - `event_types` ProjectEventTypeEnum[], required: The event types that trigger deliveries to this endpoint.

## Response `200`

Success

- WebhookEndpointWithSecretResource
  - `id` string, required: The unique ID of the webhook endpoint.
  - `object` 'webhook_endpoint', required: The object type, which is always webhook_endpoint.
  - `created_at` integer, required: The Unix timestamp when the endpoint was created.
  - `updated_at` integer: The Unix timestamp of the last endpoint configuration or signing-secret change. Initialized at creation; tests and unchanged updates do not advance it.
  - `name` string, required: The human-readable name of the endpoint.
  - `url` string, required: The HTTPS URL that receives webhook deliveries.
  - `event_types` string[], required: The event types that trigger deliveries to this endpoint.
  - `signing_secret_hint` string, nullable, required: A masked hint for the endpoint's signing secret.
  - `signing_secret` string, required: The endpoint's signing secret. This is returned only when the endpoint is created or the secret is rotated.

## Other responses

- `400`: The webhook endpoint parameters are invalid or the endpoint cannot be created with the requested URL or event types.

## Changes

- **2026-10-08** `ff5a4408cabb`: 2 info
  - added the new `agent.environment.expired` enum value to the request property `event_types/items/`
  - added the new `agent.environment.suspended` enum value to the request property `event_types/items/`
- **2026-10-08** `30eea8389a06`: 2 info
  - added the new `agent.environment.failed` enum value to the request property `event_types/items/`
  - added the new `agent.environment.ready` enum value to the request property `event_types/items/`
- **2026-10-06** `487892d3954e`: 1 info
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/webhook_endpoints/post.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
