Skip to main content

Browser and share endpoints

REST API

The JSON REST API is under /api/v1/pastes.
  • Anonymous API create requests are allowed only when playground private mode is off.
  • Anonymous PRIVATE create requests are downgraded to UNLISTED.
  • API responses use structured JSON errors.
  • API CORS is open to all origins.

Authentication

The API accepts a logged-in browser session or an X-API-Key header. Generate keys on the Integrations page.

Rate limiting

  • Authenticated users: 60 requests/minute
  • Anonymous users: 30 requests/minute
The remaining count is sent in the X-RateLimit-Remaining header.

Interactive API docs

Every SunPaste instance serves its own API documentation:
  • /api/docs (redirects to /swagger-ui/index.html)
  • /swagger-ui.html
  • /redoc.html
  • /v3/api-docs
  • /v3/api-docs.yaml