---
title: "Test start hook (streaming)"
method: POST
path: "/v1/environments/{environment_id}/start-hooks/test/stream"
tags: ["Hooks"]
---

# Test start hook (streaming)

`POST /v1/environments/{environment_id}/start-hooks/test/stream`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/environments/{environment_id}/start-hooks/test/stream`
- Auth: HTTP bearer

Same as [Test start hook](/api-reference/hooks/test-start-hook), streamed as server-sent events: `progress`, `output`, `complete`, and `error`.

## Path parameters

- `environment_id` string, required

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Request body

- TestStartHookRequest
  - `content` string, required: Shell script to execute (not persisted)

## Response `200`

SSE stream of start hook test events

## Other responses

- `400`: Bad request - Missing or invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

---

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