---
title: "AI Extract in an imported contract by ID"
method: POST
path: "/contracts/{contract_id}/ai_extract"
tags: ["Contract"]
---

# AI Extract in an imported contract by ID

`POST /contracts/{contract_id}/ai_extract`

## Request

- Base URL: `https://api.oneflow.com/v1`
- URL: `https://api.oneflow.com/v1/contracts/{contract_id}/ai_extract`
- Auth: none declared. Required headers: `x-oneflow-api-token`, `x-oneflow-user-email`

Use this endpoint to perform AI Extract on a specific imported contract by its ID.

## Path parameters

- `contract_id` integer, required

## Headers

- `x-oneflow-api-token` string, required
- `x-oneflow-user-email` string, email, required

## Response `200`

Started AI Extract successfully.

## Other responses

- `400`: Invalid format or content of the request.
- `401`: The API token or the user email is invalid.
- `403`: The request is not authorized by the server.
- `404`: A required entity is missing.

## Changes

- **2026-11-03** `0a4e1e88ac45`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/changes/contracts/:contract_id/ai_extract/post.md)

---

[API](https://skmtc.dev/oneflow/apis/public-api-for-oneflow.md) - [All operations](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/llms.txt) - [OpenAPI document](https://skmtc.dev/oneflow/apis/public-api-for-oneflow/revisions/0a4e1e88ac45?raw)
