---
title: "One component preview as a document [read]"
method: GET
path: "/artifacts/{id}/design-system/previews/{component}"
tags: ["artifacts"]
---

# One component preview as a document \[read\]

`GET /artifacts/{id}/design-system/previews/{component}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/artifacts/{id}/design-system/previews/{component}`
- Auth: HTTP bearer

The preview with tokens.css, fonts, bundle.css, libraries and bundle.js preloaded and `data-theme` set, as JSON for a sandboxed frame (`srcdoc` with no same-origin access). `Cover` is the system's cover.

## Path parameters

- `id` string, required
- `component` string, required

## Query parameters

- `theme` string

## Response `200`

OK

- object
  - `html` string, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/artifacts/:id/design-system/previews/:component/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
