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

Account

status

account.status The plan, whether the account is active, and the quota total, used and remaining, all in bytes Risk: read
Input: empty object Quota figures are in bytes. Output

Upload

optimize

upload.optimize Optimize a file passed as base64, which the plugin uploads to Kraken as multipart, with the same resize and conversion options. Spends quota Risk: destructive
Input Takes the file as base64 and sends it to Kraken as a multipart upload. Needs wait: true or a callback_url. Spends quota.
Output

Url

optimize

url.optimize Fetch an image or PDF from a URL and optimize it, optionally resizing, converting, keeping metadata or setting the quality. Spends quota Risk: destructive
Input Needs wait: true or a callback_url. Spends quota. With a multi-size resize, a failure of one size appears in the results entry for that size; a whole-request refusal arrives as a 200 with success: false, which the plugin throws on.
Output