---
title: "Generate Scientific Paper"
method: POST
path: "/api/projects/{project_id}/paper/scientific"
---

# Generate Scientific Paper

`POST /api/projects/{project_id}/paper/scientific`

## Request

- Base URL: `https://app.pharos.bio` (the document declares no server; this is the origin it was published from)
- URL: `https://app.pharos.bio/api/projects/{project_id}/paper/scientific`
- Auth: none declared

Generate a publication-quality paper using claude-scientific-writer.

Runs in a background thread. The frontend polls /api/projects/{id} until
paper_content appears. The resulting LaTeX PDF is served at the existing
/api/projects/{id}/paper.pdf endpoint.

## Path parameters

- `project_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- ScientificPaperRequest: Request body for scientific paper generation via claude-scientific-writer.
  - `query` string, nullable
  - `effort_level` string
  - `instructions` string, nullable
  - `track_token_usage` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pharos/apis/agentic-data-scientist.md) - [All operations](https://skmtc.dev/pharos/apis/agentic-data-scientist/llms.txt) - [OpenAPI document](https://skmtc.dev/pharos/apis/agentic-data-scientist/revisions/7c77a7fe3870?raw)
