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
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
Takes the file as base64 and sends it to Kraken as a multipart upload. Needs
wait: true or a callback_url. Spends quota.
resize full type
resize full type
convert full type
convert full type
results full type
results full type
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
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.
resize full type
resize full type
convert full type
convert full type
results full type
results full type