---
title: "Publish a terms document"
method: POST
path: "/accounts/terms/document/publish"
tags: ["Terms"]
---

# Publish a terms document

`POST /accounts/terms/document/publish`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/terms/document/publish`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/terms/document/publish/post.ts> (a function with typed inputs; its response is checked against the schema)

Publishes the draft as the next version. Admin or root.

## Request body

- object
  - `document_id` string, required: Document id
  - `change_note` string: What changed

## Response `200`

Success

- object
  - `data` object
    - `document` object
    - `version` object

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Caller is not an admin or root

## Changes

- **2026-11-12** `700eb1ace61a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/terms/document/publish/post.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
