Skip to main content
POST
Segment Document

Authorizations

Authorization
string
header
required

Input your token

Scopes

bearer

Headers

Tenant-Name
string
required

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:

"base"

Body

application/json
language
string
required

The language of the documents, as a BCP-47 language tag. For example en or en-US.

Example:

"en"

referenceDocument
object
required

A document. Each key is a section ID. Each value is the text of that section. Section IDs must not be empty.

The API processes the sections in the order of the request. The spans and claims in the response are in the order of the sections in the request, and then in the order in the text.

Example:

Response

The segments of the input document.

spans
object[]
required

The sentences of the segmented document. The order is the order of the sections in the request, and then the order in the text.