Skip to main content
New to Corsair? See API access, authentication, and error handling.

Account

get

account.get Read account usage, plan limits, storage use and (on usage plans) the credit balance. Docs: https://cloudlayer.io/docs/account/ Risk: read
Input: empty object Output

Assets

get

assets.get Get one generated asset including its pre-authenticated download URL. Docs: https://cloudlayer.io/docs/assets/ Risk: read
Input Output

list

assets.list List the most recent generated assets with cursor pagination. Docs: https://cloudlayer.io/docs/assets/ Risk: read
Input Output: object[]

Html

toImage

html.toImage Render base64 HTML to a PNG, JPG, WebP or SVG image; v2 returns a job, including a completed job with async:false. Docs: https://cloudlayer.io/docs/html-to-image/ Risk: destructive
Input V2 returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. html.toImageV1 exposes the v1 raw binary route as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/html-to-image/.
Output: object

toImageV1

html.toImageV1 Render base64 HTML to an image using the v1 route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/html-to-image/ Risk: destructive
Input The v1 response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/html-to-image/.
Output

toPdf

html.toPdf Render base64 HTML to a PDF; v2 returns a job, including a completed job with async:false. Docs: https://cloudlayer.io/docs/html-to-pdf/ Risk: destructive
Input V2 returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. html.toPdfV1 exposes the v1 raw binary route as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/html-to-pdf/.
Output: object

toPdfV1

html.toPdfV1 Render base64 HTML to a PDF using the v1 route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/html-to-pdf/ Risk: destructive
Input The v1 response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/html-to-pdf/.
Output

Jobs

get

jobs.get Get one job to poll an async generation, including status, size and cost. Docs: https://cloudlayer.io/docs/jobs/ Risk: read
Input Output

list

jobs.list List recent jobs using the documented v1 jobs endpoint with optional cursor parameters. Docs: https://cloudlayer.io/docs/jobs/ Risk: read
Input Output: object[]

listV2

jobs.listV2 List recent jobs using the v2 jobs endpoint with optional cursor parameters. Docs: https://cloudlayer.io/docs/jobs/ Risk: read
Input Output: object[]

Storage

create

storage.create Create an S3-compatible storage configuration for direct file delivery. Docs: https://cloudlayer.io/docs/storage/ Risk: write
Input Output

get

storage.get Read one storage configuration by ID with secrets masked. Docs: https://cloudlayer.io/docs/storage/ Risk: read
Input Output

getCurrent

storage.getCurrent Read the current storage configuration with secrets masked. Docs: https://cloudlayer.io/docs/storage/ Risk: read
Input: empty object Output: object \| object[]

remove

storage.remove Delete a storage configuration and revert to cloudlayer.io cloud storage. Docs: https://cloudlayer.io/docs/storage/ Risk: destructive
Input Output

Template

toImage

template.toImage Render a gallery or base64 Nunjucks template with caller data to an image using JSON or multipart upload; v2 async:false returns a completed JSON job. Docs: https://cloudlayer.io/docs/template-to-image/ Risk: destructive
Input: object V2 returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. template.toImageV1 exposes the v1 route as a base64-encoded binary artifact. For multipart input, the generated type renderer labels the z.instanceof(Blob) field as custom; callers must pass an actual Blob in { template: Blob, data: object }, where data is a JSON object. Multipart requests remain in v2 job mode; only the documented template and data parts are sent. See https://cloudlayer.io/docs/template-to-image/.
Output: object

toImageV1

template.toImageV1 Render a gallery or base64 Nunjucks template to an image using the v1 route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/template-to-image/ Risk: destructive
Input The v1 response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/template-to-image/.
Output

toPdf

template.toPdf Render a gallery or base64 Nunjucks template with caller data to a PDF using JSON or multipart upload; v2 async:false returns a completed JSON job. Docs: https://cloudlayer.io/docs/template-to-pdf/ Risk: destructive
Input: object V2 returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. template.toPdfV1 exposes the v1 route as a base64-encoded binary artifact. For multipart input, the generated type renderer labels the z.instanceof(Blob) field as custom; callers must pass an actual Blob in { template: Blob, data: object }, where data is a JSON object. Multipart requests remain in v2 job mode; only the documented template and data parts are sent. See https://cloudlayer.io/docs/template-to-pdf/.
Output: object

toPdfV1

template.toPdfV1 Render a gallery or base64 Nunjucks template to a PDF using the v1 route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/template-to-pdf/ Risk: destructive
Input The v1 response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/template-to-pdf/.
Output

Url

toImage

url.toImage Screenshot a live web page with full viewport, cookie and auth control; v2 returns a job, including a completed job with async:false. Docs: https://cloudlayer.io/docs/url-to-image/ Risk: destructive
Input V2 POST returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. url.toImageV1 exposes v1 POST, and url.toImageQuickV1 exposes v1 GET as base64-encoded binary artifacts. See https://cloudlayer.io/docs/url-to-image/.
Output: object

toImageQuick

url.toImageQuick GET convenience route that creates a JSON job for one URL image with only url and timeout. Docs: https://cloudlayer.io/docs/url-to-image/ Risk: destructive
Input The v2 GET shortcut returns a JSON job. url.toImageQuickV1 exposes the v1 GET route as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-image/. Output

toImageQuickV1

url.toImageQuickV1 GET v1 shortcut that screenshots one URL and returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/url-to-image/ Risk: destructive
Input The v1 GET response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-image/. Output

toImageV1

url.toImageV1 Screenshot a URL using the v1 POST route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/url-to-image/ Risk: destructive
Input The v1 POST response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-image/.
Output

toPdf

url.toPdf Capture a live web page (or a batch of URLs) as a PDF; v2 returns a job, including a completed job with async:false. Docs: https://cloudlayer.io/docs/url-to-pdf/ Risk: destructive
Input V2 POST returns a JSON job; async: false waits for completion and returns the completed JSON job per the API overview. url.toPdfV1 exposes the v1 POST route as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-pdf/.
Output: object

toPdfQuick

url.toPdfQuick GET convenience route that captures a single URL as a PDF with only url and timeout. Docs: https://cloudlayer.io/docs/url-to-pdf/ Risk: destructive
Input The v2 GET shortcut returns a JSON job. url.toPdfQuickV1 exposes the v1 GET route as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-pdf/. Output

toPdfQuickV1

url.toPdfQuickV1 GET v1 shortcut that captures one URL as a PDF and returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/url-to-pdf/ Risk: destructive
Input The v1 GET response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-pdf/. Output

toPdfV1

url.toPdfV1 Capture a URL (or batch) as a PDF using the v1 route; returns a base64-encoded binary artifact. Docs: https://cloudlayer.io/docs/url-to-pdf/ Risk: destructive
Input The v1 POST response is binary and is returned as a base64-encoded BinaryArtifact. See https://cloudlayer.io/docs/url-to-pdf/.
Output