cURL
curl https://api.neuraldraft.io/v1/components?page_slug=home \
-H "Authorization: Bearer ndsk_live_yourkey"const list = await nd.components.list({ pageSlug: "home" });
list = requests.get(
"https://api.neuraldraft.io/v1/components",
params={"page_slug": "home"},
headers={"Authorization": f"Bearer {key}"},
).json()
<?php
$list = json_decode((string) $client->get('components', [
'query' => ['page_slug' => 'home'],
'headers' => ['Authorization' => 'Bearer '.$key],
])->getBody(), true);
{
"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
}
}{
"type": "https://api.neuraldraft.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "API key missing or invalid.",
"code": "unauthorized",
"instance": "req_2Nh4PqRsTuVw"
}Components
List components
Read-only. Does not consume credits.
GET
/
components
cURL
curl https://api.neuraldraft.io/v1/components?page_slug=home \
-H "Authorization: Bearer ndsk_live_yourkey"const list = await nd.components.list({ pageSlug: "home" });
list = requests.get(
"https://api.neuraldraft.io/v1/components",
params={"page_slug": "home"},
headers={"Authorization": f"Bearer {key}"},
).json()
<?php
$list = json_decode((string) $client->get('components', [
'query' => ['page_slug' => 'home'],
'headers' => ['Authorization' => 'Bearer '.$key],
])->getBody(), true);
{
"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
}
}{
"type": "https://api.neuraldraft.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "API key missing or invalid.",
"code": "unauthorized",
"instance": "req_2Nh4PqRsTuVw"
}Authorizations
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
Filter by the page the component belongs to.
Filter by registered intent (e.g. marketing_hero).
1-based page number.
Required range:
x >= 1Items per page (max 100).
Required range:
1 <= x <= 100