---
title: "Resolve the current source of a captured file annotation without modifying it"
method: POST
path: "/api/v1/sessions/{sessionId}/conversation/file-references/resolve"
tags: ["sessions"]
---

# Resolve the current source of a captured file annotation without modifying it

`POST /api/v1/sessions/{sessionId}/conversation/file-references/resolve`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/sessions/{sessionId}/conversation/file-references/resolve`
- Auth: none declared

## Path parameters

- `sessionId` string, required: Session identifier, e.g. project-1.

## Request body

- ConversationFileReferenceRequest
  - `commitSha` string
  - `endLine` integer, required
  - `endSide` 'file' | 'old' | 'new'
  - `fileFingerprint` string
  - `hostId` string
  - `id` string, required
  - `line` integer, required
  - `lines` ChatFileReferenceLine[], required
    - `kind` 'context' | 'add' | 'del', required
    - `newNo` integer, nullable, required
    - `oldNo` integer, nullable, required
    - `side` 'file' | 'old' | 'new'
    - `text` string, required
  - `order` integer
  - `path` string, required
  - `previousPath` string
  - `scope` string
  - `sessionId` string, required
  - `side` 'file' | 'old' | 'new', required
  - `source` ChatFileReferenceSource, required
    - `kind` 'workspace' | 'pull_request' | 'artifact', required
    - `number` integer
    - `snapshot` string
    - `url` string
  - `truncated` boolean, required
  - `workspaceVersion` string

## Response `200`

OK

- ResolveFileReferenceResponse
  - `endLine` integer
  - `line` integer
  - `newLineOffset` integer
  - `oldLineOffset` integer
  - `path` string
  - `reason` string
  - `side` string
  - `state` 'unchanged' | 'changed' | 'unavailable' | 'moved', required

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `501`: Not Implemented

## Changes

- **2026-10-28** `63f4435bffa1`: 1 warning, 2 info
  - added the new `moved` enum value to the `state` response property for the response status `200`
  - added the optional property `newLineOffset` to the response with the `200` status
  - added the optional property `oldLineOffset` to the response with the `200` status
- **2026-10-28** `c7d43b3dc0b6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/conversation/file-references/resolve/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/3a5588b32f85?raw)
