---
title: "Confirm a file upload and enqueue text extraction"
method: POST
path: "/artifacts/{artifactId}/complete"
tags: ["Artifacts"]
---

# Confirm a file upload and enqueue text extraction

`POST /artifacts/{artifactId}/complete`

## Request

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

## Path parameters

- `artifactId` string, required

## Request body

- ArtifactCompleteDto
  - `checksum` string, required: sha256 hex of the bytes that were PUT (Locked #12).

## Response `200`

OK

- ArtifactReadSchema
  - `canManage` boolean
  - `artifactId` string, required
  - `text` string, required
  - `sender` ArtifactSenderSchema, required
    - `id` string, required
    - `type` 'user' | 'agent' | 'service' | 'system', required: The wire's own answer, never re-derive it from the id.
    - `presentation` ArtifactSenderPresentationSchema
      - `persona` ArtifactSenderPersonaSchema, required
        - `id` string, required
        - `name` string, required
        - `image` string, nullable, required
      - `mode` 'persona' | 'chain', required
  - `contentType` string, required
  - `name` string, nullable
  - `visibility` string, required
  - `timestamp` string, date-time, required
  - `linkRole` 'input' | 'output'
  - `linkedAt` string
  - `linkedBy` string
  - `linkType` 'origin' | 'attached' | 'mention'
  - `service` object
  - `filename` string, nullable
  - `mime` string, nullable
  - `byteSize` number, nullable
  - `checksum` string, nullable
  - `format` string, nullable
  - `extractionStatus` string, nullable
  - `extractionError` string, nullable
  - `truncated` boolean, nullable
  - `extractedArtifactId` string, nullable
  - `externalRef` ArtifactExternalRefSchema
    - `provider` string, required: Other system name, e.g. Linear or Notion.
    - `url` string, required: http(s) URL of the outside deliverable. Ziggs does not fetch it.

---

[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)
