Skip to main content
POST
/
tools
/
extract-facts
cURL
curl --request POST \
  --url https://api.{environment}.corti.app/v2/tools/extract-facts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-Name: <tenant-name>' \
  --data '{
  "context": [
    {
      "type": "text",
      "text": "<string>"
    }
  ],
  "outputLanguage": "<string>"
}'
{
  "facts": [
    {
      "group": "<string>",
      "value": "<string>"
    }
  ],
  "outputLanguage": "<string>",
  "usageInfo": {
    "creditsConsumed": 123
  }
}

Authorizations

Authorization
string
header
required

Input your token

Headers

Tenant-Name
string
required

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

Example:

"copiloteu"

Body

application/json
context
Text · object[]
required
outputLanguage
string
required

The desired output language code for extracted facts. Check languages page for more.

Response

Returns the extracted facts.

facts
object[]
required

List of extracted facts based on the provided input context.

outputLanguage
string
required

The language locale of the output.

usageInfo
object
required

Credits consumed for this request.

I