Skip to main content
POST
cURL

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
html
string
required

HTML chunk to register. Any data-translate="key" attributes are extracted into the project's content keys. Any data-image-key="key" attributes are registered as image slots.

intent
string
Example:

"marketing_hero"

page_slug
string
Example:

"home"

Response

Component registered.

id
string
required
Example:

"cmp_2Ngd9KqLmRpW"

html
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
intent
string | null
Example:

"marketing_hero"

page_slug
string | null
Example:

"home"

keys_created
string[]
Example: