Skip to main content
GET
/
api
/
v1
/
context
/
view
Retrieve user context
curl --request GET \
  --url https://platform-backend.getalchemystai.com/api/v1/context/view \
  --header 'Authorization: Bearer <token>'
{
  "context": [
    {
      "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
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

file_name
string

Name of the file to retrieve context for

magic_key
string

Magic key for context retrieval

Response

Successfully retrieved context

context
object[]

List of context items