---
title: "Generate artifact"
method: POST
path: "/api/v1/public/artifacts"
tags: ["public"]
---

# Generate artifact

`POST /api/v1/public/artifacts`

Generate a traceable PDF, XLSX, CSV, DOCX, or PNG workspace report artifact.

## Headers

- `Idempotency-Key` string, required

## Request body

- GenerateArtifactRequest
  - `type` 'executive' | 'campaign' | 'agent_performance' | 'conversation' | 'lead' | 'cost_roi' | 'knowledge_base' | 'compliance' | 'summarizer_brief', required
  - `format` 'pdf' | 'xlsx' | 'csv' | 'docx' | 'png', required
  - `name` string, nullable
  - `startDate` string, nullable
  - `endDate` string, nullable
  - `agentId` string, nullable
  - `useCaseId` string, nullable
  - `briefId` string, nullable
  - `source` string, nullable

## Response `200`

Successful Response

- Artifact
  - `id` string, required
  - `type` string, required
  - `format` string, required
  - `name` string, required
  - `status` string, required
  - `sizeBytes` integer, nullable, required
  - `error` string, nullable, required
  - `createdAt` unknown, required
  - `completedAt` unknown, required
  - `provenance` object, required
  - `appUrl` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.net/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/2a1adc380310/schema)
