Skip to main content
POST
/
api
/
knowledge
/
create
Create a knowledge document
curl --request POST \
  --url https://core-api.getaptly.com/api/knowledge/create \
  --header 'Content-Type: application/json' \
  --header 'x-token: <api-key>' \
  --data '
{
  "name": "Lease Addendum Policy",
  "html": "<p>This policy applies to all lease agreements...</p>",
  "accessType": "private"
}
'
{
  "_id": "<string>",
  "name": "<string>"
}

Authorizations

x-token
string
header
required

Body

application/json
name
string
required

Document title.

html
string

Initial HTML content for the document body.

aptletUuid
string

UUID of the board to associate this document with.

aptletInstanceId
string

Card ID to link this document to. Creates a reference on the card.

parentId
string

ID of a parent knowledge document (for nested pages).

accessType
enum<string>

Access level. Defaults to public.

Available options:
public,
private

Response

Document created.

_id
string

ID of the created document.

name
string