Skip to main content
POST
/
pages
Create a page
curl --request POST \
  --url https://api.neuraldraft.io/v1/pages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "about",
  "title": "About us",
  "type": "landing",
  "is_homepage": false,
  "is_active": true,
  "exclude_from_search": false,
  "meta_title": "<string>",
  "meta_description": "<string>",
  "og_title": "<string>",
  "og_description": "<string>",
  "og_image": "<string>",
  "canonical_url": "<string>"
}
'
{
  "data": {
    "id": 42,
    "slug": "about",
    "title": "About us",
    "type": "landing",
    "is_homepage": false,
    "is_active": true,
    "exclude_from_search": false,
    "meta_title": "About — Acme",
    "meta_description": "<string>",
    "og_title": "<string>",
    "og_description": "<string>",
    "og_image": "<string>",
    "canonical_url": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Body

application/json
slug
string
required
Pattern: ^[a-z0-9\-/]+$
Example:

"about"

title
string
required
Example:

"About us"

type
enum<string>
default:landing
Available options:
landing,
blog_list,
blog_post,
legal
is_homepage
boolean
default:false
is_active
boolean
default:true
meta_title
string
meta_description
string
og_title
string
og_description
string
og_image
string<uri>
canonical_url
string<uri>

Response

Created

data
object