ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
    IntroductionLocal DevelopmentUpdating VersionsNode Modules & Customization
    Configuration
    Writing
    OpenAPI
    Authentication
    Integrations
    Guides
    Extending
    Components
      General
      Documentation
        CodeTabsMermaidAPI PlaygroundSecretStepperSyntax Highlight
      Form
      Utility
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
Documentation

API Playground

You can use this component to allow users to test your API anywhere in your documentation.

This component is only available in MDX files and you can use it directly without any imports:

Code
<OpenPlaygroundButton {...props} />

Hot tip

The Playground can point to any API endpoint, even if it's not in the API catalog.

Props

Code
type PlaygroundProps = { server: string; url: string; method: string; headers?: Header[]; pathParams?: PathParam[]; queryParams?: QueryParam[]; body?: string; };

Examples

Zuplo Echo

In this example, we're using the Zuplo Echo API to test the POST /hello-world/{name} endpoint.

Code
<OpenPlaygroundButton server="https://echo.zuplo.io/" url="/hello-world/{name}" headers={[ { name: "X-Zudoku-Playground", defaultValue: "Hello World", }, ]} pathParams={[{ name: "name", defaultValue: "John" }]} queryParams={[ { name: "age", defaultValue: "30" }, { name: "city", defaultValue: "New York" }, ]} body={JSON.stringify({ message: "Hello World" })} method="POST" />

JSON Placeholder

In this example, we're using the JSON Placeholder API to test the GET /photos endpoint. We can also change the Text on the button to something more specific to the API.

Code
<OpenPlaygroundButton server="https://jsonplaceholder.typicode.com" url="/photos" method="GET"> Test Photos Endpoint </OpenPlaygroundButton>
Edit this page
Last modified on May 29, 2026
MermaidSecret
On this page
  • Props
  • Examples
    • Zuplo Echo
    • JSON Placeholder
React
TypeScript
React
React