---
title: "Skaidyti šaltinį / Split source"
method: POST
path: "/api/agent/v1/tools/split_source"
---

# Skaidyti šaltinį / Split source

`POST /api/agent/v1/tools/split_source`

## Request

- Base URL: `https://app.taxmeter.lt`
- URL: `https://app.taxmeter.lt/api/agent/v1/tools/split_source`
- Auth: OAuth 2 (authorization code, authorization URL `https://app.taxmeter.lt/oauth/authorize`, token URL `https://app.taxmeter.lt/oauth/token`, scopes: `prepare`)

Partition all extracted text into invoice or explicitly excluded segments. Evidence is checked only inside each segment.

## Request body

- object
  - `documentId` string, required
  - `extractionId` string, required
  - `segments` object[], required
    - `start` integer, required
    - `end` integer, required
    - `excludedReason` string
    - `excludedReasonCode` 'consumer_vat_not_deductible' | 'not_a_tax_document' | 'duplicate_of_other_source' | 'other_period' | 'private_not_business' | 'outside_supported_scope' | 'other'
  - `expectedRevision` integer, required

## Response `200`

Įrankio rezultatas / Tool result

- object

## Other responses

- `400`: Netinkami argumentai / Invalid arguments
- `401`: Reikalingas OAuth / OAuth required
- `403`: Prieiga nesuteikta / Permission or current legal acceptance required
- `404`: Nerasta / Tool or object not found
- `409`: Pasenusi versija / Stale revision or digest
- `413`: Per didelis turinys / Size limit
- `429`: Naudojimo riba / Quota or rate limit
- `503`: Priežiūra / Maintenance
- `507`: Trūksta vietos / Disk space low

---

[API](https://skmtc.dev/taxmeter/apis/taxmeter-agentu-http-api-taxmeter-agent-http-api.md) · [All operations](https://skmtc.dev/taxmeter/apis/taxmeter-agentu-http-api-taxmeter-agent-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/taxmeter/apis/taxmeter-agentu-http-api-taxmeter-agent-http-api/revisions/f61468f014c7?raw)
