# POST /webhook_endpoints (OpenAI API)
Base URL: https://api.openai.com/v1
Auth: Authorization; OpenAI API key; required.
Request formats: application/json.
Last verified: 2026-09-18

> Create Webhook Endpoint

## Critical Gotchas
* The Responses API is the primary interface for new text and tool workflows; Chat Completions remains a separate compatibility API.
* Audio transcription uploads use multipart form data rather than a JSON request body.

## cURL
curl -X POST 'https://api.openai.com/v1/webhook_endpoints' \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "example-name",
  "url": "https://example.com",
  "event_types": [
    "batch.completed"
  ]
}'

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| name | body | string | Yes | A human-readable name for the webhook endpoint. |
| url | body | string | Yes | The HTTPS URL that receives webhook deliveries. |
| event_types | body | string[] | Yes | The event types that trigger deliveries to this endpoint. |

## Response example
{"id":"string","object":"webhook_endpoint"}

---
Need an API key? Get one at https://platform.openai.com/api-keys