---
title: "Import a design system [write]"
method: POST
path: "/artifacts/design-systems"
tags: ["artifacts"]
---

# Import a design system \[write\]

`POST /artifacts/design-systems`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/artifacts/design-systems`
- Auth: HTTP bearer

Imports a design system's file table (the shape a Claude Design System artifact keeps: `design-system.json`, `tokens.json`, `README.md`, `components/<Name>/README.md` and `preview.html`, `assets/…`, `fonts/…`, with or without the leading `project/`) into the task's files under `design-systems/<slug>/project/`, then publishes that folder as an artifact named after its title. Binary files are `data:` URIs. 400 lists every refused path: `..`, dot segments, toolchain manifests and `blob:` pointers into another service's store.

## Request body

- object
  - `task_id` string, required
  - `title` string: Replaces the index's title; required when the table has none
  - `files` object, required: Path → text, or a data: URI for binary files; at most 500

## Response `201`

Created

- object
  - `artifact` Artifact, required
    - `id` string, required
    - `task_id` string, required: The task it belongs to (sess_…)
    - `name` string, required: Unique within the task; publishing under the same name adds a version
    - `kind` 'design_system' | 'null', nullable, required: design_system when the current revision holds project/design-system.json; null otherwise
    - `version` integer, required: The current revision
    - `entry` string, required: The file opened first
    - `files` object[], required
      - `path` string, required
      - `sha256` string, required
      - `size_bytes` integer, required
    - `share_url` string, nullable, required: The public link, or null while not shared
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, 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/design-systems/post.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/8280a065ef6a?raw)
