{"tool": "docshot", "name": "DocShot", "tagline": "Markdown to a clean, paginated PDF.", "base_url": "https://docshot.agentictray.com", "summary": "Markdown to a clean, paginated PDF.", "spec_version": "1.0", "auth": {"required": false, "summary": "Ninguna. DocShot no pide registro: la cuota es por llamante (IP hasheada) y se repone cada dia.", "ways": [], "note": "La IP se guarda solo hasheada con una sal; nunca en claro."}, "limits": [{"label": "Conversiones por dia por persona", "value": "20"}, {"label": "Cuerpo maximo de la peticion", "value": "15 MB"}, {"label": "Tiempo maximo de render", "value": "90 s"}], "notes": ["La conversion corre en nuestra maquina (sin modelo, sin costo por llamada) y devuelve el PDF como descarga.", "La cuota se reinicia cada dia natural del servidor.", "El texto se procesa en memoria y no se guarda."], "endpoints": [{"method": "POST", "path": "/api/convert", "summary": "Renders markdown to a paginated A4 PDF.", "request": {"content_types": ["application/json"], "fields": [{"name": "markdown", "required": true, "type": "string", "notes": "El markdown a convertir. Encabezados, listas y negritas funcionan."}, {"name": "title", "required": false, "type": "string", "notes": "Titulo del documento. Si falta, se usa el primer encabezado."}]}, "responses": [{"code": 200, "type": "application/pdf", "body": "El PDF paginado.", "headers": ["X-RateLimit-Remaining — conversiones que te quedan hoy", "Content-Disposition — attachment; filename=\"<titulo>.pdf\""]}, {"code": 400, "type": "application/json", "body": "{\"error\": \"Empty request body.\"}"}, {"code": 400, "type": "application/json", "body": "{\"error\": \"Body must be JSON {markdown: str, title?: str}\"}"}, {"code": 400, "type": "application/json", "body": "{\"error\": \"Field 'markdown' is required and non-empty.\"}"}, {"code": 413, "type": "application/json", "body": "{\"error\": \"Request too large.\"}"}, {"code": 429, "type": "application/json", "body": "{\"error\": \"Daily limit reached (20). Come back tomorrow.\"}", "headers": ["X-RateLimit-Remaining: 0", "Retry-After: 86400"]}, {"code": 500, "type": "application/json", "body": "{\"error\": \"Could not render PDF. Check your markdown.\"}"}, {"code": 504, "type": "application/json", "body": "{\"error\": \"Render took too long (limit 90 s).\"}"}]}, {"method": "GET", "path": "/healthz", "summary": "Service status and meter counters.", "request": {"content_types": [], "fields": []}, "responses": [{"code": 200, "type": "application/json", "body": "{\"ok\": true, \"service\": \"docshot\", \"port\": 7732, \"log_written\": 0, \"log_failures\": 0, \"log_queued\": 0}"}]}, {"method": "GET", "path": "/api/docs", "summary": "This same reference, as JSON.", "request": {"content_types": [], "fields": []}, "responses": [{"code": 200, "type": "application/json", "body": "{ ... } (this document)"}]}, {"method": "GET", "path": "/docs", "summary": "This same reference, as HTML.", "request": {"content_types": [], "fields": []}, "responses": [{"code": 200, "type": "text/html", "body": "(this page)"}]}], "links": {"json": "https://docshot.agentictray.com/api/docs", "html": "https://docshot.agentictray.com/docs"}}