Webhook
Create an outbound webhook
Creates an outbound webhook for the given scope.
post/webhook
Request
- Base URLhttps://circleci.com/api/v2
- URLhttps://circleci.com/api/v2/webhook
- Auth
- API key in header Circle-Token
- or HTTP bearer
- or HTTP basic
- or API key in query parameter circle-token
Request body
Example request
{
"name": "my-webhook",
"events": [
"workflow-completed",
"job-completed"
],
"url": "https://example.com/hooks/circleci",
"verify-tls": true,
"signing-secret": "super-secret-value",
"scope": {
"id": "39723015-b399-4601-9ff6-bd1bfbed8fa8",
"type": "project"
}
}Response
A webhook.
Example response
{
"id": "8d75ff3a-2b45-4d6e-9f1b-3c1e6f2a7b90",
"name": "my-webhook",
"url": "https://example.com/hooks/circleci",
"verify_tls": true,
"signing_secret": "********",
"events": [
"workflow-completed",
"job-completed"
],
"scope": {
"id": "39723015-b399-4601-9ff6-bd1bfbed8fa8",
"type": "project"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.