Complete API documentation for PasteVault - Secure text sharing service
Encrypt your pastes with AES-256 encryption
Support for 20+ programming languages
Create memorable, custom URLs for your pastes
Server-side usage limits with IP fingerprinting
Automatic deletion after specified time
Track how many times your paste has been viewed
{ "content": "console.log('Hello, World!');", "language": "javascript", "password": "mysecret123", "customUrl": "my-awesome-code", "expiry": "1d" }
{ "id": "my-awesome-code", "usage": { "used": 5, "limit": 10, "remaining": 5 } }
{ "error": "Monthly limit reached", "message": "You've reached your monthly limit of 10 pastes", "upgradeUrl": "https://pastevault-saas-landing.pages.dev#pricing" }413 Payload Too Large
{ "error": "Content too large", "message": "Content must be less than 1KB for free plan" }
{ "content": "console.log('Hello, World!');", "language": "javascript", "createdAt": "2024-01-15T10:30:00.000Z", "expiresAt": "2024-01-16T10:30:00.000Z", "views": 5, "encrypted": false }
{ "encrypted": true, "language": "javascript", "createdAt": "2024-01-15T10:30:00.000Z", "expiresAt": "2024-01-16T10:30:00.000Z", "views": 0 }
{ "password": "mysecret123" }
{ "content": "console.log('Hello, World!');", "language": "javascript", "createdAt": "2024-01-15T10:30:00.000Z", "expiresAt": "2024-01-16T10:30:00.000Z", "views": 1 }
{ "error": "Incorrect password" }
{ "used": 5, "limit": 10, "remaining": 5, "plan": "free" }
{ "priceId": "price_1RoLaZFPVsTFburHTmqLOJBu", "planType": "pro" }
{ "url": "https://checkout.stripe.com/pay/cs_test_..." }
JavaScript, Python, Java, C++, C#, PHP, Ruby, Go, Rust
HTML, CSS, JSON, XML, YAML
SQL, Markdown
Bash, PowerShell
Perfect for temporary sharing
Default option for most use cases
Extended sharing for longer projects
10 pastes/month, 1KB max size
100 pastes/month, 10KB max size
1000 pastes/month, 100KB max size