list_jobs
List Jobs
List your document generation jobs, ordered by creation date (newest first). Supports pagination to browse through job history.
list_jobs
List your document generation jobs, ordered by creation date (newest first). Supports pagination to browse through job history.
get_account_status
Check your Cloudlayer account status including remaining API credits and rate limit information. This endpoint does not consume API credits.
generate_image_from_url
Capture a publicly accessible web page and convert it into an image (PNG, JPG, or WebP). Useful for turning dashboards or web pages into image snapshots. Optionally provide HTTP Basic Auth credentials or session cookies if the target URL requires authentication. The API call is asynchronous by default and returns a job ID.
generate_image_from_template
Generate an image (PNG, JPG, or WebP) using a predefined template from the Cloudlayer gallery or a custom Nunjucks HTML template. Pass in your dynamic data to populate template variables. For predefined templates, provide the **templateId** and matching **templateData**. For custom templates, provide a base64-encoded HTML template string. The API call is asynchronous by default and returns a job ID.
list_assets
List generated assets (PDFs and images) stored in your Cloudlayer account. Returns asset metadata including download URLs. Supports pagination.
generate_image_from_html
Convert HTML content into an image (PNG, JPG, or WebP). Provide your HTML as a **base64-encoded string** — it can include JavaScript, CSS, custom fonts, and image imports. Configure viewport dimensions, device scale factor, output format, and enable transparent backgrounds for PNG/WebP. The API call is asynchronous by default and returns a job ID.
get_job
Retrieve the details and status of a specific document generation job by its ID. Use this to check whether an asynchronous PDF or image generation job has completed and to get the resulting asset URL.
generate_pdf_from_url
Capture a publicly accessible web page and convert it into a PDF document. Supports batch processing — provide an array of URLs to combine into a single multi-page PDF. Optionally provide HTTP Basic Auth credentials or session cookies if the target URL requires authentication. The API call is asynchronous by default and returns a job ID.
generate_pdf_from_template
Generate a PDF document using a predefined template from the Cloudlayer gallery or a custom Nunjucks HTML template. Pass in your dynamic data to populate template variables. For predefined templates, provide the **templateId** and matching **templateData**. For custom templates, provide a base64-encoded HTML template string. The API call is asynchronous by default and returns a job ID.
generate_pdf_from_html
Convert HTML content into a PDF document. Provide your HTML as a **base64-encoded string** — it can include JavaScript, CSS, imported fonts, embedded images, and external resources. Configure paper format, margins, headers/footers, orientation, and more. The API call is asynchronous by default and returns a job ID. Use the **Get Job** tool to check completion and retrieve the asset URL.
get_asset
Retrieve details for a specific generated asset (PDF or image) by its ID. Returns the asset metadata including a pre-authenticated download URL.
Generate PDF and image documents from HTML content, URLs, or templates. Convert web pages and HTML into PDFs with configurable paper formats, margins, headers/footers, and orientation. Generate images (PNG, JPG, WebP) from HTML or URLs with configurable viewports and transparency. Use predefined or custom Nunjucks templates with dynamic data for document generation. Batch-convert multiple URLs into a single combined PDF. Store generated assets in cloud storage with CDN access or custom S3-compatible storage. Generate image previews and thumbnails of documents. Manage jobs, check account status and credits, and receive webhook notifications on job completion.
Common questions about connecting Cloudlayer to AI agents with Metorial.