---
title: "Retrieve user context"
method: GET
path: "/api/v1/context/view"
tags: ["context"]
---

# Retrieve user context

`GET /api/v1/context/view`

Gets the context information for the authenticated user.

## Query parameters

- `file_name` string
- `magic_key` string

## Response `200`

Successfully retrieved context

- ContextViewSuccess
  - `success` boolean, required
  - `contexts` object[], required — List of context items
    - `content` string — The content of the context item
    - `metadata` object — Additional metadata for the context
      - `fileName` string
      - `fileType` string
      - `groupName` string[]
      - `lastModified` string
      - `fileSize` number

## Other responses

- `401` — Unauthorized - User not authenticated
- `403` — Forbidden - User doesn't have required scope
- `500` — Internal Server Error

---

[API](https://skmtc.net/alchemyst-ai/apis/alchemyst-ai-api-v1-documentation.md) · [All operations](https://skmtc.net/alchemyst-ai/apis/alchemyst-ai-api-v1-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemyst-ai/alchemyst-ai-api-v1-documentation/versions/af43a0360c78/schema)
