---
title: "POST /agentcc/gateways/{id}/test-playground/"
method: POST
path: "/agentcc/gateways/{id}/test-playground/"
tags: ["agentcc"]
---

# POST /agentcc/gateways/{id}/test-playground/

`POST /agentcc/gateways/{id}/test-playground/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/gateways/{id}/test-playground/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Send a real chat completion through the gateway to test guardrails.

## Request body

- GatewayPlaygroundTestRequest
  - `prompt` string, required
  - `model` string
  - `system_prompt` string

## Response `200`

OK

- GatewayPlaygroundTestResponse
  - `status` boolean, required
  - `result` GatewayPlaygroundTestResult, required
    - `status_code` integer, required
    - `body` object, required
    - `guardrail_headers` object, required
    - `model` string, required
    - `blocked` boolean, required
    - `warned` boolean, required

## Other responses

- `400`: Bad Request
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
