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
PRIVATEcreate requests are downgraded toUNLISTED. - API responses use structured JSON errors.
- API CORS is open to all origins.
Authentication
The API accepts a logged-in browser session or anX-API-Key header. Generate keys on the Integrations page.
Rate limiting
- Authenticated users:
60 requests/minute - Anonymous users:
30 requests/minute
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