How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Hooks API

Use this API to manage the hooks that GitLab uses to notify external services about events:- [Project webhooks](https://docs.gitlab.com/user/project/integrations/webhooks/) are limited to a single project.- [Group webhooks](https://docs.gitlab.com/user/project/integrations/webhooks/#group-webhooks) apply to all projects and subgroups in a group.- [System hooks](https://docs.gitlab.com/administration/system_hooks/) apply to the entire instance.You can also test a hook, inspect its event log, resend an event, and manage its custom headers andURL variables.Managing project webhooks requires administrator access or the Maintainer or Owner role for theproject. Managing group webhooks requires administrator access or the Owner role for the group.Managing system hooks requires administrator access.

GitLab Hooks API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include Hooks. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 34 operations across 18 paths, and defines 15 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

34 operations 18 paths 15 schemas 9 DELETE8 GET8 POST9 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab Hooks API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 34

Across 18 paths, the API surfaces 34 operations — 9 DELETE, 8 GET, 8 POST, 9 PUT. Each is listed below with its method, path, parameters, and response codes.

Hooks 34

Use this API to manage the hooks that GitLab uses to notify external services about events: - Project webhooks are limited to a single project. - Group webhooks apply to all proje…

GET
/api/v4/groups/{id}/hooks
List all group hooks
getApiV4GroupsIdHooks 3 params → 200404400
POST
/api/v4/groups/{id}/hooks
Create a group hook
postApiV4GroupsIdHooks 1 param body → 201400404422
GET
/api/v4/groups/{id}/hooks/{hook_id}
Retrieve a group hook
getApiV4GroupsIdHooksHookId 2 params → 200404400
PUT
/api/v4/groups/{id}/hooks/{hook_id}
Update a group hook
putApiV4GroupsIdHooksHookId 2 params body → 200400404422
DELETE
/api/v4/groups/{id}/hooks/{hook_id}
Delete a group hook
deleteApiV4GroupsIdHooksHookId 2 params → 200404400
GET
/api/v4/groups/{id}/hooks/{hook_id}/events
List all events
getApiV4GroupsIdHooksHookIdEvents 5 params → 200400404403
PUT
/api/v4/groups/{id}/hooks/{hook_id}/url_variables/{key}
Update a URL variable
putApiV4GroupsIdHooksHookIdUrlVariablesKey 3 params body → 200404400
DELETE
/api/v4/groups/{id}/hooks/{hook_id}/url_variables/{key}
Delete a URL variable
deleteApiV4GroupsIdHooksHookIdUrlVariablesKey 3 params → 204404400
PUT
/api/v4/groups/{id}/hooks/{hook_id}/custom_headers/{key}
Update a custom header
putApiV4GroupsIdHooksHookIdCustomHeadersKey 3 params body → 200404400
DELETE
/api/v4/groups/{id}/hooks/{hook_id}/custom_headers/{key}
Delete a custom header
deleteApiV4GroupsIdHooksHookIdCustomHeadersKey 3 params → 204404400
POST
/api/v4/groups/{id}/hooks/{hook_id}/test/{trigger}
Trigger a test webhook
postApiV4GroupsIdHooksHookIdTestTrigger 3 params → 201400403404422429
POST
/api/v4/groups/{id}/hooks/{hook_id}/events/{hook_log_id}/resend
Resend a webhook event
postApiV4GroupsIdHooksHookIdEventsHookLogIdResend 3 params → 201422404429400
PUT
/api/v4/hooks/{hook_id}/url_variables/{key}
Update a URL variable
putApiV4HooksHookIdUrlVariablesKey 2 params body → 200404400
DELETE
/api/v4/hooks/{hook_id}/url_variables/{key}
Delete a URL variable
deleteApiV4HooksHookIdUrlVariablesKey 2 params → 204404400
PUT
/api/v4/hooks/{hook_id}/custom_headers/{key}
Update a custom header
putApiV4HooksHookIdCustomHeadersKey 2 params body → 200404400
DELETE
/api/v4/hooks/{hook_id}/custom_headers/{key}
Delete a custom header
deleteApiV4HooksHookIdCustomHeadersKey 2 params → 204404400
GET
/api/v4/hooks
List all system hooks
getApiV4Hooks 2 params → 200400
POST
/api/v4/hooks
Create a system hook
postApiV4Hooks body → 201400404422
GET
/api/v4/hooks/{hook_id}
Retrieve a system hook
getApiV4HooksHookId 1 param → 200404400
PUT
/api/v4/hooks/{hook_id}
Update a system hook
putApiV4HooksHookId 1 param body → 200400404422
POST
/api/v4/hooks/{hook_id}
Create a test run
postApiV4HooksHookId 1 param → 201404400
DELETE
/api/v4/hooks/{hook_id}
Delete a system hook
deleteApiV4HooksHookId 1 param → 200404400
PUT
/api/v4/projects/{id}/hooks/{hook_id}/url_variables/{key}
Update a URL variable
putApiV4ProjectsIdHooksHookIdUrlVariablesKey 3 params body → 200404400
DELETE
/api/v4/projects/{id}/hooks/{hook_id}/url_variables/{key}
Delete a URL variable
deleteApiV4ProjectsIdHooksHookIdUrlVariablesKey 3 params → 204404400
PUT
/api/v4/projects/{id}/hooks/{hook_id}/custom_headers/{key}
Update a custom header
putApiV4ProjectsIdHooksHookIdCustomHeadersKey 3 params body → 200404400
DELETE
/api/v4/projects/{id}/hooks/{hook_id}/custom_headers/{key}
Delete a custom header
deleteApiV4ProjectsIdHooksHookIdCustomHeadersKey 3 params → 204404400
GET
/api/v4/projects/{id}/hooks
List all webhooks for a project
getApiV4ProjectsIdHooks 3 params → 200404400
POST
/api/v4/projects/{id}/hooks
Add a webhook to a project
postApiV4ProjectsIdHooks 1 param body → 201400404422429
GET
/api/v4/projects/{id}/hooks/{hook_id}
Retrieve a project webhook
getApiV4ProjectsIdHooksHookId 2 params → 200404400
PUT
/api/v4/projects/{id}/hooks/{hook_id}
Update a project webhook
putApiV4ProjectsIdHooksHookId 2 params body → 200400404422
DELETE
/api/v4/projects/{id}/hooks/{hook_id}
Delete a project webhook
deleteApiV4ProjectsIdHooksHookId 2 params → 200404400
GET
/api/v4/projects/{id}/hooks/{hook_id}/events
List all events
getApiV4ProjectsIdHooksHookIdEvents 5 params → 200400404403
POST
/api/v4/projects/{id}/hooks/{hook_id}/test/{trigger}
Trigger a test webhook
postApiV4ProjectsIdHooksHookIdTestTrigger 3 params → 201400403404422429
POST
/api/v4/projects/{id}/hooks/{hook_id}/events/{hook_log_id}/resend
Resend a webhook event
postApiV4ProjectsIdHooksHookIdEventsHookLogIdResend 3 params → 201422404429400

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesGroupHook (39 properties), APIEntitiesProjectHook (37 properties), postApiV4GroupsIdHooksRequest (32 properties), putApiV4GroupsIdHooksHookIdRequest (32 properties). Each schema is shown below with its type and property counts.

APIEntitiesProjectHook
object
37 properties
putApiV4GroupsIdHooksHookIdCustomHeadersKeyRequest
object
1 property 1 required
putApiV4ProjectsIdHooksHookIdUrlVariablesKeyRequest
object
1 property 1 required
putApiV4HooksHookIdRequest
object
15 properties
APIEntitiesHook
object
20 properties
putApiV4ProjectsIdHooksHookIdCustomHeadersKeyRequest
object
1 property 1 required
postApiV4GroupsIdHooksRequest
object
32 properties 1 required
putApiV4GroupsIdHooksHookIdRequest
object
32 properties
putApiV4HooksHookIdCustomHeadersKeyRequest
object
1 property 1 required
postApiV4ProjectsIdHooksRequest
object
30 properties 1 required
putApiV4HooksHookIdUrlVariablesKeyRequest
object
1 property 1 required
APIEntitiesGroupHook
object
39 properties
postApiV4HooksRequest
object
15 properties 1 required
putApiV4GroupsIdHooksHookIdUrlVariablesKeyRequest
object
1 property 1 required
putApiV4ProjectsIdHooksHookIdRequest
object
30 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-hooks-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab Hooks API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.