# generateTeamSessionQuestions

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| POST | https://api.thomas.co/v1/ai-coaching/team-sessions/{teamId}/questions |

| Field | Value |
|---|---|
| operationId | generateTeamSessionQuestions |
| method | POST |
| server | https://api.thomas.co/v1 |
| path | /ai-coaching/team-sessions/{teamId}/questions |
| tags | `Team Sessions` |
| summary | Generate team-session coaching questions |
| badges | None |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| teamId | path | true | string |  |

## Request Body

| Content type | Schema refs |
|---|---|
| application/json | #/components/schemas/CreateTeamSessionsQuestionsBodyDto |

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | SSE stream of generated team-session questions (text/event-stream) |  |
| 400 | Malformed teamId or invalid payload | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Gate-1 authorization denial (pre-stream) | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Validation failed",
  "error": "HTTP_BAD_REQUEST"
}
```

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "AI coaching authorization denied",
  "error": "THOMAI_AUTHORIZATION_DENIED"
}
```
