Register an editable HTML component
Used by AI codegen tools (and the MCP server’s register_component
tool) during a build session. The tool says: “I just generated this
hero section — register it as editable in the project’s admin.”
Neural Draft parses the HTML, extracts every data-translate="key"
attribute, creates the corresponding translation keys, and stores
the HTML as a Component. The component then appears in the project
admin as editable, and the MCP server can stream changes back via
content.changed webhooks.
Costs 0 credits — registration itself is free. Future edits invoked through this component go through the standard content/image endpoints with their normal pricing.
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.
Body
Response
Component registered.