Skip to main content

Authentication

To start using the Qontext API:
  1. Sign up for Qontext to create your workspace
  2. Create a new Vault and direct to “Context Access”
  3. Add an API key in the “Access Keys” section
  4. Include it in all API requests as a header:
cURL
--header 'X-API-Key: q_sk_***************'

Ingest Your Data

Bring company data into Qontext from any source. Qontext automatically processes, structures, and links it in your Context Vault. There are two ways to ingest the data:
  1. Ingest with Native Data Connections
  2. Manual Ingestion via API
Example: Ingesting unstructured data via API
cURL
curl --request POST \
  --url https://api.qontext.ai/v1/ingestion/unstructured \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: q_sk_***************' \
  --data '{
    "knowledgeGraphId": "kg_681c0068-b589-4923-ac4a-73040fab7a45",
    "text": "Harry Potter met with Hermione Granger to discuss potential partnership opportunities."
  }'

Retrieve Context

Once your data is ingested, you can retrieve context dynamically for any AI workflow or prompt. Qontext traverses your knowledge graph to return connected entities, their relationships, and relevant, connected information - going far beyond simple keyword similarity. There are two main ways to retrieve context:

Connect Qontext to Your AI Workflows via API

Qontext is built to live where your agents work. You can connect your Context Vaults using our native integrations (e.g. n8n, Make.com) or standard HTTP requests. Example: Retrieve Context
cURL
curl --request POST \
  --url https://api.qontext.ai/v1/retrieval \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: q_sk_***************' \
  --data '{
    "knowledgeGraphId": "kg_681c0068-b589-4923-ac4a-73040fab7a45",
    "prompt": "Give me the following information regarding Harry Potter. 1) Who is he? 2) What is his relationship with Gryffindor Inc., Weasleys Wizard Wheezes, and Ollivanders?",
    "limit": 5,
    "depth": 1      
}'
Response:
{
    "data": [
        {
            "text": "*Harry Potter*: Harry Potter is the Project Lead at Gryffindor Inc. and a strategic advisor to multiple wizarding startups. He currently resides in London and focuses on defensive magic consulting.",
            "sources": [
                {
                    "integration": "Notion",
                    "type": "Page",
                    "id": "page_456",
                    "url": "https://www.notion.so/Harry-Potter-Bio-xyz"
                }
            ]
        },
        {
            "text": "*Harry Potter -> Gryffindor Inc. (works_at)*: Harry Potter serves as the Project Lead at Gryffindor Inc., where he has been employed since September 2025.",
            "sources": [
                {
                    "integration": "HubSpot",
                    "type": "Company",
                    "id": "comp_101",
                    "url": "https://app.hubspot.com/contacts/123/company/101"
                }
            ]
        },
        // More retrieved context would follow here
    ]
} 

Next steps

Support

If you encounter any problems or questions, you can contact us via [email protected].