v4

latestOpenAPI 3.1.02026-07-3163216290.7 KB
Components

Create a component

Create a new email component from an LMX body.

post/v1/components

Request body

namestring required

The component name.

lmxstring required

The component body as an LMX string.

Example request

{
  "name": "Header",
  "lmx": "<Paragraph>Welcome to Acme</Paragraph>"
}

Response

Component created.

idstring required

The ID of the component.

namestring required

The name of the component.

lmxstring required

The component body serialized as LMX.

Example response

{
  "id": "clp2o4i6u8y0t5r3e1w7q9s1",
  "name": "Header",
  "lmx": "<Paragraph>Welcome to Acme</Paragraph>"
}