Retrieve user context
Gets the context information for the authenticated user.
Query parameters
Name of the file to retrieve context for
Magic key for context retrieval
Response
Successfully retrieved context
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
}
}
]
}Changes
Changed in 6 of the 29 revisions of this API.114
- ●
removed the optional property
contextfrom the response with the200statusresponse-optional-property-removed
- ○
added the media type
application/jsonfor the response with the status401response-media-type-added
- ○
added the media type
application/jsonfor the response with the status403response-media-type-added
- ○
added the media type
application/jsonfor the response with the status500response-media-type-added
- ○
added the required property
contextsto the response with the200statusresponse-required-property-added
- ○
added the required property
successto the response with the200statusresponse-required-property-added
- ●
- ○
api operation id
viewRawContextNodesForUserwas addedapi-operation-id-added
- ○
- ○
added the new optional
queryrequest parameterfile_namenew-optional-request-parameter
- ○
added the new optional
queryrequest parametermagic_keynew-optional-request-parameter
- ○
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
BearerAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
- ○
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
BearerAuthwas removed from the APIapi-security-removed
- ○