Internal DocumentHub Developer Api v2 (0.0.2)

Download OpenAPI specification:Download

DocumentHub developer Api

Documents

document operations

List collection documents

List documents in a collection

Authorizations:
portalAccessToken
path Parameters
collectionId
required
string <uuid>
Example: bb84c46a-432d-4314-81e4-478614a52dcb

Targeted collection

query Parameters
page[size]
integer
Example: page[size]=10

The maximum number of items to include per page. The last page of a collection may include fewer items.

page[number]
integer
Example: page[number]=1

Determines which page of the entities to retrieve.

filter[field]
string
Example: filter[field]=filter[name]=my-doc

A field to filter on. Supported fields: slug, metadata.

Responses

Response samples

Content type
{
  • "meta": {
    },
  • "data": [
    ]
}

Get a document by slug

Get a document. Will be removed after

Authorizations:
portalAccessToken
path Parameters
collectionId
required
string <uuid>
Example: bb84c46a-432d-4314-81e4-478614a52dcb

Targeted collection

query Parameters
slug
required
string
Example: slug=/about/company

Unique slug of the document.

Responses

Response samples

Content type
application/json
{
  • "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
  • "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
  • "slug": "getting-started",
  • "revision": {
    },
  • "created_at": "2022-11-04T20:10:06.927Z",
  • "updated_at": "2022-11-04T20:10:06.927Z"
}

Get the document

Get the document

Authorizations:
portalAccessToken
path Parameters
collectionId
required
string <uuid>
Example: bb84c46a-432d-4314-81e4-478614a52dcb

Targeted collection

documentId
required
string <uuid>
Example: bb84c46a-432d-4314-81e4-478614a52dcb

Targeted document

header Parameters
Accept
string (DocumentFormatContentTypeEnum)
Default: application/json
Enum: "text/markdown" "application/json" "application/vnd.konnect.document-nodes+json"

Responses

Response samples

Content type
No sample