Skip to main contentAPI Playground
Interactive testing environment for your Plati AI API
Overview
The API Playground provides an interactive environment where you can explore and test all the Plati AI API endpoints directly from the documentation. This feature allows you to:
- Craft API requests with your own parameters
- Submit requests and see real-time responses
- Test different authentication methods
- Explore response structures with proper formatting
Using the API Playground
The API Playground is enabled on all endpoints in our API Reference section. To use it:
- Navigate to any endpoint documentation page
- Find the interactive playground section below the endpoint description
- Modify the request parameters as needed
- Click “Try it out” to execute the request
- View the response in the formatted output panel
Authentication
To test authenticated endpoints, you’ll need to add your API keys in the playground:
- Click the “Auth” button in the playground header
- Select the authentication type (Bearer Token or API Key)
- Enter your credentials
- Click “Save” to apply authentication to your requests
Code Examples
The playground automatically generates code snippets for your configured request in multiple languages:
- cURL
- Python
- JavaScript/Node.js
These code snippets update dynamically as you modify your request parameters, so you can easily copy and paste them into your own applications.
Best Practices
- Use Test Data: When testing endpoints that create, update, or delete resources, use test data to avoid affecting your production environment.
- API Key Security: Never share screenshots or recordings that include your API keys.
- Rate Limiting: Be aware that requests made through the playground count toward your API rate limits.