---
title: "Command Request"
method: POST
path: "/v1/playground/command"
tags: ["playground"]
---

# Command Request

`POST /v1/playground/command`

## Request body

- PlaygroundCommandRequest
  - `messages` RoleContentChatChoiceInput[]
    - `role` 'user' | 'assistant' | 'system', required
    - `content` union, required
      - string
      - RoleContentChatChoiceContent[]
        - `type` 'text' | 'image_url', required
        - `text` string, nullable
        - `image_url` RoleContentChatChoiceContentImageUrl
          - `url` string, required
    - `tool_calls` ToolCall[], nullable — If `tool_choice` parameter was passed, and the model supports it, this will return a list of the different calls/functions used.
      - `function` FunctionCallArguments, required
        - `arguments` string, required — A stringified JSON that represents the arguments for the function
        - `name` string, required — The name of the function to which the arguments correspond
      - `id` string, required
      - `type` 'function'
  - `system` string, required — The system prompt
  - `app_id` string, uuid, required — The App ID belonging to this user's org where all the logs will be logged

## Response `200`

Successful Response

## Other responses

- `422` — Validation Error

---

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