API Documentation

Integrate Secure Send into your applications with our simple REST API. Create secure links programmatically with complete control over security settings.

Easy API Integration

Create secure links programmatically with our simple REST API. Perfect for integrating Secure Send into your applications, workflows, or services.

Key Features
  • Same security guarantees as web interface
  • JSON responses for easy parsing
  • Comprehensive error handling
  • CORS enabled for web applications
API Parameters & Defaults
Parameter Required Default Valid Values Description
inputData Required N/A Any string The sensitive data to encrypt and store
views Optional 1 1-5 Number of times the data can be viewed
expiry Optional 24 24, 48, 72, 96, 120, 144, 168 Expiry time in hours (1-7 days)

Quick Examples

$data = [
    'inputData' => 'Your secret message here',
    'views' => 1,        // 1-5 views
    'expiry' => 24       // 24, 48, 72, 96, 120, 144, 168 hours
];

$ch = curl_init('https://web411.site/api.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
import requests

data = {
    'inputData': 'Your secret message here',
    'views': 1,        # 1-5 views
    'expiry': 24       # 24, 48, 72, 96, 120, 144, 168 hours
}

response = requests.post('https://web411.site/api.php', data=data)
result = response.json()
curl -X POST https://web411.site/api.php \
  -d "inputData=Your secret message here" \
  -d "views=1" \
  -d "expiry=24"
Sample Response
{
  "success": true,
  "data": {
    "link": "https://web411.site/SECURE-ID",
    "views": 1,
    "expiry_hours": 24,
    "expiry_date": "2025-08-26 12:13:31",
    "full_content": "🔒 Security Details:\n• Can be viewed 1 time\n..."
  }
}

Common Use Cases

Automated Systems

Generate secure links from your applications, scripts, or automated workflows. Perfect for system integrations.

API Automation
Business Applications

Integrate secure sharing into your business applications, CRM systems, or internal tools.

Enterprise Integration
Cloud Services

Use in serverless functions, webhooks, or microservices for secure data sharing.

Cloud Serverless
DevOps Tools

Share sensitive configuration, credentials, or deployment information securely in your CI/CD pipelines.

DevOps CI/CD

Error Handling

Common HTTP Status Codes
Status Code Description Response Format
200 OK Success - Secure link created JSON with success data
400 Bad Request Invalid input data JSON with error message
405 Method Not Allowed Wrong HTTP method JSON error response
500 Internal Server Error Server error JSON error response
Example Error Response:
{
  "success": false,
  "error": "Invalid input data. Views must be between 1 and 5."
}

Getting Started

1. Make API Call

Send a POST request to your API endpoint with the required parameters.

2. Handle Response

Parse the JSON response and extract the secure link or full content.

3. Share Securely

Use the generated link or content in your application or share with recipients.

Pro Tip: Always handle errors gracefully and provide user feedback for failed requests.