Skip to main content
GET
/
components
cURL
curl https://api.neuraldraft.io/v1/components?page_slug=home \
  -H "Authorization: Bearer ndsk_live_yourkey"
{
  "data": [
    {
      "id": "cmp_2Ngd9KqLmRpW",
      "intent": "marketing_hero",
      "page_slug": "home",
      "html": "<section class=\"hero\">…</section>",
      "keys_created": [
        "hero.headline",
        "hero.subhead",
        "hero.cta"
      ],
      "created_at": "2026-04-19T10:14:02Z",
      "updated_at": "2026-04-19T10:14:02Z"
    },
    {
      "id": "cmp_2NgeZRsTuVwX",
      "intent": "testimonial_grid",
      "page_slug": "home",
      "html": "<section class=\"testimonials\">…</section>",
      "keys_created": [
        "testimonials.lead",
        "testimonials.cta"
      ],
      "created_at": "2026-04-19T10:18:11Z",
      "updated_at": "2026-04-19T10:18:11Z"
    }
  ],
  "meta": {
    "page": 1,
    "page_size": 20,
    "total": 2
  }
}

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.

Query Parameters

page_slug
string

Filter by the page the component belongs to.

intent
string

Filter by registered intent (e.g. marketing_hero).

page
integer
default:1

1-based page number.

Required range: x >= 1
page_size
integer
default:20

Items per page (max 100).

Required range: 1 <= x <= 100

Response

Paginated component list.

data
object[]
required
meta
object
required