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

Documentation Index

Fetch the complete documentation index at: https://loops.so/docs/llms.txt

Use this file to discover all available pages before exploring further.

Content API endpoints are currently in an open alpha and are subject to change.

Request

Path parameters

componentId
string
required
The ID of the component.

Response

Success

success
boolean
required
componentId
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 componentId 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.
success
boolean
required
message
string
required
{
  "success": true,
  "componentId": "cmpn_01hxyz",
  "name": "Hero header",
  "lmx": "<Section><Heading>Welcome</Heading></Section>"
}
Last modified on May 20, 2026