# Read a context pack

## `GET /v1/records/{id}/context`

Get selected fields, facts, and related information for a record or supported memory alias. Requires the `read` scope.

```json
{
  "tags": [
    "Retrieval"
  ],
  "operationId": "get-context",
  "summary": "Read a context pack",
  "description": "Get selected fields, facts, and related information for a record or supported memory alias. Requires the `read` scope.",
  "x-retainer-scope": "read",
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "description": "Retainer identifier.",
      "example": "d2c0648c-2994-4f16-bdf1-a0136be6037d",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "tokenBudget",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 16000,
        "default": 2000
      },
      "description": "Approximate size budget for the context pack."
    }
  ],
  "responses": {
    "200": {
      "description": "Successful response.",
      "content": {
        "application/json": {
          "schema": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContextPack"
              },
              {
                "$ref": "#/components/schemas/ProfileContextPack"
              }
            ]
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "default": {
      "$ref": "#/components/responses/ApiError"
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
