response.cancelled
Sent when a background response has been cancelled.
Schema
Schema name: WebhookResponseCancelled
json
{
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema)": {
"kind": "HttpDeclTypeAlias",
"oasRef": "#/webhooks/response_cancelled/post/requestBody/content/application%2Fjson/schema",
"docstring": "Sent when a background response has been cancelled.\n",
"ident": "ResponseCancelledWebhookEvent",
"type": {
"kind": "HttpTypeObject",
"members": [
{
"ident": "id"
},
{
"ident": "created_at"
},
{
"ident": "data"
},
{
"ident": "type"
},
{
"ident": "object"
}
]
},
"childrenParentSchema": "object",
"children": [
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) id",
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) created_at",
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) data",
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) type",
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) object"
]
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) id": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/id",
"deprecated": false,
"key": "id",
"docstring": "The unique ID of the event.\n",
"type": {
"kind": "HttpTypeString"
},
"optional": false,
"nullable": false,
"schemaType": "string",
"children": []
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) created_at": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/created_at",
"deprecated": false,
"key": "created_at",
"docstring": "The Unix timestamp (in seconds) of when the model response was cancelled.\n",
"type": {
"kind": "HttpTypeNumber"
},
"constraints": {
"format": "unixtime"
},
"optional": false,
"nullable": false,
"schemaType": "integer",
"children": []
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) data": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/data",
"deprecated": false,
"key": "data",
"docstring": "Event data payload.\n",
"type": {
"kind": "HttpTypeObject",
"members": [
{
"ident": "id"
}
]
},
"optional": false,
"nullable": false,
"schemaType": "object",
"childrenParentSchema": "object",
"children": [
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) data > (property) id"
]
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) type": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/type",
"deprecated": false,
"key": "type",
"docstring": "The type of the event. Always `response.cancelled`.\n",
"type": {
"kind": "HttpTypeUnion",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/type",
"types": [
{
"kind": "HttpTypeLiteral",
"literal": "response.cancelled"
}
]
},
"optional": false,
"nullable": false,
"schemaType": "enum",
"childrenParentSchema": "enum",
"children": [
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) type > (member) 0"
]
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) object": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/object",
"deprecated": false,
"key": "object",
"docstring": "The object of the event. Always `event`.\n",
"type": {
"kind": "HttpTypeUnion",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/object",
"types": [
{
"kind": "HttpTypeLiteral",
"literal": "event"
}
]
},
"optional": true,
"nullable": false,
"schemaType": "enum",
"childrenParentSchema": "enum",
"children": [
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) object > (member) 0"
]
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) data > (property) id": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/WebhookResponseCancelled/properties/data/properties/id",
"deprecated": false,
"key": "id",
"docstring": "The unique ID of the model response.\n",
"type": {
"kind": "HttpTypeString"
},
"optional": false,
"nullable": false,
"schemaType": "string",
"children": []
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) type > (member) 0": {
"kind": "HttpDeclReference",
"type": {
"kind": "HttpTypeLiteral",
"literal": "response.cancelled"
}
},
"(resource) webhooks > (model) response_cancelled_webhook_event > (schema) > (property) object > (member) 0": {
"kind": "HttpDeclReference",
"type": {
"kind": "HttpTypeLiteral",
"literal": "event"
}
}
}Example
json
{
"id": "evt_abc123",
"type": "response.cancelled",
"created_at": 1719168000,
"data": {
"id": "resp_abc123"
}
}