Skip to main content

API Playground

The API Playground lets you explore and test all 590+ API endpoints in 3DPrintForge directly in the browser — without writing code.

Go to: https://localhost:3443/api/docs

What is the API Playground?

The playground is an interactive version of the OpenAPI documentation (Swagger UI) that is fully integrated with the dashboard. You are already authenticated when you are logged in, so you can test endpoints directly.

Endpoints are organized into categories:

CategoryEndpointsDescription
Printers24Get status, control, configure
Prints / History18Get, search, export history
Filament22Inventory, spools, profiles
Queue12Manage print queue
Statistics15Aggregated statistics and export
Notifications8Configure and test notification channels
Users10Users, roles, API keys
Settings14Read and change configuration
Maintenance12Maintenance tasks and log
Integrations18HA, Tibber, webhooks, etc.
File Library14Upload, analyze, manage
System10Backup, health, log

Click on a category to expand it and see all endpoints.

Testing an endpoint

  1. Click on an endpoint (e.g. GET /api/printers)
  2. Click Try it out
  3. Fill in any parameters (filter, pagination, printer ID, etc.)
  4. Click Execute
  5. See the response below: HTTP status code, headers, and JSON body

Example: Get all printers

GET /api/printers

Returns a list of all registered printers with real-time status.

Example: Send command to printer

POST /api/printers/{id}/command
Body: {"command": "pause"}
Production environment

The API Playground is connected to the actual system. Commands are sent to real printers. Be careful with destructive operations like DELETE and POST /command.

Authentication

Session authentication (logged-in user)

When you are logged in to the dashboard, the playground is already authenticated via session cookie. No extra configuration needed.

API key authentication

For external access:

  1. Click Authorize (lock icon at the top of the playground)
  2. Enter your API key in the ApiKeyAuth field: Bearer YOUR_KEY
  3. Click Authorize

Generate API keys under Settings → API Keys (see Authentication).

Rate limiting

The API has rate limiting of 200 requests per minute per user/key. The playground shows remaining requests in the response header X-RateLimit-Remaining.

OpenAPI specification

Download the full OpenAPI specification as YAML or JSON:

  • https://localhost:3443/api/docs/openapi.yaml
  • https://localhost:3443/api/docs/openapi.json

Use the specification to generate client libraries in Python, TypeScript, Go, etc.

Webhook testing

Test webhook integrations directly:

  1. Go to POST /api/webhooks/test
  2. Select event type from the dropdown
  3. The system sends a test event to the configured webhook URL
  4. See request/response in the playground