Tutorial & API Guide
Learn how to use PasteShare for sharing code snippets, text, and files with ease and security.
Getting Started
PasteShare is a free, fast, and secure pastebin service built on Cloudflare Workers. You can use it to share code snippets, text documents, and files with others quickly and easily.
1Basic Usage
- 1Paste your code or text in the editor
- 2Choose your programming language for syntax highlighting
- 3Set expiration time (optional)
- 4Add password protection (optional)
- 5Click "Create Paste" to generate a shareable link
API Documentation
Create a Paste via API
You can create pastes programmatically using our REST API:
curl 'https://as.al/api/create' \
--data-raw '{
"content": "console.log('Hello World!');",
"language": "javascript",
"expire": 3600,
"isPrivate": false
}' \
--header 'Content-Type: application/json'API Parameters
contentrequiredThe text/code content to share
languageoptionalProgramming language for syntax highlighting
expireoptionalExpiration time in seconds
isPrivateoptionalWhether to password protect the paste
share_passwordoptionalCustom password for private pastes
Supported Languages
PasteShare supports syntax highlighting for a wide variety of programming languages and file formats:
Open Source
Contribute to PasteShare
PasteShare is open source and available on GitHub. We welcome contributions, bug reports, feature requests, and feedback from the community. Help us make PasteShare even better!