# Get a property from a session

Get the property from an active session for a project.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Context Store",
    "version": "4.0.10"
  },
  "servers": [
    {
      "url": "https://{environment}.digitalcx.com",
      "variables": {
        "environment": {
          "default": "contextstore",
          "enum": [
            "contextstore",
            "contextstore-cms",
            "contextstore-staging"
          ]
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Context Store",
      "description": "Conversational AI Cloud's Context Store API provides the ability to read and update sessions."
    }
  ],
  "paths": {
    "/sessions/{sessionId}/{property}": {
      "get": {
        "tags": [
          "Context Store"
        ],
        "summary": "Get a property from a session",
        "description": "Get the property from an active session for a project.",
        "security": [
          {
            "accessToken": [],
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/customerKeyParam"
          },
          {
            "$ref": "#/components/parameters/projectKeyParam"
          },
          {
            "name": "sessionId",
            "in": "path",
            "description": "The session identifier value.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "property",
            "in": "path",
            "description": "The property to retrieve of the session.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyValue"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "customerKeyParam": {
        "name": "customerKey",
        "in": "query",
        "description": "Customer identifier used for authenticating the request.",
        "schema": {
          "type": "string"
        },
        "required": true
      },
      "projectKeyParam": {
        "name": "projectKey",
        "in": "query",
        "description": "Project identifier used for authenticating the request, and to determine what project environment the interaction will take place in.",
        "schema": {
          "type": "string"
        },
        "required": true
      }
    },
    "securitySchemes": {
      "accessToken": {
        "description": "JWT used to access the Context Store API",
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "apiKey": {
        "description": "Conversational AI Cloud API key",
        "type": "apiKey",
        "in": "query",
        "name": "apikey"
      }
    },
    "schemas": {
      "KeyValue": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "example": "value",
            "description": "Value if the property if any."
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 38,
      "2": 26,
      "3": 84,
      "4": 5,
      "5": 242,
      "6": 44,
      "7": 0,
      "8": 17,
      "9": 188,
      "10": 64,
      "11": 72
    }
  }
}
```