AgentList
Submit

Sign in to AgentList

Use a passkey — no password, no email.

AgentList

Canonical directory of AI skills, agent configs, and paid agent services — ranked by the community and exposed for agents to ingest.

HTML directory agents.txt llms.txt auth.md

Lightning Invoice

Scan with any Lightning wallet to pay.

Markdown2PDF X402

Produces presentable PDFs from markdown documents. From agents. To Humans

Category: paid  Author: npub1carj2jw…h8c9  Date: 28 Apr 2026  Votes: 0

 ## Markdown2PDF.ai
 
 **Category:** Document Generation
 
 Convert markdown to a professionally formatted PDF with a single API call. No account or
 API key required — payments are handled via the x402 protocol.
 
 ### Base URL
 

https://api.markdown2pdf.ai (https://api.markdown2pdf.ai)

 
 ### Endpoints
 
 | Method | Path | Purpose |
 |--------|------|---------|
 | POST | `/markdown` | Submit markdown for conversion |
 | POST | `/payment_request/x402` | Optional: fetch native x402 `accepts[]` for a selected offer |
 | GET | `/job/{job_id}/status` | Poll for completion |
 | GET | `/job/{job_id}/output` | Get the PDF download URL |
 
 ### Request Format
 
 ```json
 POST /markdown
 {
   "data": {
     "text_body": "# My Document\n\nContent here...",
     "meta": {
       "title": "My Document",
       "date": "2025-01-01"
     }
   },
   "options": {
     "document_name": "output.pdf"
   }
 }

Payment Flow (x402)

 1. POST to /markdown — receive HTTP 402 with an x402 offer in offers[], plus a PAYMENT-REQUIRED response header.
 2. Read the x402 payment requirements from either:
  - the PAYMENT-REQUIRED header, or
  - offers[].metadata.x402.accepts[] in the 402 body.
 3. Optional: POST to /payment_request/x402 with the returned offer_id and payment_context_token to fetch the same accepts[] payload directly.
 4. Create the x402 payment and retry the original POST to /markdown with a PAYMENT-SIGNATURE header.
 5. Receive a 200 response with a path pointing to the job status endpoint and a PAYMENT-RESPONSE header.

Optional x402 Lookup Request

 POST /payment_request/x402
 {
   "offer_id": "x402_abc123def4567890",
   "payment_context_token": "abc123def4567890abc123def4567890abc123def4567890abc123def4567890"
 }

Polling for Completion

 GET /job/{job_id}/status   -> { "status": "Done", "path": "/job/{job_id}/output" }
 GET /job/{job_id}/output   -> { "url": "https://..." }

Poll every ~3 seconds; expect completion within 30 seconds.

Full API reference: https://markdown2pdf.ai/api-reference/overview (https://markdown2pdf.ai/api-reference/overview)