details is an object mapping each invalid field name to a list of messages.
Reasons and How to Fix
Invalid Parameter Value
A parameter has an invalid value that doesn’t match the expected options. Common issues:formatmust be one of:png,jpg,webpfor an image, orwebm,mov,mp4,giffor a video. Sending a format from the wrong family (for exampleformat=pngwith a video) returns this error with the valid values for that mediachannelsmust be one of:rgba,rgb,alphasizemust be one of:full,preview,medium,hdcropmust be a boolean (true/false) or an aspect ratio like1:1,4:3,16:9paddingmust be a number (0.1) or percentage (10%), optionally ashorizontal,vertical(10%,7.5%)
Image-only Parameter Sent with a Video
crop, padding, crop_margin, width, height and fit only apply to images. Sending any of them with a video is rejected, and details.field names the offending parameter. Use size to downscale a video.
URL Could Not Be Downloaded
When Poof cannot download theurl you sent, the request is rejected with 400 validation_error and details.field is "url" (or "image_url" if you used the legacy alias). If the server answered with an HTTP error, details.status carries its status code. Nothing is billed.
status, covers a download that timed out (15 s), a host that could not be reached, more than 3 redirects, or a URL pointing at a private, loopback or link-local address. Check that the URL is public over https and opens without cookies or login (signed URLs must not have expired), or upload the file with file instead.
Incorrect Data Types
Parameters must be the correct type.Non-multipart Body
The/remove endpoint only accepts multipart/form-data. A JSON or raw body is rejected.
Valid Parameter Reference
Need Help?
Contact us at support@poof.bg with yourrequest_id.