POST /m
Content-Type: application/json
{
"message": {
"body": "Your confidential message",
"expiration_duration": "one_hour"
}
}Response:
{
"success": true,
"message": {
"stub": "abc123xyz",
"retrieval_url": "https://app.com/m/abc123xyz"
}
}GET /m/:stubResponse:
- If unread: Returns the captcha challenge form for human verification.
- If already read: Returns an "already read" notification.
- If expired or not found: Returns a 404 error.
GET /m/:stub/fetch
Headers:
X-Challenge-Answer: 42Response (Success):
{
"success": true,
"body": "encrypted_message_data",
"read_at": "2024-01-01T12:00:00Z"
}Response (Challenge Failed):
{
"success": false,
"error": "Invalid challenge. Please refresh and try again."
}five_minutes: 5 minutesone_hour: 1 hour (default)six_hours: 6 hoursone_day: 1 day