MCP Gateway
ApiPlayground

Chat with playground agent

Send a message to the playground agent and stream the response via SSE. Returns tool calls, tokens, and completion events.

POST
/api/v1/playground/chat

Authorization

User API Key
AuthorizationBearer <token>

User API key (mgw_usr_live_* or mgw_usr_test_*)

In: header

access_token?|

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/playground/chat" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "message": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}