---
title: "POST /chat/sessions/{session_id}/nodes/by_code_hash"
method: POST
path: "/chat/sessions/{session_id}/nodes/by_code_hash"
tags: ["chat"]
---

# POST /chat/sessions/{session_id}/nodes/by_code_hash

`POST /chat/sessions/{session_id}/nodes/by_code_hash`

## Path parameters

- `session_id` string, uuid, required

## Request body

- GetNodeByCodeHashRequest
  - `code_md5_hash` string, required
  - `new_node_id` string, uuid, required

## Response `200`

Successfully retrieved latest node id with matching code hash and copied output to the provided new node if supplied, or null if not found.

- string, uuid

## Other responses

- `400` — Invalid request.

---

[API](https://skmtc.dev/structifyai/apis/structify.md) · [All operations](https://skmtc.dev/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/structifyai/structify/revisions/1364930b6980/schema)
