Skip to main content
Unary · Webhooks Creates a new webhook for receiving SCM events. Use this method to:
  • Set up webhooks for repository or organization events
  • Configure webhook scopes and provider

Examples

  • Create repository webhook with multiple scopes: Creates a webhook scoped to specific repositories.
  • Create organization webhook: Creates a webhook scoped to all repositories in an organization.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateWebhookRequest CreateWebhookRequest creates a new webhook.

Response

gitpod.v1.CreateWebhookResponse
Webhook represents a webhook endpoint for receiving SCM events.gitpod.v1.Webhook
Metadata contains organizational and ownership information.gitpod.v1.Webhook.Metadata
Spec contains the webhook configuration.gitpod.v1.Webhook.Spec
WebhookOrganizationScope represents an SCM organization in the webhook’s scope.gitpod.v1.WebhookOrganizationScope
WebhookRepositoryScope represents a repository in the webhook’s scope. Contains SCM repository information needed to generate execution contexts. The clone URL can be derived as https://{host}/{owner}/{name}.gitgitpod.v1.WebhookRepositoryScope
WebhookProvider identifies the Git provider.
WebhookType determines the scope level of the webhook.