---
# @generated by sylphx-gen. Do not edit.
title: "Legal documents"
description: "The `legal_documents` collection of Sylphx Auth: One immutable revision of a project's legal agreement."
type: reference
product: auth
summary: "One immutable revision of a project's legal agreement."
updated: 2026-09-28
order: 900
---

One immutable revision of a project's legal agreement.

**Service** Sylphx Auth · **Resource type** `auth.sylphx.com/LegalDocument` · **Name pattern** `orgs/{org}/projects/{project}/legal_documents/{legal_document}` · **Shape** `record`

## Fields

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Canonical Resource name. |
| `uid` | `string` | Server-assigned immutable ID. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `spec` | `LegalDocumentSpec` | The immutable agreement text and publication policy. Required. |
| `status` | `LegalDocumentStatus` | Computed hash and publication state. Output only. |

## Methods

Every method of the collection, in the registry's order, with the scope it
needs. The full request, response and examples are one link away.

| Method | Call | What it does |
| --- | --- | --- |
| `GET` | [`get`](/docs/api/legal_documents#get) | Gets a legal revision, including draft or published state. |
| `POST` | [`create`](/docs/api/legal_documents#create) | Creates an immutable draft revision. |
| `GET` | [`list`](/docs/api/legal_documents#list) | Lists all agreement revisions of the project. |
| `POST` | [`publish`](/docs/api/legal_documents#publish) | Publishes an immutable revision with its configured effective time. |

## get

Gets a legal revision, including draft or published state.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document` · scope `auth:read` · effect `read` · [Request, response and examples](/docs/api/legal_documents/get)

## create

Creates an immutable draft revision.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents` · scope `auth:write` · effect `write` · [Request, response and examples](/docs/api/legal_documents/create)

## list

Lists all agreement revisions of the project.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents` · scope `auth:read` · effect `read` · paginated · [Request, response and examples](/docs/api/legal_documents/list)

## publish

Publishes an immutable revision with its configured effective time.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document:publish` · scope `auth:write` · effect `write` · [Request, response and examples](/docs/api/legal_documents/publish)
