Skip to main content
POST
/
v1
/
ingestion
/
unstructured
Ingest unstructured text
curl --request POST \
  --url https://api.qontext.ai/v1/ingestion/unstructured \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "ws_123e4567-e89b-12d3-a456-426614174000",
  "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string
required

The id of the workspace that the context vault belongs to.

Example:

"ws_123e4567-e89b-12d3-a456-426614174000"

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"

⌘I