webhook.ping

Ping event - sent when a webhook is tested

can-trigger-ci: false

REQUEST BODY SCHEMA: application/json
required

Field

Description

header

object (Common header included in all public events)

repository

object (RepositoryEmbedded)

webhook_slug

string (Webhook slug identifier)

pinged_at

string <date-time> (When the ping was sent)

organization

object (OrganizationEmbedded)

Field

Description

id

string (Unique identifier for this event instance)

type

string (Event type)

occurred_at

string <date-time> (When the event occurred)

aggregate_id

string (ID of the primary entity this event is about)

aggregate_type

string (Type of the primary entity (derived from event_type))

metadata

object (Public metadata)

organization_id

string (Organization context)

repository_id

string (Repository context)

triggered_by

object (UserEmbedded)

correlation_id

string
Correlation ID for tracking event chains back to the original request.
Uses request_id from the originating gRPC/HTTP request when available,
falls back to trace_id or the root event's ID.

causation_id

string
Causation ID is the ID of the event that directly caused this event.
Empty for root events (events triggered directly by user actions).
Used to reconstruct the event tree within a correlation chain.

header.metadata

Field

Description

property name*
additional property

string

header.triggered_by

Field

Description

id

string (Id will contain "<external-user>" if user is external)

slug

string (Slug will contain "<external-user>" if user is external)

repository

Field

Description

id

string

slug

string

organization

object (OrganizationEmbedded)

repository.organization

Field

Description

id

string

slug

string

organization

Field

Description

id

string

slug

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"
          }
        }
      }
    }
  }
}