Skip to main content

API Reference

Complete REST API reference for the v1 platform API. All endpoints are prefixed with /api/v1.

Use the TypeScript SDK

For most integrations, we recommend the TypeScript SDK. It handles authentication, retries, rate-limit backoff, and response typing. This REST reference is provided for custom clients or unsupported languages.

Base URL & Authentication

https://api.puzzlesection.app/api/v1

All endpoints require a tenant API key passed via the X-API-Key header. See Authentication for details.

Endpoint Groups

Auth

Puzzles

Analytics, Webhooks, Print, Health, GDPR

Response Format

All responses are JSON. Successful responses wrap data in a success/data envelope:

Success
{
  "success": true,
  "data": { ... }
}
Error
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid puzzle type",
    "details": { ... }
  }
}

Pagination

List endpoints support page-based pagination:

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 20, max: 100)

Paginated responses include a pagination object:

{
  "data": [...],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 142,
    "totalPages": 8
  }
}

Rate Limit Headers

Every response includes rate limit information:

HeaderDescription
X-RateLimit-LimitMax requests per window
X-RateLimit-RemainingRequests remaining
X-RateLimit-ResetUnix timestamp when window resets