Using our REST API directly to convert markdown to PDF
/v1/markdown endpoint
markdown
endpoint with your markdown content to initiate the conversion process. If a payment is required, you will receive a 402 response containing a URL from which you can retrieve the lightning invoice details using the /v1/markdown/markdown/payment-request
endpoint. Once payment has been made, you will receive a URL which can be polled for the status of the document generation using the /v1/markdown/job/{job_id}/status
endpoint./v1/markdown/payment-request endpoint
payment-request
endpoint endpoint to retrieve the payment request details after receiving a 402 response from the /v1/markdown
endpoint. It provides the necessary information to make a lightning payment./v1/markdown/job/{job_id}/status endpoint
status
endpoint repeatedly to check the status of your document generation job. It will return the current status and, once complete, provide a URL to download the generated PDF./v1/markdown/job/{job_id}/output endpoint
output
endpoint to retrieve the URL from which you can download the generated PDF once the job is complete.