Skip to main content

Base URL

All API requests should be made to:

Authentication

The Playgent API uses Bearer token authentication. Include your API key in the Authorization header:
Get your API key from the dashboard.

Response Format

All responses are JSON. Successful responses include the requested data:
Error responses include an error code and message:

Rate Limits

  • Standard: 100 requests/minute
  • Pro: 1000 requests/minute
Rate limit headers are included in all responses:

API Sections

Agents

Create and manage agent configurations

Test Cases

Define test scenarios for your agents

Test Runs

Execute tests and get results

Tracing

Instrument agent execution with spans

Evaluation

Run evaluations with 27 built-in metrics (RAG, safety, agentic, multi-turn)

Optimization

Optimize prompts and run A/B tests