---
title: "POST /api/internal/artifacts"
method: POST
path: "/api/internal/artifacts"
tags: ["Artifacts", "Internal"]
---

# POST /api/internal/artifacts

`POST /api/internal/artifacts`

## Request body

- object
  - `botId` string, required
  - `title` string, required
  - `sessionKey` string
  - `chatId` string
  - `threadId` string
  - `channelType` string
  - `channelId` string
  - `artifactType` 'code' | 'content' | 'deployment'
  - `source` 'coding' | 'content'
  - `contentType` string
  - `status` 'building' | 'live' | 'failed' | 'stopped'
  - `previewUrl` string, uri
  - `deployTarget` string
  - `linesOfCode` integer
  - `fileCount` integer
  - `durationMs` integer
  - `metadata` object

## Response `201`

Created artifact

- object
  - `id` string, required
  - `botId` string, required
  - `sessionKey` string, nullable, required
  - `channelType` string, nullable, required
  - `channelId` string, nullable, required
  - `title` string, required
  - `artifactType` string, nullable, required
  - `source` string, nullable, required
  - `contentType` string, nullable, required
  - `status` string, required
  - `previewUrl` string, nullable, required
  - `deployTarget` string, nullable, required
  - `linesOfCode` number, nullable, required
  - `fileCount` number, nullable, required
  - `durationMs` number, nullable, required
  - `metadata` object, nullable, required
  - `createdAt` string, required
  - `updatedAt` string, required

---

[API](https://skmtc.net/nexu-io/apis/nexu-controller-api.md) · [All operations](https://skmtc.net/nexu-io/apis/nexu-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nexu-io/nexu-controller-api/revisions/ee3237405da6/schema)
