Repository Public
1# Webhooks events23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45Webhooks are HTTP requests sent by OpenAI to a URL you specify when certain6events happen during the course of API usage.78[Learn more about webhooks](https://developers.openai.com/api/docs/guides/webhooks).910<a id="response.completed"></a>1112## response.completed1314Sent when a background response has been completed.1516### Schema1718Schema name: `WebhookResponseCompleted`1920- `id: string`2122 The unique ID of the event.2324- `created_at: number`2526 The Unix timestamp (in seconds) of when the model response was completed.2728- `data: object { id }`2930 Event data payload.3132 - `id: string`3334 The unique ID of the model response.3536- `type: "response.completed"`3738 The type of the event. Always `response.completed`.3940 - `"response.completed"`4142- `object: optional "event"`4344 The object of the event. Always `event`.4546 - `"event"`4748### Example4950```json51{52 "id": "evt_abc123",53 "type": "response.completed",54 "created_at": 1719168000,55 "data": {56 "id": "resp_abc123"57 }58}59```6061<a id="response.cancelled"></a>6263## response.cancelled6465Sent when a background response has been cancelled.6667### Schema6869Schema name: `WebhookResponseCancelled`7071- `id: string`7273 The unique ID of the event.7475- `created_at: number`7677 The Unix timestamp (in seconds) of when the model response was cancelled.7879- `data: object { id }`8081 Event data payload.8283 - `id: string`8485 The unique ID of the model response.8687- `type: "response.cancelled"`8889 The type of the event. Always `response.cancelled`.9091 - `"response.cancelled"`9293- `object: optional "event"`9495 The object of the event. Always `event`.9697 - `"event"`9899### Example100101```json102{103 "id": "evt_abc123",104 "type": "response.cancelled",105 "created_at": 1719168000,106 "data": {107 "id": "resp_abc123"108 }109}110```111112<a id="response.failed"></a>113114## response.failed115116Sent when a background response has failed.117118### Schema119120Schema name: `WebhookResponseFailed`121122- `id: string`123124 The unique ID of the event.125126- `created_at: number`127128 The Unix timestamp (in seconds) of when the model response failed.129130- `data: object { id }`131132 Event data payload.133134 - `id: string`135136 The unique ID of the model response.137138- `type: "response.failed"`139140 The type of the event. Always `response.failed`.141142 - `"response.failed"`143144- `object: optional "event"`145146 The object of the event. Always `event`.147148 - `"event"`149150### Example151152```json153{154 "id": "evt_abc123",155 "type": "response.failed",156 "created_at": 1719168000,157 "data": {158 "id": "resp_abc123"159 }160}161```162163<a id="response.incomplete"></a>164165## response.incomplete166167Sent when a background response has been interrupted.168169### Schema170171Schema name: `WebhookResponseIncomplete`172173- `id: string`174175 The unique ID of the event.176177- `created_at: number`178179 The Unix timestamp (in seconds) of when the model response was interrupted.180181- `data: object { id }`182183 Event data payload.184185 - `id: string`186187 The unique ID of the model response.188189- `type: "response.incomplete"`190191 The type of the event. Always `response.incomplete`.192193 - `"response.incomplete"`194195- `object: optional "event"`196197 The object of the event. Always `event`.198199 - `"event"`200201### Example202203```json204{205 "id": "evt_abc123",206 "type": "response.incomplete",207 "created_at": 1719168000,208 "data": {209 "id": "resp_abc123"210 }211}212```213214<a id="batch.completed"></a>215216## batch.completed217218Sent when a batch API request has been completed.219220### Schema221222Schema name: `WebhookBatchCompleted`223224- `id: string`225226 The unique ID of the event.227228- `created_at: number`229230 The Unix timestamp (in seconds) of when the batch API request was completed.231232- `data: object { id }`233234 Event data payload.235236 - `id: string`237238 The unique ID of the batch API request.239240- `type: "batch.completed"`241242 The type of the event. Always `batch.completed`.243244 - `"batch.completed"`245246- `object: optional "event"`247248 The object of the event. Always `event`.249250 - `"event"`251252### Example253254```json255{256 "id": "evt_abc123",257 "type": "batch.completed",258 "created_at": 1719168000,259 "data": {260 "id": "batch_abc123"261 }262}263```264265<a id="batch.cancelled"></a>266267## batch.cancelled268269Sent when a batch API request has been cancelled.270271### Schema272273Schema name: `WebhookBatchCancelled`274275- `id: string`276277 The unique ID of the event.278279- `created_at: number`280281 The Unix timestamp (in seconds) of when the batch API request was cancelled.282283- `data: object { id }`284285 Event data payload.286287 - `id: string`288289 The unique ID of the batch API request.290291- `type: "batch.cancelled"`292293 The type of the event. Always `batch.cancelled`.294295 - `"batch.cancelled"`296297- `object: optional "event"`298299 The object of the event. Always `event`.300301 - `"event"`302303### Example304305```json306{307 "id": "evt_abc123",308 "type": "batch.cancelled",309 "created_at": 1719168000,310 "data": {311 "id": "batch_abc123"312 }313}314```315316<a id="batch.expired"></a>317318## batch.expired319320Sent when a batch API request has expired.321322### Schema323324Schema name: `WebhookBatchExpired`325326- `id: string`327328 The unique ID of the event.329330- `created_at: number`331332 The Unix timestamp (in seconds) of when the batch API request expired.333334- `data: object { id }`335336 Event data payload.337338 - `id: string`339340 The unique ID of the batch API request.341342- `type: "batch.expired"`343344 The type of the event. Always `batch.expired`.345346 - `"batch.expired"`347348- `object: optional "event"`349350 The object of the event. Always `event`.351352 - `"event"`353354### Example355356```json357{358 "id": "evt_abc123",359 "type": "batch.expired",360 "created_at": 1719168000,361 "data": {362 "id": "batch_abc123"363 }364}365```366367<a id="batch.failed"></a>368369## batch.failed370371Sent when a batch API request has failed.372373### Schema374375Schema name: `WebhookBatchFailed`376377- `id: string`378379 The unique ID of the event.380381- `created_at: number`382383 The Unix timestamp (in seconds) of when the batch API request failed.384385- `data: object { id }`386387 Event data payload.388389 - `id: string`390391 The unique ID of the batch API request.392393- `type: "batch.failed"`394395 The type of the event. Always `batch.failed`.396397 - `"batch.failed"`398399- `object: optional "event"`400401 The object of the event. Always `event`.402403 - `"event"`404405### Example406407```json408{409 "id": "evt_abc123",410 "type": "batch.failed",411 "created_at": 1719168000,412 "data": {413 "id": "batch_abc123"414 }415}416```417418<a id="fine_tuning.job.succeeded"></a>419420## fine_tuning.job.succeeded421422Sent when a fine-tuning job has succeeded.423424### Schema425426Schema name: `WebhookFineTuningJobSucceeded`427428- `id: string`429430 The unique ID of the event.431432- `created_at: number`433434 The Unix timestamp (in seconds) of when the fine-tuning job succeeded.435436- `data: object { id }`437438 Event data payload.439440 - `id: string`441442 The unique ID of the fine-tuning job.443444- `type: "fine_tuning.job.succeeded"`445446 The type of the event. Always `fine_tuning.job.succeeded`.447448 - `"fine_tuning.job.succeeded"`449450- `object: optional "event"`451452 The object of the event. Always `event`.453454 - `"event"`455456### Example457458```json459{460 "id": "evt_abc123",461 "type": "fine_tuning.job.succeeded",462 "created_at": 1719168000,463 "data": {464 "id": "ftjob_abc123"465 }466}467```468469<a id="fine_tuning.job.failed"></a>470471## fine_tuning.job.failed472473Sent when a fine-tuning job has failed.474475### Schema476477Schema name: `WebhookFineTuningJobFailed`478479- `id: string`480481 The unique ID of the event.482483- `created_at: number`484485 The Unix timestamp (in seconds) of when the fine-tuning job failed.486487- `data: object { id }`488489 Event data payload.490491 - `id: string`492493 The unique ID of the fine-tuning job.494495- `type: "fine_tuning.job.failed"`496497 The type of the event. Always `fine_tuning.job.failed`.498499 - `"fine_tuning.job.failed"`500501- `object: optional "event"`502503 The object of the event. Always `event`.504505 - `"event"`506507### Example508509```json510{511 "id": "evt_abc123",512 "type": "fine_tuning.job.failed",513 "created_at": 1719168000,514 "data": {515 "id": "ftjob_abc123"516 }517}518```519520<a id="fine_tuning.job.cancelled"></a>521522## fine_tuning.job.cancelled523524Sent when a fine-tuning job has been cancelled.525526### Schema527528Schema name: `WebhookFineTuningJobCancelled`529530- `id: string`531532 The unique ID of the event.533534- `created_at: number`535536 The Unix timestamp (in seconds) of when the fine-tuning job was cancelled.537538- `data: object { id }`539540 Event data payload.541542 - `id: string`543544 The unique ID of the fine-tuning job.545546- `type: "fine_tuning.job.cancelled"`547548 The type of the event. Always `fine_tuning.job.cancelled`.549550 - `"fine_tuning.job.cancelled"`551552- `object: optional "event"`553554 The object of the event. Always `event`.555556 - `"event"`557558### Example559560```json561{562 "id": "evt_abc123",563 "type": "fine_tuning.job.cancelled",564 "created_at": 1719168000,565 "data": {566 "id": "ftjob_abc123"567 }568}569```570571<a id="eval.run.succeeded"></a>572573## eval.run.succeeded574575Sent when an eval run has succeeded.576577### Schema578579Schema name: `WebhookEvalRunSucceeded`580581- `id: string`582583 The unique ID of the event.584585- `created_at: number`586587 The Unix timestamp (in seconds) of when the eval run succeeded.588589- `data: object { id }`590591 Event data payload.592593 - `id: string`594595 The unique ID of the eval run.596597- `type: "eval.run.succeeded"`598599 The type of the event. Always `eval.run.succeeded`.600601 - `"eval.run.succeeded"`602603- `object: optional "event"`604605 The object of the event. Always `event`.606607 - `"event"`608609### Example610611```json612{613 "id": "evt_abc123",614 "type": "eval.run.succeeded",615 "created_at": 1719168000,616 "data": {617 "id": "evalrun_abc123"618 }619}620```621622<a id="eval.run.failed"></a>623624## eval.run.failed625626Sent when an eval run has failed.627628### Schema629630Schema name: `WebhookEvalRunFailed`631632- `id: string`633634 The unique ID of the event.635636- `created_at: number`637638 The Unix timestamp (in seconds) of when the eval run failed.639640- `data: object { id }`641642 Event data payload.643644 - `id: string`645646 The unique ID of the eval run.647648- `type: "eval.run.failed"`649650 The type of the event. Always `eval.run.failed`.651652 - `"eval.run.failed"`653654- `object: optional "event"`655656 The object of the event. Always `event`.657658 - `"event"`659660### Example661662```json663{664 "id": "evt_abc123",665 "type": "eval.run.failed",666 "created_at": 1719168000,667 "data": {668 "id": "evalrun_abc123"669 }670}671```672673<a id="eval.run.canceled"></a>674675## eval.run.canceled676677Sent when an eval run has been canceled.678679### Schema680681Schema name: `WebhookEvalRunCanceled`682683- `id: string`684685 The unique ID of the event.686687- `created_at: number`688689 The Unix timestamp (in seconds) of when the eval run was canceled.690691- `data: object { id }`692693 Event data payload.694695 - `id: string`696697 The unique ID of the eval run.698699- `type: "eval.run.canceled"`700701 The type of the event. Always `eval.run.canceled`.702703 - `"eval.run.canceled"`704705- `object: optional "event"`706707 The object of the event. Always `event`.708709 - `"event"`710711### Example712713```json714{715 "id": "evt_abc123",716 "type": "eval.run.canceled",717 "created_at": 1719168000,718 "data": {719 "id": "evalrun_abc123"720 }721}722```723724<a id="realtime.call.incoming"></a>725726## realtime.call.incoming727728Sent when an incoming API SIP session is available for Realtime acceptance.729The same pending session can also emit `live.transport.incoming`; the first730successful Realtime or Live accept endpoint selects the runtime surface.731732### Schema733734Schema name: `WebhookRealtimeCallIncoming`735736- `id: string`737738 The unique ID of the event.739740- `created_at: number`741742 The Unix timestamp (in seconds) of when the model response was completed.743744- `data: object { call_id, sip_headers, sip_media_security }`745746 Event data payload.747748 - `call_id: string`749750 The ID of the pending SIP call. Pass this value unchanged when751 accepting or rejecting the call through the Realtime API. For the752 Live API, use the `session_id` from `live.transport.incoming` instead.753754 - `sip_headers: array of object { name, value }`755756 Headers from the SIP INVITE, excluding SIP authorization headers.757 Retained names, values, repeated entries, and order are preserved.758 Treat these values as untrusted call metadata.759760 - `name: string`761762 Name of the SIP Header.763764 - `value: string`765766 Value of the SIP Header.767768 - `sip_media_security: optional "rtp" or "srtp" or string`769770 Media protection selected on the SIP leg during SDP negotiation. `srtp`771 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.772 This does not describe SIP signaling security or confirm that media has773 flowed. Clients should handle unrecognized values as unknown.774775 - `"rtp" or "srtp"`776777 Media protection selected on the SIP leg during SDP negotiation. `srtp`778 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.779 This does not describe SIP signaling security or confirm that media has780 flowed. Clients should handle unrecognized values as unknown.781782 - `"rtp"`783784 - `"srtp"`785786 - `string`787788- `type: "realtime.call.incoming"`789790 The type of the event. Always `realtime.call.incoming`.791792 - `"realtime.call.incoming"`793794- `object: optional "event"`795796 The object of the event. Always `event`.797798 - `"event"`799800### Example801802```json803{804 "id": "evt_abc123",805 "type": "realtime.call.incoming",806 "created_at": 1719168000,807 "data": {808 "call_id": "rtc_u0_479a275623b54bdb9b6fbae2f7cbd408",809 "sip_media_security": "srtp",810 "sip_headers": [811 {"name": "Max-Forwards", "value": "63"},812 {"name": "CSeq", "value": "851287 INVITE"},813 {"name": "Content-Type", "value": "application/sdp"}814 ]815 }816}817```818819<a id="live.call.incoming"></a>820821## live.call.incoming822823Deprecated: use `live.transport.incoming`. Retained for existing subscriptions824during migration; new subscriptions to this event are not allowed.825Sent when an incoming API SIP session is available for Live acceptance. The826same pending session can also emit `realtime.call.incoming`; the first827successful Realtime or Live accept endpoint selects the runtime surface.828829### Schema830831Schema name: `WebhookLiveCallIncoming`832833- `id: string`834835 The unique ID of the event.836837- `created_at: number`838839 The Unix timestamp (in seconds) of when the event was created.840841- `data: object { session_id, sip_headers, sip_media_security }`842843 Event data payload.844845 - `session_id: string`846847 The `live_...` ID of the pending SIP session. Pass this value unchanged848 to Live call controls and sideband connections. The corresponding849 `realtime.call.incoming` event uses a separate `rtc_...` call ID.850851 - `sip_headers: array of object { name, value }`852853 Headers from the SIP INVITE, excluding SIP authorization headers.854 Retained names, values, repeated entries, and order are preserved.855 Treat these values as untrusted call metadata.856857 - `name: string`858859 Name of the SIP Header.860861 - `value: string`862863 Value of the SIP Header.864865 - `sip_media_security: optional "rtp" or "srtp" or string`866867 Media protection selected on the SIP leg during SDP negotiation. `srtp`868 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.869 This does not describe SIP signaling security or confirm that media has870 flowed. Clients should handle unrecognized values as unknown.871872 - `"rtp" or "srtp"`873874 Media protection selected on the SIP leg during SDP negotiation. `srtp`875 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.876 This does not describe SIP signaling security or confirm that media has877 flowed. Clients should handle unrecognized values as unknown.878879 - `"rtp"`880881 - `"srtp"`882883 - `string`884885- `type: "live.call.incoming"`886887 The type of the event. Always `live.call.incoming`.888889 - `"live.call.incoming"`890891- `object: optional "event"`892893 The object of the event. Always `event`.894895 - `"event"`896897### Example898899```json900{901 "id": "evt_abc123",902 "type": "live.call.incoming",903 "created_at": 1719168000,904 "data": {905 "session_id": "live_u0_479a275623b54bdb9b6fbae2f7cbd408",906 "sip_media_security": "srtp",907 "sip_headers": [908 {"name": "From", "value": "<sip:alice@example.com>;tag=abc123"},909 {"name": "To", "value": "<sip:recipient@example.com>"},910 {"name": "Call-ID", "value": "call-123@example.com"}911 ]912 }913}914```915916<a id="live.transport.incoming"></a>917918## live.transport.incoming919920Sent when an incoming API SIP session is available for Live acceptance. The921same pending session can also emit `realtime.call.incoming`; the first922successful Realtime or Live accept endpoint selects the runtime surface.923924### Schema925926Schema name: `WebhookLiveTransportIncoming`927928- `id: string`929930 The unique ID of the event.931932- `created_at: number`933934 The Unix timestamp (in seconds) of when the event was created.935936- `data: object { session_id, sip_headers, type, sip_media_security }`937938 Event data payload.939940 - `session_id: string`941942 The `live_...` ID of the pending SIP session. Forward this value943 unchanged when accepting or rejecting the call through the Live API.944945 - `sip_headers: array of object { name, value }`946947 Headers from the SIP INVITE, excluding SIP authorization headers.948 Retained names, values, repeated entries, and order are preserved.949 Treat these values as untrusted call metadata.950951 - `name: string`952953 Name of the SIP Header.954955 - `value: string`956957 Value of the SIP Header.958959 - `type: "sip"`960961 The incoming transport type. Always `sip`.962963 - `"sip"`964965 - `sip_media_security: optional "rtp" or "srtp" or string`966967 Media protection selected on the SIP leg during SDP negotiation. `srtp`968 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.969 This does not describe SIP signaling security or confirm that media has970 flowed. Clients should handle unrecognized values as unknown.971972 - `"rtp" or "srtp"`973974 Media protection selected on the SIP leg during SDP negotiation. `srtp`975 indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown.976 This does not describe SIP signaling security or confirm that media has977 flowed. Clients should handle unrecognized values as unknown.978979 - `"rtp"`980981 - `"srtp"`982983 - `string`984985- `type: "live.transport.incoming"`986987 The type of the event. Always `live.transport.incoming`.988989 - `"live.transport.incoming"`990991- `object: optional "event"`992993 The object of the event. Always `event`.994995 - `"event"`996997### Example998999```json1000{1001 "id": "evt_abc123",1002 "type": "live.transport.incoming",1003 "created_at": 1719168000,1004 "data": {1005 "type": "sip",1006 "session_id": "live_u0_479a275623b54bdb9b6fbae2f7cbd408",1007 "sip_media_security": "srtp",1008 "sip_headers": [1009 {"name": "From", "value": "<sip:alice@example.com>;tag=abc123"},1010 {"name": "To", "value": "<sip:recipient@example.com>"},1011 {"name": "Call-ID", "value": "call-123@example.com"}1012 ]1013 }1014}1015```10161017<a id="safety.warning_issued"></a>10181019## safety.warning_issued10201021Sent when a warning is issued for a safety identifier in your organization.10221023### Schema10241025Schema name: `WebhookSafetyWarningIssued`10261027- `id: string`10281029 The unique ID of the webhook event.10301031- `created_at: number`10321033 The Unix timestamp in seconds when the event was created.10341035- `data: object { id }`10361037 - `id: string`10381039 The safety case ID to pass to `GET /v1/safety/cases/{id}`.10401041- `object: "event"`10421043 Always `event`.10441045 - `"event"`10461047- `type: "safety.warning_issued"`10481049 Always `safety.warning_issued`.10501051 - `"safety.warning_issued"`10521053### Example10541055```json1056{1057 "id": "evt_123",1058 "object": "event",1059 "created_at": 1787659200,1060 "type": "safety.warning_issued",1061 "data": {"id": "C-abc123"}1062}1063```10641065<a id="safety.deactivation_issued"></a>10661067## safety.deactivation_issued10681069Sent when a deactivation is issued for a safety identifier in your organization.10701071### Schema10721073Schema name: `WebhookSafetyDeactivationIssued`10741075- `id: string`10761077 The unique ID of the webhook event.10781079- `created_at: number`10801081 The Unix timestamp in seconds when the event was created.10821083- `data: object { id }`10841085 - `id: string`10861087 The safety case ID to pass to `GET /v1/safety/cases/{id}`.10881089- `object: "event"`10901091 Always `event`.10921093 - `"event"`10941095- `type: "safety.deactivation_issued"`10961097 Always `safety.deactivation_issued`.10981099 - `"safety.deactivation_issued"`11001101### Example11021103```json1104{1105 "id": "evt_123",1106 "object": "event",1107 "created_at": 1787659200,1108 "type": "safety.deactivation_issued",1109 "data": {"id": "C-abc123"}1110}1111```11121113<a id="safety.alert.created"></a>11141115## safety.alert.created11161117Sent when an approved safety alert is available for an API project.11181119### Schema11201121Schema name: `WebhookSafetyAlertCreated`11221123- `id: string`11241125 The unique ID of the webhook event.11261127- `created_at: number`11281129 The Unix timestamp in seconds when the event was created.11301131- `data: object { id }`11321133 - `id: string`11341135 The safety alert ID to pass to `GET /v1/safety/alerts/{id}`.11361137- `object: "event"`11381139 Always `event`.11401141 - `"event"`11421143- `type: "safety.alert.created"`11441145 Always `safety.alert.created`.11461147 - `"safety.alert.created"`11481149### Example11501151```json1152{1153 "id": "evt_123",1154 "object": "event",1155 "created_at": 1787659200,1156 "type": "safety.alert.created",1157 "data": {"id": "alert_0123456789abcdef0123456789abcdef"}1158}1159```11601161<a id="safety.org_alert.created"></a>11621163## safety.org_alert.created11641165Sent when an approved safety alert is available for an enterprise workspace.11661167### Schema11681169Schema name: `WebhookSafetyOrgAlertCreated`11701171- `id: string`11721173 The unique ID of the webhook event.11741175- `created_at: number`11761177 The Unix timestamp in seconds when the event was created.11781179- `data: object { id }`11801181 - `id: string`11821183 The safety alert ID to pass to `GET /v1/safety/alerts/{id}`.11841185- `object: "event"`11861187 Always `event`.11881189 - `"event"`11901191- `type: "safety.org_alert.created"`11921193 Always `safety.org_alert.created`.11941195 - `"safety.org_alert.created"`11961197### Example11981199```json1200{1201 "id": "evt_123",1202 "object": "event",1203 "created_at": 1787659200,1204 "type": "safety.org_alert.created",1205 "data": {"id": "alert_0123456789abcdef0123456789abcdef"}1206}1207```1208