DEVELOPER PLATFORM
REST API v1 & Playground
Base URL: /api/v1 · Authenticate using Authorization: Bearer atc_your_api_token or an active browser session.
TRY IT LIVE
API Playground
Choose an endpoint, adjust the request, and inspect its response.
Live API: requests use the connected database, not a sandbox. Create, update, and delete requests change real records.
GET
Browse public snippets. Try filters like q, language, category, or tag.Public
Endpoint Reference
All JSON responses return { success: true, data: ... } on success or { error: "..." } with standard HTTP status codes (400, 401, 403, 404, 429, 500).
Public Endpoints
- GET /api/v1/snippets?q=&language=&category=&tag=&sort=newest|popular&page=1&limit=20
- GET /api/v1/snippets/:id
- GET /api/v1/snippets/:id/raw?file=filename
- GET /api/v1/snippets/:id/download?file=filename
- GET /api/v1/users/:username/snippets
- GET /api/v1/collections
- GET /api/v1/collections/:id
- GET /api/v1/categories
- GET /api/v1/tags
Authenticated Endpoints (Session or Bearer Token)
- GET /api/v1/me/snippets (scope: snippets:read)
- POST /api/v1/snippets (scope: snippets:create)
- PATCH /api/v1/snippets/:id (scope: snippets:update)
- DELETE /api/v1/snippets/:id (scope: snippets:delete)
- POST /api/v1/snippets/:id/fork (scope: snippets:create)
- GET /api/v1/snippets/:id/versions
- GET /api/v1/snippets/:id/versions/:version
- POST /api/v1/snippets/:id/restore/:version (scope: snippets:update)
- POST /api/v1/collections (scope: collections:write)
- PATCH /api/v1/collections/:id (scope: collections:write)
- DELETE /api/v1/collections/:id (scope: collections:write)
- POST /api/v1/collections/:id/snippets (scope: collections:write)
- DELETE /api/v1/collections/:id/snippets/:snippetId (scope: collections:write)
Administrator Endpoints
- GET /api/v1/admin/users
- PATCH /api/v1/admin/users/:id
- DELETE /api/v1/admin/users/:id
- GET /api/v1/admin/snippets
- PATCH /api/v1/admin/snippets/:id
- DELETE /api/v1/admin/snippets/:id
- GET /api/v1/admin/analytics
- GET /api/v1/admin/reports
- PATCH /api/v1/admin/reports/:id