---
title: "Get Start Hook"
method: GET
path: "/v1/environments/{environmentId}/start-hooks"
tags: ["Environments"]
---

# Get Start Hook

`GET /v1/environments/{environmentId}/start-hooks`

Returns the active start hook (if any) for the environment. Start hooks run at workspace boot, after the warm sandbox is claimed; the env-level hook runs before any repository-level start hooks defined in `replicas.json` / `replicas.yaml`.

## Path parameters

- `environmentId` string, required

## Response `200`

Successful response

- GetStartHooksResponse
  - `start_hook` StartHookRecord, required — A start hook — the shell script that runs at workspace boot (after the warm sandbox is claimed) for an environment.
    - `id` string, uuid, required
    - `organization_id` string, uuid, required
    - `environment_id` string, uuid, required
    - `version` integer, required — Monotonic version (newer scripts have higher versions)
    - `content` string, required — Shell script content
    - `is_active` boolean, required — Whether this version is the active one for the environment
    - `created_at` string, date-time, required

## Other responses

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

---

[API](https://skmtc.net/tryreplicas/apis/replica-api.md) · [All operations](https://skmtc.net/tryreplicas/apis/replica-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryreplicas/replica-api/versions/aa3b4c932f7a/schema)
