---
title: "Extract Attachment Text"
method: POST
path: "/v1/campaign-creation/{interview_id}/attachments/extract"
tags: ["campaign-creation"]
---

# Extract Attachment Text

`POST /v1/campaign-creation/{interview_id}/attachments/extract`

Extract plain text from a campaign setup attachment.

The browser sends this upload directly to the regional API instead of
embedding the file in the Vercel chat request. That keeps large PDFs and
office files usable while the model receives only bounded text context.

## Path parameters

- `interview_id` string, uuid, required

## Query parameters

- `workspace_id` string, uuid, required

## Response `200`

Successful Response

- ExtractAttachmentResponse
  - `filename` string, required
  - `detected_format` string, required
  - `text` string, required
  - `characters_read` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
