v29

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-1415662.1 KB
context

Retrieve user context

Gets the context information for the authenticated user.

get/api/v1/context/view

Query parameters

file_namestring

Name of the file to retrieve context for

magic_keystring

Magic key for context retrieval

Response

Successfully retrieved context

successboolean required

Example response

{
  "success": true,
  "contexts": [
    {
      "content": "Customer asked about pricing for the Scale plan.",
      "metadata": {
        "fileName": "support_thread_TCK-1234.txt",
        "fileType": "text/plain",
        "groupName": [
          "support",
          "pricing"
        ],
        "lastModified": "2025-01-10T12:34:56.000Z",
        "fileSize": 2048
      }
    }
  ]
}