# GitBook

> Find documentation spaces and pages, and route GitBook change requests for review.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/gitbook

## Actions

### Get a documentation page

Read the title, path and Markdown content of a GitBook page.

**Inputs**

- Space ID (`space_id`, text, required): The documentation space to use.
- Page ID (`page_id`, text, required): The ID of the page, which List documentation pages returns.

**Outputs**

- `data` (object): The response from GitBook.

**Example output**

```json
{
  "data": {
    "id": "example",
    "markdown": "example",
    "path": "example",
    "title": "example",
    "type": "example"
  }
}
```

### List change requests

Get proposed edits to a space, with their titles, state and links.

**Inputs**

- Space ID (`space_id`, text, required): The documentation space to use.
- Page token (`page_token`, text): The next page token from a previous result.
- Status (`status`, text): Limit results to change requests in this state. One of: `draft`, `open`, `archived`, `merged`.

**Outputs**

- `data` (object): The response from GitBook.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "createdAt": "example",
        "id": "example",
        "number": 1,
        "status": "example",
        "subject": "example",
        "updatedAt": "example",
        "urls": {}
      }
    ],
    "next": {
      "page": "example"
    }
  }
}
```

### List documentation pages

Get the page hierarchy in the current revision of a documentation space.

**Inputs**

- Space ID (`space_id`, text, required): The documentation space to use.

**Outputs**

- `data` (object): The response from GitBook.

**Example output**

```json
{
  "data": {
    "pages": [
      {
        "id": "example",
        "pages": [
          {}
        ],
        "path": "example",
        "title": "example",
        "type": "example"
      }
    ]
  }
}
```

### List documentation spaces

Find the spaces in a GitBook organization.

**Inputs**

- Organization (`organization_id`, text, required): The organization to use.
- Page token (`page_token`, text): The next page token from a previous result.

**Outputs**

- `data` (object): The response from GitBook.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "description": "example",
        "id": "example",
        "title": "example",
        "urls": {}
      }
    ],
    "next": {
      "page": "example"
    }
  }
}
```

### List organizations

Find the GitBook organizations your account can access.

**Inputs**

- Page token (`page_token`, text): The next page token from a previous result.

**Outputs**

- `data` (object): The response from GitBook.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "id": "example",
        "title": "example"
      }
    ],
    "next": {
      "page": "example"
    }
  }
}
```
