Preview re-extract confirmation copy (project-scoped)
POST
/api/v1/projects/{projectId}/documents/re-extract-confirm-preview
const url = 'https://api.yggy.tech/api/v1/projects/example/documents/re-extract-confirm-preview';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"documentIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.yggy.tech/api/v1/projects/example/documents/re-extract-confirm-preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "documentIds": [ "example" ] }'Read-only preview for the re-extract confirmation dialog. Returns { showSharedFactsLine } only: whether the UI may state that facts another document also supports are kept. Accepts at most 20 document ids per request; the client chunks larger bulk selections. Fails closed on errors or inaccessible documents; exposes no counts or per-document detail.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
string
Header Parameters
Section titled “Header Parameters ” host
string | null
x-yggy-organization-id
string | null
Request Body
Section titled “Request Body ” Media type application/json
object
documentIds
required
Array<string>
Example generated
{ "documentIds": [ "example" ]}Responses
Section titled “ Responses ”Preview result
Media type application/json
object
showSharedFactsLine
required
boolean
Example generated
{ "showSharedFactsLine": true}Invalid request
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}