---
title: "Run KB extraction"
method: POST
path: "/api/v0/knowledge-bases/{kb_id}/extractions"
tags: ["Knowledge Bases"]
---

# Run KB extraction

`POST /api/v0/knowledge-bases/{kb_id}/extractions`

Run structured extraction against all KB documents using the active schema.

## Path parameters

- `kb_id` string, uuid, required

## Query parameters

- `schema_id` string, uuid, nullable — Schema ID to use. Defaults to the active schema.

## Response `200`

Successful Response

- KBExtractionPostResponse — Response for triggering KB extraction.
  - `job_status_id` string, uuid, required — The job status ID for polling extraction progress.

## Other responses

- `422` — Validation Error

---

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