Skip to main content
GET
/
v1
/
components
/
{id}
Get a component
curl --request GET \
  --url https://app.loops.so/api/v1/components/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "cmn5ziajr01oztzlifwarda8m",
  "name": "Hero header",
  "lmx": "<Section><Heading>Welcome</Heading></Section>"
}

Request

Path parameters

id
string
required
The ID of the component.

Response

Success

id
string
required
The component ID.
name
string
required
The component name.
lmx
string
required
The component body serialized as LMX.

Error

A 400 Bad Request is returned if id is invalid. A 404 Not Found is returned if the component does not exist. If the API key is invalid (or content API is not enabled for your team), a 401 Unauthorized is returned.
message
string
required
{
  "id": "cmn5ziajr01oztzlifwarda8m",
  "name": "Hero header",
  "lmx": "<Section><Heading>Welcome</Heading></Section>"
}
Last modified on June 12, 2026