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

# Create playground

> Runs one Playground turn of the assistant and returns its reply with a trace of tool calls and handoffs. The optional playground_config is a test setup applied to this run only and never saved; omitted keys use the saved assistant setup.



## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/captain/assistants/{id}/playground
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/captain/assistants/{id}/playground:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: sample
    post:
      tags:
        - Captain
      summary: Create playground
      description: >-
        Runs one Playground turn of the assistant and returns its reply with a
        trace of tool calls and handoffs. The optional playground_config is a
        test setup applied to this run only and never saved; omitted keys use
        the saved assistant setup.
      operationId: post-api-v1-accounts-account-id-captain-assistants-id-playground
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                message_content:
                  type: string
                message_history:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                          - user
                          - assistant
                      content:
                        type: string
                      agent_name:
                        type: string
                playground_config:
                  type: object
                  properties:
                    scenario_ids:
                      type: array
                      description: Saved scenarios to use, disabled ones included
                      items:
                        type: integer
                    temporary_scenarios:
                      type: array
                      items:
                        type: object
                        required:
                          - client_id
                          - title
                          - description
                          - instruction
                        properties:
                          client_id:
                            type: string
                          title:
                            type: string
                          description:
                            type: string
                          instruction:
                            type: string
                    response_guidelines:
                      type: array
                      items:
                        type: string
                    guardrails:
                      type: array
                      items:
                        type: string
                    knowledge_text:
                      type: string
                      maxLength: 10000
                      description: Pasted reference knowledge for this run
            example:
              message_content: Sample text
              message_history:
                - role: user
                  content: Sample text
                  agent_name: Sample resource
              playground_config:
                scenario_ids:
                  - 1
                temporary_scenarios:
                  - client_id: 1
                    title: Sample resource
                    description: Sample text
                    instruction: Sample text
                response_guidelines:
                  - 550e8400-e29b-41d4-a716-446655440000
                guardrails:
                  - Sample text
                knowledge_text: Sample text
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Successful response payload. The exact fields depend on the
                  endpoint.
                additionalProperties: true
              example:
                id: 1
                message: Resource saved successfully
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '422':
          description: Invalid playground_config; errors lists the problems by field
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  attributes:
                    type: array
                    items:
                      type: string
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.