Webhooks
ModelsExpand Collapse
type BatchCancelledWebhookEvent struct{…}Sent when a batch API request has been cancelled.
Sent when a batch API request has been cancelled.
The unique ID of the event.
The Unix timestamp (in seconds) of when the batch API request was cancelled.
Data BatchCancelledWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the batch API request.
The type of the event. Always batch.cancelled.
The object of the event. Always event.
type BatchCompletedWebhookEvent struct{…}Sent when a batch API request has been completed.
Sent when a batch API request has been completed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the batch API request was completed.
Data BatchCompletedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the batch API request.
The type of the event. Always batch.completed.
The object of the event. Always event.
type BatchExpiredWebhookEvent struct{…}Sent when a batch API request has expired.
Sent when a batch API request has expired.
The unique ID of the event.
The Unix timestamp (in seconds) of when the batch API request expired.
Data BatchExpiredWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the batch API request.
The type of the event. Always batch.expired.
The object of the event. Always event.
type BatchFailedWebhookEvent struct{…}Sent when a batch API request has failed.
Sent when a batch API request has failed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the batch API request failed.
Data BatchFailedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the batch API request.
The type of the event. Always batch.failed.
The object of the event. Always event.
type EvalRunCanceledWebhookEvent struct{…}Sent when an eval run has been canceled.
Sent when an eval run has been canceled.
The unique ID of the event.
The Unix timestamp (in seconds) of when the eval run was canceled.
Data EvalRunCanceledWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the eval run.
The type of the event. Always eval.run.canceled.
The object of the event. Always event.
type EvalRunFailedWebhookEvent struct{…}Sent when an eval run has failed.
Sent when an eval run has failed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the eval run failed.
Data EvalRunFailedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the eval run.
The type of the event. Always eval.run.failed.
The object of the event. Always event.
type EvalRunSucceededWebhookEvent struct{…}Sent when an eval run has succeeded.
Sent when an eval run has succeeded.
The unique ID of the event.
The Unix timestamp (in seconds) of when the eval run succeeded.
Data EvalRunSucceededWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the eval run.
The type of the event. Always eval.run.succeeded.
The object of the event. Always event.
type FineTuningJobCancelledWebhookEvent struct{…}Sent when a fine-tuning job has been cancelled.
Sent when a fine-tuning job has been cancelled.
The unique ID of the event.
The Unix timestamp (in seconds) of when the fine-tuning job was cancelled.
Data FineTuningJobCancelledWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the fine-tuning job.
The type of the event. Always fine_tuning.job.cancelled.
The object of the event. Always event.
type FineTuningJobFailedWebhookEvent struct{…}Sent when a fine-tuning job has failed.
Sent when a fine-tuning job has failed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the fine-tuning job failed.
Data FineTuningJobFailedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the fine-tuning job.
The type of the event. Always fine_tuning.job.failed.
The object of the event. Always event.
type FineTuningJobSucceededWebhookEvent struct{…}Sent when a fine-tuning job has succeeded.
Sent when a fine-tuning job has succeeded.
The unique ID of the event.
The Unix timestamp (in seconds) of when the fine-tuning job succeeded.
Data FineTuningJobSucceededWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the fine-tuning job.
The type of the event. Always fine_tuning.job.succeeded.
The object of the event. Always event.
type RealtimeCallIncomingWebhookEvent struct{…}Sent when Realtime API Receives a incoming SIP call.
Sent when Realtime API Receives a incoming SIP call.
The unique ID of the event.
The Unix timestamp (in seconds) of when the model response was completed.
Data RealtimeCallIncomingWebhookEventDataEvent data payload.
Event data payload.
The unique ID of this call.
SipHeaders []RealtimeCallIncomingWebhookEventDataSipHeaderHeaders from the SIP Invite.
Headers from the SIP Invite.
Name of the SIP Header.
Value of the SIP Header.
The type of the event. Always realtime.call.incoming.
The object of the event. Always event.
type ResponseCancelledWebhookEvent struct{…}Sent when a background response has been cancelled.
Sent when a background response has been cancelled.
The unique ID of the event.
The Unix timestamp (in seconds) of when the model response was cancelled.
Data ResponseCancelledWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the model response.
The type of the event. Always response.cancelled.
The object of the event. Always event.
type ResponseCompletedWebhookEvent struct{…}Sent when a background response has been completed.
Sent when a background response has been completed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the model response was completed.
Data ResponseCompletedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the model response.
The type of the event. Always response.completed.
The object of the event. Always event.
type ResponseFailedWebhookEvent struct{…}Sent when a background response has failed.
Sent when a background response has failed.
The unique ID of the event.
The Unix timestamp (in seconds) of when the model response failed.
Data ResponseFailedWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the model response.
The type of the event. Always response.failed.
The object of the event. Always event.
type ResponseIncompleteWebhookEvent struct{…}Sent when a background response has been interrupted.
Sent when a background response has been interrupted.
The unique ID of the event.
The Unix timestamp (in seconds) of when the model response was interrupted.
Data ResponseIncompleteWebhookEventDataEvent data payload.
Event data payload.
The unique ID of the model response.
The type of the event. Always response.incomplete.
The object of the event. Always event.