latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-189455174.2 KB

addaba6fddad

Document

Get document

Return the requested document by its ID, including the stored body.

get/v1/documents/{id}

Response

OK

idstring required

Unique identifier of the document.

titlestring required

Title of the document.

excerptstring nullable

Excerpt of the document.

contentstring required

Body of the document.

comment_countinteger nullable

Number of comments on the document when projected.

attachment_countinteger nullable

Number of attachments on the document when projected.

created_atstring date-time required

Date when the document was created.

updated_atstring date-time nullable required

Date when the document was updated.

Example response

{
  "id": "9bsv0s46s6s002p9ltq0",
  "title": "Project Plan",
  "excerpt": "Overview of the project plan",
  "content": "# Project Plan\n\nGoals and timeline.",
  "created_by": {
    "id": "9bsv0s46s6s002p9ltq0",
    "first_name": "Test",
    "last_name": "User",
    "picture": "https://example.com/users/my-user.png"
  },
  "library": {
    "id": "9bsv0s46s6s002p9ltq0",
    "name": "Product"
  },
  "folder": {
    "id": "9bsv0s46s6s002p9ltq0",
    "name": "Guides",
    "parent_id": "9bsv0s46s6s002p9ltq0"
  },
  "relations": [
    {
      "id": "9bsv0s46s6s002p9ltq0",
      "name": "PLAT-1"
    }
  ],
  "labels": [
    {
      "id": "9bsv0s46s6s002p9ltq0",
      "name": "frontend"
    }
  ],
  "comment_count": 3,
  "attachment_count": 1
}