GitBook

App · 5 actions

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

Actions

ActionWhat it does
Get a documentation pageRead the title, path and Markdown content of a GitBook page.
List change requestsGet proposed edits to a space, with their titles, state and links.
List documentation pagesGet the page hierarchy in the current revision of a documentation space.
List documentation spacesFind the spaces in a GitBook organization.
List organizationsFind the GitBook organizations your account can access.

Get a documentation page

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

Inputs

Space IDspace_idtextRequired
The documentation space to use.
Page IDpage_idtextRequired
The ID of the page, which List documentation pages returns.

Outputs

dataobject
The response from GitBook.
Example output
{
  "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 IDspace_idtextRequired
The documentation space to use.
Page tokenpage_tokentext
The next page token from a previous result.
Statusstatustext
Limit results to change requests in this state.One of: draft, open, archived, merged.

Outputs

dataobject
The response from GitBook.
Example output
{
  "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 IDspace_idtextRequired
The documentation space to use.

Outputs

dataobject
The response from GitBook.
Example output
{
  "data": {
    "pages": [
      {
        "id": "example",
        "pages": [
          {}
        ],
        "path": "example",
        "title": "example",
        "type": "example"
      }
    ]
  }
}

List documentation spaces

Find the spaces in a GitBook organization.

Inputs

Organizationorganization_idtextRequired
The organization to use.
Page tokenpage_tokentext
The next page token from a previous result.

Outputs

dataobject
The response from GitBook.
Example output
{
  "data": {
    "items": [
      {
        "description": "example",
        "id": "example",
        "title": "example",
        "urls": {}
      }
    ],
    "next": {
      "page": "example"
    }
  }
}

List organizations

Find the GitBook organizations your account can access.

Inputs

Page tokenpage_tokentext
The next page token from a previous result.

Outputs

dataobject
The response from GitBook.
Example output
{
  "data": {
    "items": [
      {
        "id": "example",
        "title": "example"
      }
    ],
    "next": {
      "page": "example"
    }
  }
}

On this page