---
title: "Attach an existing artifact to a chat"
method: POST
path: "/chats/{chatId}/artifacts"
tags: ["Artifacts"]
---

# Attach an existing artifact to a chat

`POST /chats/{chatId}/artifacts`

## Request

- Base URL: `https://api.ziggsai.com`
- URL: `https://api.ziggsai.com/chats/{chatId}/artifacts`
- Auth: HTTP bearer

## Path parameters

- `chatId` string, required

## Request body

- AttachArtifactDto
  - `artifactId` string, required: Artifact to attach to this container

## Response `201`

Attached. `outcome` is `created` for a new link, or `existing` when the artifact was already in this chat (including the chat it was recorded in): in which case nothing was written and no one was notified again.

- ArtifactAttachResponseSchema
  - `success` true, required
  - `link` object, required
  - `outcome` 'created' | 'existing', required

---

[API](https://skmtc.dev/ziggsai/apis/ziggs-developer-api.md) · [All operations](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/revisions/eda79030e072?raw)
