---
title: "Webhook for test case generation results"
method: POST
path: "/api/v1/tcg/webhook"
tags: ["TCG"]
---

# Webhook for test case generation results

`POST /api/v1/tcg/webhook`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/tcg/webhook`
- Auth: HTTP basic

Receives and stores test case generation results from AI service. Requires HTTP Basic Authentication.

## Request body

- object
  - `user_id` string, required
  - `tcg_id` string
  - `test_cases` object[]
    - `title` string
    - `steps` string[]

## Response `200`

Test case generation results stored successfully

- object
  - `message` string

## Other responses

- `401`: Unauthorized
- `422`: Unprocessable entity - storage failed

---

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