{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/immersa/main/json-schema/immersa-post-api-v1-connection-setup-sessions-request-schema.json",
  "title": "PostApiV1ConnectionSetupSessionsRequest",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/immersa-openapi-generated.yml#/components/schemas/PostApiV1ConnectionSetupSessionsRequest",
  "type": "object",
  "properties": {
    "connection_type": {
      "type": "string",
      "description": "The stable identifier of the connection type to set up."
    },
    "display_name": {
      "type": "string",
      "description": "Human‑readable name for the connection that will be created."
    },
    "return_url": {
      "type": "string",
      "description": "Optional URL to which the provider will return the user after OAuth flow."
    },
    "client_session_id": {
      "type": "string",
      "description": "Id to reuse an in‑flight session instead of creating a duplicate."
    },
    "requested_scopes": {
      "type": "array",
      "description": "OAuth scopes requested from the provider."
    }
  },
  "required": [
    "connection_type",
    "display_name"
  ]
}