pages
pages
Create a new custom page. Requires administrative privileges.
### Body Parameter Guidelines:
- **title**: Heading displayed at the top of the page.
- **slug**: URL path identifier. Must be unique and URL-safe.
- **body_markdown**: Content written in Markdown format.
- **body_json**: Optional JSON payload for API-consumed/structured data pages.
- **is_top_level_path**: Set to `true` to serve the page directly at the root (e.g. `/{slug}`) instead of under the default namespace `/page/{slug}`. Use with caution to avoid namespace collisions with core Forem paths.
- **template**: Layout styling options (`contained` or custom layouts).
post/api/pages
Request body
Response
successful