---
title: "Fastapi Publish Althea Document"
method: POST
path: "/api/v1/publications/althea"
tags: ["write"]
---

# Fastapi Publish Althea Document

`POST /api/v1/publications/althea`

## Request

- Base URL: `https://lacuna.tiptreesystems.com` (the document declares no server; this is the origin it was published from)
- URL: `https://lacuna.tiptreesystems.com/api/v1/publications/althea`
- Auth: none declared

Publish exactly one Althea document version with the abstract the
user wrote for it.

Lacuna does not trust publication content supplied by the browser. It
validates the token against the named, allowlisted Althea deployment,
then fetches the export and the document pack from that same
deployment as the token's owner.

## Request body

- AltheaPublicationRequest: The API body: which version to publish and the abstract for it.
  - `source_origin` string, required
  - `source_document_id` string, required
  - `source_version_id` string, required
  - `abstract` string
  - `content_sha256` string, nullable

## Response `200`

Successful Response

- LacunaPublicationResponse
  - `publication_id` string, required
  - `revision_id` string, required
  - `status` 'published', required
  - `url` string, required
  - `published_at` number, required
  - `source_version_id` string, required
  - `revision_count` integer, required

## Other responses

- `422`: Validation Error

---

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