Skip to main content

Connect to a workspace

Open the workspace, sign in and choose Settings → API keys → Create key. Copy the key when it appears. For local development, start the Docker stack first. Set the instance URL to the origin you use in your browser. For the hosted service:
Terminal

Submit the HTML

Copy the returned id. The status in the initial response describes the job at admission. Rendering continues on the worker.

Download the result

Set JOB_ID to the ID from your response. This loop checks for up to one minute, stops on an error and only writes a file when the worker has finished.
download.sh
Open order.pdf. The first page should read Order confirmed and show Order DK-1042. The same job appears under Documents in the workspace.

Use it in an application

Submit requests from your server so the workspace key stays private. The Next.js invoice guide and Node client example show how to integrate submission, bounded polling and downloads. Use idempotency keys when retrying a submission.