---
title: "Create a test run"
method: POST
path: "/api/v4/hooks/{hook_id}"
tags: ["hooks"]
---

# Create a test run

`POST /api/v4/hooks/{hook_id}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/hooks/{hook_id}`
- Auth: none declared

Creates a test run for a webhook. Executes the webhook with mock data.

## Path parameters

- `hook_id` integer, required

## Response `201`

Create a test run

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
