---
title: "Get a component"
method: GET
path: "/v1/components/{componentId}"
tags: ["Components"]
---

# Get a component

`GET /v1/components/{componentId}`

Retrieve a single component by ID.

## Response `200`

Successful.

- ComponentResponse
  - `id` string, required — The ID of the component.
  - `name` string, required — The name of the component.
  - `lmx` string, required — The component body serialized as LMX.

## Other responses

- `400` — Invalid `componentId`.
- `401` — Invalid API key or content API not enabled for this team.
- `404` — Component not found.
- `405` — Wrong HTTP request method.

---

[API](https://skmtc.net/loops/apis/loops-openapi-spec.md) · [All operations](https://skmtc.net/loops/apis/loops-openapi-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loops/loops-openapi-spec/revisions/9cc087257f0d/schema)
