Developers
Sourabh Pradhan Portfolio API.
One public endpoint. Zero auth. Machine-facing documentation for the contact API and agent resources of Sourabh Pradhan's portfolio.
POST /api/contact
Sends a message to the site owner by email. No authentication and no API key. Rate limit: five requests per minute per IP. Field limits: name ≤ 200 chars, email ≤ 254 chars, message ≤ 5000 chars.
curl -X POST https://sourabh08.vercel.app/api/contact \
-H "Content-Type: application/json" \
-d '{"name":"Ada Lovelace","email":"ada@example.com","message":"Hello"}'
# → 200 {"success":true}Full specification: /openapi.json — every operation has a unique operationId (submitContactMessage), typed request schemas, and documented error responses.
Error format
Every error response is JSON with three fields: error (human-readable), code (stable machine identifier), and hint (how to fix it). Undefined /api/* paths return JSON 404s, never HTML.
Machine-readable resources
Markdown negotiation
Send Accept: text/markdown on any page URL to receive its markdown mirror instead of HTML. Nonexistent paths return HTTP 404 with a markdown body listing recovery links. Responses carry Vary: Accept, Accept-Encoding.