---
title: "Continue or fork a session"
method: POST
path: "/sessions/{id}/continue"
tags: ["Sessions"]
---

# Continue or fork a session

`POST /sessions/{id}/continue`

Create a new session that continues from an existing session,
inheriting its conversation history.

## Path parameters

- `id` string, required

## Request body

- ContinueSessionRequest
  - `query` string, required — New query to continue with
  - `system_prompt` string — Override system prompt
  - `append_system_prompt` string — Append to system prompt
  - `mcp_config` MCPConfig
    - `mcpServers` object — Map of server name to configuration
  - `permission_prompt_tool` string — MCP tool for permissions
  - `allowed_tools` string[] — Allowed tools list
  - `disallowed_tools` string[] — Disallowed tools list
  - `custom_instructions` string — Custom instructions
  - `max_turns` integer — Max conversation turns

## Response `201`

New session created

- ContinueSessionResponse
  - `data` object, required
    - `session_id` string, required
    - `run_id` string, required
    - `claude_session_id` string, required
    - `parent_session_id` string, required

## Other responses

- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.net/humanlayer/apis/humanlayer-daemon-rest-api.md) · [All operations](https://skmtc.net/humanlayer/apis/humanlayer-daemon-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanlayer/humanlayer-daemon-rest-api/versions/02da8cb8aa12/schema)
