hooks
Retrieve a project webhook
Retrieves a specified webhook for a project.
get/api/v4/projects/{id}/hooks/{hook_id}
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
hook_idinteger required
The ID of a project hook
Response
Retrieve a project webhook
Example response
{
"id": 1,
"url": "https://webhook.site",
"name": "Hook name",
"description": "Hook description",
"created_at": "2012-05-28T04:42:42-07:00",
"organization_id": 1,
"alert_status": "executable",
"disabled_until": "2012-05-28T04:42:42-07:00",
"url_variables": [
{
"token": "secr3t"
}
],
"push_events_branch_filter": "my-branch-*",
"branch_filter_strategy": "wildcard",
"custom_webhook_template": "{\"event\":\"{{object_kind}}\"}",
"custom_headers": [
{
"X-Custom-Header": "value"
}
],
"project_id": 1
}Changes
No recorded changes to this operation across all 5 revisions of this API.