---
title: "Sourcely V2 Chat"
method: POST
path: "/sourcely_v2_chat"
---

# Sourcely V2 Chat

`POST /sourcely_v2_chat`

## Request

- Base URL: `https://api.yomu.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.yomu.ai/sourcely_v2_chat`
- Auth: API key in header `ACCESS_TOKEN`

Implements a chat interface with Sourcely that allows users to chat with selected academic sources.
Takes user messages and returns streaming response with citations in <span data-component="ref" data-ref-number="X" data-ref-title="evidence text"/> format.

## Request body

- SourcelyV2ChatRequest
  - `uuid` string, required
  - `isProduction` boolean, nullable
  - `messages` object[], required: List of message objects with 'role', 'content' and optional 'attachmentLink' (list) keys
  - `citation_ids` string[], nullable
  - `model_id` string, nullable
  - `output_format` string, nullable
  - `input_format` string, nullable
  - `plan` string, nullable
  - `chatId` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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