API reference

Create a demo page

Create a placeholder documentation page.

Updated May 11, 2026

Create a demo page

Create a placeholder documentation page.

POSTCreate a demo page
https://api.example.com/v1/demo-pages

Auth: bearerAuth: bearer (token)Open playground

Generated from examples/openapi.json. Use the playground for interactive exploration when your API allows safe requests.

Authentication

bearerAuth: bearer (token)

Request body

Required
application/json body
PropertyTypeDescription
titleRequiredstring
bodyRequiredstring
tagsOptionalstring[]

application/json request

Request
{
  "title": "Install the CLI",
  "body": "Run npm install -g example-cli."
}

Responses

201HTTP response
The demo page was created.
400HTTP response
The request body was invalid.

Code samples

cURL
curl -X POST "https://api.example.com/v1/demo-pages" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"Install the CLI","body":"Run npm install -g example-cli."}'

Schemas

DemoPage
PropertyTypeDescription
idRequiredstring
slugRequiredstring
titleRequiredstring
statusRequireddraft | published
DemoPageCreate
PropertyTypeDescription
titleRequiredstring
bodyRequiredstring
tagsOptionalstring[]
Was this page helpful?