---
title: "Create sieve work"
method: POST
path: "/sieves/{sieve_id}/works"
tags: ["Sieve Works"]
---

# Create sieve work

`POST /sieves/{sieve_id}/works`

## Request

- Base URL: `https://api.distill.io/v2`
- URL: `https://api.distill.io/v2/sieves/{sieve_id}/works`
- Auth: one of:
  - API key in cookie `connect.sid`
  - HTTP bearer
  - API key in query parameter `api_key`

Auth: Write — Workspace member with write access or higher.

## Path parameters

- `sieve_id` string, uuid, required

## Request body

- object
  - `key` string
  - `err` unknown
  - `data` unknown
  - `duration` integer
  - `meta` object, nullable
  - `snapshot_id` string, nullable

## Response `200`

Success

- object
  - `id` string, uuid, required
  - `err` string, nullable
  - `duration` integer, nullable
  - `ts` string, date-time, required
  - `snapshot_id` string, nullable
  - `meta` object, nullable

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/distill/apis/distill-io-api-v2.md) - [All operations](https://skmtc.dev/distill/apis/distill-io-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/distill/apis/distill-io-api-v2/revisions/c55722ccfe14?raw)
