webhook.ping
Ping event - sent when a webhook is tested
can-trigger-ci: false
REQUEST BODY SCHEMA: application/json
required
|
Field |
Description |
|
object (Common header included in all public events) |
|
|
object (RepositoryEmbedded) |
|
|
|
string (Webhook slug identifier) |
|
|
string <date-time> (When the ping was sent) |
|
object (OrganizationEmbedded) |
header
|
Field |
Description |
|
|
string (Unique identifier for this event instance) |
|
|
string (Event type) |
|
|
string <date-time> (When the event occurred) |
|
|
string (ID of the primary entity this event is about) |
|
|
string (Type of the primary entity (derived from event_type)) |
|
object (Public metadata) |
|
|
|
string (Organization context) |
|
|
string (Repository context) |
|
object (UserEmbedded) |
|
|
|
string |
|
|
string |
header.metadata
|
Field |
Description |
|
|
string |
header.triggered_by
|
Field |
Description |
|
|
string (Id will contain "<external-user>" if user is external) |
|
|
string (Slug will contain "<external-user>" if user is external) |
repository
|
Field |
Description |
|
|
string |
|
|
string |
|
object (OrganizationEmbedded) |
repository.organization
|
Field |
Description |
|
|
string |
|
|
string |
organization
|
Field |
Description |
|
|
string |
|
|
string |
Request samples
{
"$ref": "#/components/schemas/Ping",
"components": {
"schemas": {
"Ping": {
"type": "object",
"properties": {
"header": {
"$ref": "#/components/schemas/EventHeader"
},
"repository": {
"$ref": "#/components/schemas/RepositoryEmbedded"
},
"webhook_slug": {
"type": "string",
"title": "Webhook slug identifier"
},
"pinged_at": {
"type": "string",
"format": "date-time",
"title": "When the ping was sent"
},
"organization": {
"$ref": "#/components/schemas/OrganizationEmbedded"
}
},
"title": "Ping event - sent when a webhook is tested"
},
"EventHeader": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Unique identifier for this event instance"
},
"type": {
"type": "string",
"title": "Event type"
},
"occurred_at": {
"type": "string",
"format": "date-time",
"title": "When the event occurred"
},
"aggregate_id": {
"type": "string",
"title": "ID of the primary entity this event is about"
},
"aggregate_type": {
"type": "string",
"title": "Type of the primary entity (derived from event_type)"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "Public metadata"
},
"organization_id": {
"type": "string",
"title": "Organization context"
},
"repository_id": {
"type": "string",
"title": "Repository context"
},
"triggered_by": {
"$ref": "#/components/schemas/UserEmbedded"
},
"correlation_id": {
"type": "string",
"description": "Correlation ID for tracking event chains back to the original request.\nUses request_id from the originating gRPC/HTTP request when available,\nfalls back to trace_id or the root event's ID."
},
"causation_id": {
"type": "string",
"description": "Causation ID is the ID of the event that directly caused this event.\nEmpty for root events (events triggered directly by user actions).\nUsed to reconstruct the event tree within a correlation chain."
}
},
"title": "Common header included in all public events"
},
"UserEmbedded": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Id will contain \"<external-user>\" if user is external"
},
"slug": {
"type": "string",
"title": "Slug will contain \"<external-user>\" if user is external"
}
}
},
"RepositoryEmbedded": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"organization": {
"$ref": "#/components/schemas/OrganizationEmbedded"
}
}
},
"OrganizationEmbedded": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
}
}
}
}
}
}