---
title: "Ask Session"
method: POST
path: "/studio/ask"
tags: ["AI_STUDIO"]
---

# Ask Session

`POST /studio/ask`

Ask a question in an AI playground session and get streaming response.

The actual pipeline (security scan, output guard, service invocation,
streaming) lives in ``app.service.ai_playground.ask_pipeline.run_ask_pipeline``
so it can be reused by the playground scheduler worker without an HTTP
callback. This endpoint is now a thin transport wrapper.

## Query parameters

- `navigationSource` string, nullable

## Request body

- SessionAskRequest
  - `message` string, required
  - `context` Context, required
    - `connections` object, nullable
    - `knowledge` string[], nullable
    - `uploaded_files` UploadedFile[], nullable
      - `filename` string, required
      - `content` string, required
      - `content_type` string, required
      - `size` integer, required
    - `notifications` object[], nullable
  - `session_id` string, required
  - `mode` string, required
  - `datamates` integer[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
