Skip to main content
POST
/
v1
/
ingestion
/
unstructured
Ingest unstructured text
curl --request POST \
  --url https://api.qontext.ai/v1/ingestion/unstructured \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "knowledgeGraphId": "kg_681c0068-b589-4923-ac4a-73040fab7a45",
  "text": "Harry Potter met with Hermione Granger to discuss potential partnership opportunities."
}
'
{
  "syncLogId": "sync_a01c7c1c-ecb0-49ec-af7f-329f4b4628bf"
}
Use this endpoint for quick input of raw facts, notes, or snippets where the source or type of information does not need to be specified.

Authorizations

X-API-Key
string
header
required

API key for the Qontext API

Body

application/json
knowledgeGraphId
string
required

The id of the vault that the data should be ingested into.

Example:

"kg_681c0068-b589-4923-ac4a-73040fab7a45"

text
string
required

The text to ingest.

Example:

"Harry Potter met with Hermione Granger to discuss potential partnership opportunities."

Response

Unstructured data ingestion initiated

syncLogId
string
required

The sync log id for the ingestion process.

Example:

"sync_a01c7c1c-ecb0-49ec-af7f-329f4b4628bf"