{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/meshes/main/json-schema/meshes-post-api-v1-sessions-request-schema.json",
  "title": "PostApiV1SessionsRequest",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/meshes-openapi-generated.yml#/components/schemas/PostApiV1SessionsRequest",
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "description": "UUID"
    },
    "role": {
      "type": "string",
      "description": "member, admin, owner; default member"
    },
    "session_type": {
      "type": "string",
      "description": "workspace, resource, dashboard; default workspace"
    },
    "external_user_id": {
      "type": "string"
    },
    "ttl_seconds": {
      "type": "integer",
      "description": "optional, 300-3600, default 1800"
    },
    "launch_ttl_seconds": {
      "type": "integer",
      "description": "optional, 15-60, default 30"
    },
    "launch_page": {
      "type": "string",
      "description": "dashboard, connections, rules, events; default dashboard"
    },
    "resource": {
      "type": "string",
      "description": "required for resource sessions only"
    },
    "resource_id": {
      "type": "string",
      "description": "required for resource sessions only"
    },
    "allowed_origins": {
      "type": "array",
      "description": "optional array of up to 10 origin URLs; recommended for production"
    },
    "scopes": {
      "type": "array",
      "description": "optional array; current public scope is events.payload:read"
    }
  },
  "required": [
    "workspace_id"
  ]
}