{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/secure-flows-com/json-schema/secure-flows-com-session-request-schema.json",
  "title": "SessionRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/secure-flows-user-api.yaml#/components/schemas/SessionRequest",
  "type": "object",
  "required": [
    "workspaceName"
  ],
  "properties": {
    "workspaceName": {
      "type": "string",
      "description": "Workspace name to scope the session"
    },
    "app_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional app id (must belong to the workspace). Used for per-app session policy and auditing."
    },
    "payload": {
      "type": "object",
      "additionalProperties": true,
      "default": {},
      "description": "Arbitrary payload object stored in the session. Optional; omitted or null is stored as `{}`."
    }
  }
}