---
title: "Save an agent generated file"
method: POST
path: "/api/v1/clawder/organizations/{organization_id}/library"
tags: ["clawder"]
---

# Save an agent generated file

`POST /api/v1/clawder/organizations/{organization_id}/library`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/clawder/organizations/{organization_id}/library`
- Auth: HTTP bearer

Private managed-worker upload. Requires the ready tenant bridge credential and active native agent identity.

## Path parameters

- `organization_id` string, required

## Request body

- object
  - `native_agent_id` string, required
  - `publication_key` string, required
  - `filename` string, required
  - `title` string
  - `content_type` string, required
  - `content_base64` string, required
  - `conversation_id` string

## Response `200`

Published file

- object
  - `artifact` ClawderLibraryItem, required
    - `id` string, required
    - `title` string, required
    - `filename` string, required
    - `content_type` string, required
    - `byte_size` integer, required
    - `checksum_sha256` string, required
    - `created_at` string, required
    - `download_url` string, required

## Other responses

- `401`: Invalid tenant worker credential
- `403`: Agent runtime authority revoked
- `404`: Unknown agent or organization
- `409`: Publication identity already used for another file
- `422`: Invalid generated file
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
