POST
/
interactions
/
{id}
/
facts
curl --request POST \
  --url https://api.{environment}.corti.app/v2/interactions/{id}/facts \
  --header 'Content-Type: application/json' \
  --data '{
  "facts": [
    {
      "text": "<string>",
      "group": "other",
      "source": "core"
    }
  ]
}'
{
  "facts": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "text": "<string>",
      "group": "other",
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "source": "core",
      "isDiscarded": true,
      "updatedAt": "2023-11-07T05:31:56Z",
      "updatedAtTzOffset": "+00:00"
    }
  ]
}

Headers

Tenant-Name
string

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

Example:

"copiloteu"

Path Parameters

id
string
required

The unique identifier of the interaction to which the facts belong.

Body

application/json
facts
object[]
required

A list of facts to be created.

Response

200
application/json
Returns the created facts, including their unique identifiers and associated metadata.
facts
object[]

A list of successfully created facts.