Skip to main content

Create Webhook

Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can share the same config as long as those webhooks do not have any events that overlap.

External Documentation

To learn more, visit the GitHub documentation.

Basic Parameters

ParameterDescription
Config Content TypeThe media type used to serialize the payloads. Supported values include json and form. The default is form.
Config SecretIf provided, the secret will be used as the key to generate the HMAC hex digest value for.
EventsDetermines what events the hook is triggered for.
NameThis parameter only accepts the value web.
OwnerThe organization or person who owns the repository. github.com/{owner}/{repo}
Payload URLThe URL to which the payloads will be delivered.
RepoName of the repository owned by the owner. github.com/{owner}/{repo}

Advanced Parameters

ParameterDescription
ActiveDetermines if notifications are sent when the webhook is triggered. Set to true to send notifications.

Example Output

{
"value": {
"active": true,
"config": {
"content_type": "json",
"insecure_ssl": "0",
"url": "https://example.com/webhook"
},
"created_at": "2019-06-03T00:57:16Z",
"deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
"events": [
"push",
"pull_request"
],
"id": 12345678,
"last_response": {
"code": null,
"message": null,
"status": "unused"
},
"name": "web",
"ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
"test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
"type": "Repository",
"updated_at": "2019-06-03T00:57:16Z",
"url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678"
}
}

Workflow Library Example

Create Webhook with Github and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop