1
/markdown endpoint
Call the
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 /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 /job/{job_id}/status
endpoint.2
/payment-request endpoint
Call the
payment-request
endpoint endpoint to retrieve the payment request details after receiving a 402 response from the /markdown
endpoint. It provides the necessary information to make a lightning payment.3
/job/{job_id}/status endpoint
Call the
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.4
/job/{job_id}/output endpoint
Call the
output
endpoint to retrieve the URL from which you can download the generated PDF once the job is complete.