---
title: "Get role play practice for linear"
method: GET
path: "/v2/role_play/get_scenario"
tags: ["role_play"]
---

# Get role play practice for linear

`GET /v2/role_play/get_scenario`

Get role play practice linear

## Query parameters

- `role` string, required
- `lesson_id` integer
- `code` string, required

## Headers

- `Authorization` string, required

## Response `200`

success, the data is *model.ScenarioRsp

- object
  - `code` integer — 0=success，only parse data when code=0
  - `data` object — real data
    - `ai_role` string
    - `context` string
    - `keywords` string
    - `learn_word` integer[]
    - `location` string
    - `raw_msgs` string[]
    - `starting_text` string
    - `starting_text_audio` string
    - `user_task` string
  - `message` string — tip message

---

[API](https://skmtc.net/bluente/apis/bluente-api.md) · [All operations](https://skmtc.net/bluente/apis/bluente-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluente/bluente-api/revisions/5c90e58bf672/schema)
