Skip to main content
POST
/
v1
/
ingestion
/
any
Ingest data with metadata
curl --request POST \
  --url https://api.qontext.ai/v1/ingestion/any \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "ws_4d199928-71cf-4d99-9990-f2bedc4e854d",
  "knowledgeGraphId": "kg_a2de5758-a7c5-4291-9f97-3da82f99c8f8",
  "string_data": "Harry Potter created a new deal for Gryffindor Inc. in HubSpot: [...].",
  "source": {
    "source_integration": "HubSpot",
    "source_data_type": "Deal",
    "source_id": "4754016823"
  }
}'
{
  "syncLogId": "sync_a01c7c1c-ecb0-49ec-af7f-329f4b4628bf"
}
This endpoint ensures your data is stored with provenance, making it easier to identify information sources when querying.

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_4d199928-71cf-4d99-9990-f2bedc4e854d"

knowledgeGraphId
string
required

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

Example:

"kg_a2de5758-a7c5-4291-9f97-3da82f99c8f8"

string_data
string
required

The data to ingest

Example:

"Harry Potter created a new deal for Gryffindor Inc. in HubSpot: [...]."

source
object
required

The source of the data to ingest.

Example:
{
"source_integration": "HubSpot",
"source_data_type": "Deal",
"source_id": "4754016823"
}

Response

Data ingestion initiated

syncLogId
string
required

The sync log id for the ingestion process.

Example:

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

⌘I