{"version":1,"resources":["https://samragsdale.com/api/x402/calendar","https://samragsdale.com/api/x402/email","https://samragsdale.com/api/x402/email-me","https://samragsdale.com/api/x402/email-me-priority"],"instructions":"# Sam Ragsdale x402 API Reference\n\n## Overview\n\nPersonal x402-enabled APIs for contacting Sam Ragsdale. All endpoints require x402 payment. Payments are processed on Base mainnet (eip155:8453) in USDC.\n\n## Base URL\n\nhttps://samragsdale.com\n\n## Authentication\n\nAll endpoints require x402 payment. Include payment headers as per the HTTP 402 specification.\n\n---\n\n# Endpoints\n\n## POST /api/x402/email\n\nSend an email from x402@samragsdale.com to any recipient.\n\n**Price:** $1 USDC\n\n**Request Body:**\n- recipient (string, required): Email address of the recipient\n- subject (string, required): Subject line of the email (1-200 characters)\n- body (string, required): Body content of the email (1-10,000 characters, HTML supported)\n\n**Example Request:**\n```json\n{\n  \"recipient\": \"user@example.com\",\n  \"subject\": \"Hello from x402\",\n  \"body\": \"This is a test email sent via x402 payment protocol.\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Email sent successfully\",\n  \"emailId\": \"abc123\"\n}\n```\n\n---\n\n## POST /api/x402/email-me\n\nSend Sam Ragsdale an email directly. He may or may not respond, but he will see it.\n\n**Price:** $10 USDC\n\n**Request Body:**\n- senderEmail (string, required): Your email address\n- senderName (string, required): Your full name\n- subject (string, required): Subject line of the email (1-200 characters)\n- body (string, required): Body content of the email (1-10,000 characters, HTML supported)\n\n**Example Request:**\n```json\n{\n  \"senderEmail\": \"sender@example.com\",\n  \"senderName\": \"Jane Doe\",\n  \"subject\": \"Business Inquiry\",\n  \"body\": \"Hi Sam, I wanted to reach out about a potential collaboration...\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Email sent successfully\",\n  \"emailId\": \"abc123\"\n}\n```\n\n**Note:** You will NOT be CC'd on this email. Sam may or may not respond.\n\n---\n\n## POST /api/x402/email-me-priority\n\nSend Sam Ragsdale an email with priority. You will be CC'd on the email so you can verify delivery.\n\n**Price:** $50 USDC\n\n**Request Body:**\n- senderEmail (string, required): Your email address (will be CC'd)\n- senderName (string, required): Your full name\n- subject (string, required): Subject line of the email (1-200 characters)\n- body (string, required): Body content of the email (1-10,000 characters, HTML supported)\n\n**Example Request:**\n```json\n{\n  \"senderEmail\": \"sender@example.com\",\n  \"senderName\": \"Jane Doe\",\n  \"subject\": \"Urgent Business Matter\",\n  \"body\": \"Hi Sam, I have an urgent matter to discuss...\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Priority email sent successfully with sender CC-ed\",\n  \"emailId\": \"abc123\"\n}\n```\n\n**Note:** You WILL be CC'd on this email to confirm delivery.\n\n---\n\n## POST /api/x402/calendar\n\nBook a 30-minute calendar slot with Sam Ragsdale at 5pm ET on a specified date.\n\n**Price:** $500 USDC\n\n**Request Body:**\n- date (string, required): Date for the meeting in YYYY-MM-DD format\n- senderEmail (string, required): Your email address\n- senderName (string, required): Your full name\n- message (string, optional): Message to include with the booking (max 560 characters)\n\n**Example Request:**\n```json\n{\n  \"date\": \"2024-12-20\",\n  \"senderEmail\": \"sender@example.com\",\n  \"senderName\": \"Jane Doe\",\n  \"message\": \"I'd like to discuss a potential partnership opportunity.\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Calendar invite sent successfully\",\n  \"meetingTime\": \"2024-12-20T22:00:00.000Z\",\n  \"emailId\": \"abc123\"\n}\n```\n\n**Notes:**\n- Meetings are automatically scheduled at 5pm ET on the specified date\n- Duration is 30 minutes\n- A calendar invite (.ics file) will be attached to the confirmation email\n- Message length limit: 560 characters (2x Twitter length)\n\n---\n\n## Error Responses\n\nAll endpoints return errors in the following format:\n\n```json\n{\n  \"success\": false,\n  \"error\": \"Error description\",\n  \"message\": \"Detailed error message\"\n}\n```\n\nCommon error codes:\n- 400: Validation error (invalid input)\n- 402: Payment required\n- 500: Server error (email sending failed, etc.)\n\n---\n\n## Payment Information\n\n- **Network:** Base mainnet (eip155:8453)\n- **Asset:** USDC\n- **Recipient:** 0xb7430de9b4d8e5cdb951019d7651cd5fda630498 (samragsdale.eth)\n\n## Support\n\nFor issues with x402 payments or API usage, you can reach out via the /api/x402/email-me endpoint.\n\n## About\n\nSam Ragsdale is a software engineer. Learn more at https://samragsdale.com\n"}