Loading...
Create and retrieve snippets programmatically. All endpoints are available at https://snipit.sh. No authentication required.
Create a snippet:
curl -X POST https://snipit.sh/api/snippets \
-H "Content-Type: application/json" \
-d '{"content": "Hello, World!", "language": "plaintext"}'Read it back (raw):
curl https://snipit.sh/api/snippets/<id>/raw
Upload a file:
curl -X POST https://snipit.sh/api/files -F "file=@script.sh"