API Documentation
Simple API for storing and retrieving temporary text data with expiration.
Base URL
https://say.soy
Save Data
Store text content with automatic expiration.
POST /save
Request
{
"content": "Your text here",
"expiration": "3600" // in seconds (optional)
}
Parameters
- content (required) - Text to store (max 4096 chars)
- expiration (optional) - Time in seconds until deletion (60, 900, 3600, 43200, 86400)
Response (Success)
{
"success": true,
"code": "1234",
"expiresIn": "1 hour"
}
Response (Error)
{
"success": false,
"message": "Error description"
}
Example (cURL)
curl -X POST https://say.soy/save -H "Content-Type: application/json" -d '{"content":"Test message","expiration":"3600"}'
Retrieve Data
Get stored content by code.
GET /view?code=1234
Parameters
- code (required) - 4-digit code received when saving
Response (Success)
{
"success": true,
"content": "Your stored text",
"expiresIn": "59 minutes"
}
Response (Error)
{
"success": false,
"message": "Data not found or expired"
}
Example (cURL)
curl "https://say.soy/view?code=1234"
Notes
- All data is automatically deleted after expiration
- Maximum content length is 4096 characters
- Codes are 4-digit numbers (1000-9999)
- API is rate-limited