Components

Create a component

Changed on

Create a new email component from an LMX body.

post/v1/components

Request

  • Base URL
    https://app.loops.so/api
  • Auth
    HTTP bearer

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>"
}

Changes