---
title: "Generate From Webhook"
method: POST
path: "/test/from-webhook"
tags: ["vpm-test"]
---

# Generate From Webhook

`POST /test/from-webhook`

## Request

- Base URL: `https://hokmah.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://hokmah.dev/test/from-webhook`
- Auth: none declared

Triggered after a commit is ingested into the graph.
Produces regression tests focused on what the commit could break.
Never raises — always returns a shape, even on failure, so the webhook handler can move on.

## Request body

- WebhookTestRequest
  - `tenant_id` string, required
  - `project_id` string, required
  - `commit_sha` string, required
  - `commit_message` string
  - `changed_files` string[]
  - `language` string
  - `framework` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hokmah/apis/vpm-api.md) · [All operations](https://skmtc.dev/hokmah/apis/vpm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hokmah/apis/vpm-api/revisions/881edbbedcf8?raw)
