GitBook
App · 5 actions
Find documentation spaces and pages, and route GitBook change requests for review.
Actions
| Action | What it does |
|---|---|
| Get a documentation page | Read the title, path and Markdown content of a GitBook page. |
| List change requests | Get proposed edits to a space, with their titles, state and links. |
| List documentation pages | Get the page hierarchy in the current revision of a documentation space. |
| List documentation spaces | Find the spaces in a GitBook organization. |
| List organizations | Find the GitBook organizations your account can access. |
Get a documentation page
Read the title, path and Markdown content of a GitBook page.
Inputs
- Space ID
space_idtextRequired - The documentation space to use.
- Page ID
page_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 ID
space_idtextRequired - The documentation space to use.
- Page token
page_tokentext - The next page token from a previous result.
- Status
statustext - 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 ID
space_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
- Organization
organization_idtextRequired - The organization to use.
- Page token
page_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 token
page_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"
}
}
}