---
title: "Create Shared Qa"
method: POST
path: "/api/share/qa"
tags: ["share"]
---

# Create Shared Qa

`POST /api/share/qa`

## Request

- Base URL: `https://fojin.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fojin.app/api/share/qa`
- Auth: HTTP bearer

Create a publicly shareable Q&A snapshot. Anyone with the short ID can read it.

创建公开可访问的问答快照,用于社交分享。

## Request body

- ShareQARequest
  - `question` string, required
  - `answer` string, required
  - `sources` ChatSource[], nullable
    - `text_id` integer, required
    - `juan_num` integer, required
    - `chunk_index` integer
    - `chunk_text` string, required
    - `score` number, required
    - `title_zh` string
    - `lang` string
    - `source_id` integer, nullable
    - `parallel_chunks` ParallelChunk[]
      - `text_id` integer, required
      - `juan_num` integer, required
      - `chunk_index` integer, required
      - `chunk_text` string, required
      - `lang` string, required
      - `title` string
      - `confidence` number
      - `urn` string, nullable
    - `urn` string, nullable
    - `located` boolean
    - `located_window` string, nullable
    - `located_texts` integer, nullable

## Response `200`

Successful Response

- ShareQACreateResponse
  - `id` string, required
  - `url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
