# Document360

> Read and write your Document360 knowledge base: list workspaces and articles, pull an article's content, and create new ones.

App · Documents · 4 actions. Web page: https://docs.lodol.com/docs/integrations/document360

## Actions

### Create an article

Create a new article in a category. It starts as an unpublished draft.

**Inputs**

- Title (`title`, text, required): The article's title. The slug is generated from it.
- Category ID (`category_id`, text, required): The ID of the category to create the article in. Find it in the Document360 portal URL when viewing the category.
- Workspace ID (`workspace_id`, text, required): The ID of the workspace (project version), as returned by List workspaces.
- Content (`content`, text): Optional. The article body, as Markdown.
- Author ID (`author_id`, text, required): The Document360 team account ID to credit as the article's contributor. Required by Document360's API. Find your own ID in the portal under Settings > Users -- open your account and copy the ID from the URL.

**Outputs**

- `article_id` (text): Article ID. Use with Get an article.
- `category_id` (text): ID of the category the article was created in
- `hidden` (true/false): Whether the article is hidden from readers
- `latest_version` (number): The newest version number, which may be an unpublished draft
- `public_version` (number): The version number readers currently see
- `slug` (text): The article's URL slug
- `title` (text): The article's title
- `url` (text): Link to the article in the published knowledge base
- `workspace_id` (text): ID of the workspace the article belongs to

**Example output**

```json
{
  "article_id": "7db99386-2816-40f0-991f-174dgdscf",
  "category_id": "5b291e6b-fa40-4ab9-941e-f8fffc23b376",
  "hidden": false,
  "latest_version": 2,
  "public_version": 1,
  "slug": "getting-started-with-our-sdk",
  "title": "Getting started with our SDK",
  "url": "https://example.com/v1/docs/en/why-did-we-build-document360",
  "workspace_id": "46f48bc7-760f-4b07-b2d2-fce4aa8ba234"
}
```

### Get an article

Fetch one article translation, including its Markdown body and rendered HTML.

**Inputs**

- Article ID (`article_id`, text, required): The ID of the article, as returned by List articles.
- Language code (`language_code`, text): The language to read, for example 'en' or 'fr'. Defaults to English. Default: `en`.

**Outputs**

- `article_id` (text): Article ID. Use with Get an article.
- `authors` (list): The people who have edited the article
- `category_id` (text): ID of the category the article sits in
- `content` (text): The article body as Markdown source
- `hidden` (true/false): Whether the article is hidden from readers
- `html_content` (text): The rendered HTML body, or empty if the article hasn't been rendered
- `latest_version` (number): The newest version number, which may be an unpublished draft
- `public_version` (number): The version number readers currently see
- `slug` (text): The article's URL slug
- `title` (text): The article's title
- `url` (text): Link to the article in the published knowledge base
- `version_number` (number): The version number this response returned
- `workspace_id` (text): ID of the workspace the article belongs to

**Example output**

```json
{
  "article_id": "7db99386-2816-40f0-991f-174dgdscf",
  "authors": [
    {
      "email": "peterjone@mail.com",
      "name": "Peter Jone"
    }
  ],
  "category_id": "de104b39-db97-4509-8d4c-deeac74d448b",
  "content": "## Install\n\n`npm install @example/sdk`",
  "hidden": false,
  "html_content": "<h2>Install</h2>",
  "latest_version": 2,
  "public_version": 1,
  "slug": "why-did-we-build-document360",
  "title": "Why did we build Document360?",
  "url": "https://example.com/v1/docs/en/why-did-we-build-document360",
  "version_number": 1,
  "workspace_id": "46f48bc7-760f-4b07-b2d2-fce4aa8ba234"
}
```

### List articles

List the articles in one workspace.

**Inputs**

- Workspace ID (`workspace_id`, text, required): The ID of the workspace (project version), as returned by List workspaces.
- Language code (`language_code`, text): The language to read, for example 'en' or 'fr'. Defaults to English. Default: `en`.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1. Default: `1`.
- Articles per page (`page_size`, number): How many articles to return per page (1-100). From 1 to 100. Default: `25`.

**Outputs**

- `articles` (list): The articles on this page

**Example output**

```json
{
  "articles": [
    {
      "article_id": "7db99386-2816-40f0-991f-174dgdscf",
      "hidden": false,
      "latest_version": 2,
      "public_version": 1,
      "slug": "why-did-we-build-document360",
      "title": "Why did we build Document360?",
      "url": "https://example.com/v1/docs/en/why-did-we-build-document360"
    }
  ]
}
```

### List workspaces

List the workspaces (project versions) in your knowledge base. Every other action needs a workspace ID from here.

**Inputs**: None.

**Outputs**

- `workspaces` (list): The workspaces in the project

**Example output**

```json
{
  "workspaces": [
    {
      "is_main": true,
      "is_public": true,
      "name": "v1",
      "version_number": 1.0,
      "workspace_id": "46f48bc7-760f-4b07-b2d2-fce4aa8ba234"
    }
  ]
}
```
