---
title: "Attach an output link or markdown note"
method: POST
path: "/v1/tasks/{id}/artifacts"
---

# Attach an output link or markdown note

`POST /v1/tasks/{id}/artifacts`

## Request

- Base URL: `https://app.takibibase.com`
- URL: `https://app.takibibase.com/v1/tasks/{id}/artifacts`
- Auth: HTTP bearer

Requires tasks capability and own-task access, or task:assign. Links ({url}) accept only HTTP(S) URLs; markdown notes ({kind: "markdown", content}) store up to 50,000 chars server-side. This does not upload files.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `projectId` string, uuid

## Request body

- object
  - `kind` 'link' | 'markdown': Defaults to link. Markdown notes require content and reject assertedSize/assertedHash.
  - `url` string, uri: Required for links; link-only.
  - `title` string, nullable: Markdown-only display title; null reads as untitled.
  - `content` string: Required non-blank markdown for kind markdown; markdown-only.
  - `note` string
  - `assertedSize` integer, nullable: Link-only fetch proof.
  - `assertedHash` string, nullable: Link-only fetch proof.

## Response `201`

Successful response.

- object
  - `artifact` Artifact, required: List entry as carried on task payloads: kind plus the link URL or markdown title, never the stored content (read one artifact to fetch it).
    - `id` string, uuid
    - `kind` 'link' | 'markdown'
    - `url` string, nullable: Link target; null on markdown notes.
    - `title` string, nullable: Markdown display title as stored; null on links and untitled notes.
    - `note` string, nullable
    - `assertedSize` integer, nullable
    - `assertedHash` string, nullable
    - `createdByProfileId` string, nullable
    - `createdAt` string

## Other responses

- `400`: Invalid request.
- `401`: Missing, invalid, paused or revoked key, or human-only route.
- `403`: Capability or access denied.
- `404`: Resource not found or not visible.

---

[API](https://skmtc.dev/takibibase/apis/takibi-agent-api.md) · [All operations](https://skmtc.dev/takibibase/apis/takibi-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/takibibase/apis/takibi-agent-api/revisions/5eacec570cba?raw)
