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>"
}
Retrieve a single component by ID.
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.
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": true,
"componentId": "cmpn_01hxyz",
"name": "Hero header",
"lmx": "<Section><Heading>Welcome</Heading></Section>"
}
Was this page helpful?