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

# Webhook for test case steps

`POST /api/v1/tcg/test-case-steps-webhook`

## Request

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

Receives and stores individual test case steps from AI service. Requires HTTP Basic Authentication.

## Request body

- object
  - `user_id` string, required
  - `tcg_id` string
  - `steps` object[]
    - `step_number` integer
    - `description` string
    - `expected_result` string

## Response `200`

Test case steps 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)
