> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turncall.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Scenario From Call

> Convert a completed call into a scripted scenario draft.

Returned for review by default; `save: true` stores it. Either way the
tool mocks are seeded with what those tools actually returned, so the draft
is safe to run under `mock_only` without repeating the call's side effects.



## OpenAPI

````yaml /openapi.json post /v1/eval-scenarios/from-call
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 0.1.0
servers: []
security: []
paths:
  /v1/eval-scenarios/from-call:
    post:
      tags:
        - evals
      summary: Scenario From Call
      description: >-
        Convert a completed call into a scripted scenario draft.


        Returned for review by default; `save: true` stores it. Either way the

        tool mocks are seeded with what those tools actually returned, so the
        draft

        is safe to run under `mock_only` without repeating the call's side
        effects.
      operationId: scenario_from_call_v1_eval_scenarios_from_call_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScenarioFromCallRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Scenario From Call V1 Eval Scenarios From Call Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ScenarioFromCallRequest:
      properties:
        call_id:
          type: string
          format: uuid
          title: Call Id
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        save:
          type: boolean
          title: Save
          default: false
        tags:
          items:
            type: string
          type: array
          maxItems: 32
          title: Tags
      type: object
      required:
        - call_id
      title: ScenarioFromCallRequest
      description: Derive a scripted scenario from a call that already happened (#78).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````