---
title: "Get Playground Prompt Request"
method: POST
path: "/v1/playground/chat"
tags: ["playground"]
---

# Get Playground Prompt Request

`POST /v1/playground/chat`

In a similar way to our /v1/chat_completions endpoint, this endpoint is used (unauthenticated)
to store Playground requests in the database.
The endpoint returns the created log, and Frontend handles the data.

## Request body

- PlaygroundCompletionRequest
  - `prompt` string, required — The user prompt
  - `model` string, nullable — The name of the model which will be used
  - `temperature` number, nullable — The temperature of the request
  - `max_tokens` integer, nullable — The maximum number of tokens for the request
  - `app_id` string, uuid, required — The App ID belonging to this user's org where all the logs will be logged
  - `assistant_id` string, uuid, nullable — The Assistant ID to use for this request
  - `assistant_version_id` string, uuid, nullable — The Assistant version ID to use for this request
  - `conversation_id` string, uuid, nullable — The Conversation ID to use for this request
  - `parent_request_id` string, uuid, nullable — The Parent Request ID to use for this request
  - `plugins` string[] — The list of plugins to enable for the request
  - `images` string[], nullable — A list of images that should be analyzed (vision api)
  - `files` string[], nullable — A list of files that should be analyzed (images, audio, etc.)

## 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)
