Complete API documentation for integrating Snippet Manager into your applications.
All API requests require authentication using your API key in the Authorization header.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.Snippet Manager.com/v2/snippets
Manage your code snippets programmatically.
/v2/snippets
Retrieve all snippets for the authenticated user.
page
- Page number (default: 1)limit
- Items per page (default: 20, max: 100)language
- Filter by programming languagetags
- Filter by tags (comma-separated){ "snippets": [ { "id": "snippet_123", "title": "Quick Sort Implementation", "code": "function quickSort(arr) { ... }", "language": "javascript", "tags": ["algorithm", "sorting"], "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z" } ], "pagination": { "page": 1, "limit": 20, "total": 1, "total_pages": 1 } }
/v2/snippets
Create a new code snippet.
{ "title": "Quick Sort Implementation", "code": "function quickSort(arr) { ... }", "language": "javascript", "description": "Efficient sorting algorithm", "tags": ["algorithm", "sorting"], "collection_id": "collection_456" // optional }
API requests are rate limited to ensure fair usage across all users.
Requests per hour
Requests per minute
Requests per second
npm install Snippet Manager
pip install Snippet Manager
go get Snippet Manager
composer install