Reset Password
Check your e-mail for further instructions.
Reset
Name
getpubthumb
Auth
no
Description
Get a thumbnail of a public file
Same as getthumb, but works on public file identified by code (and fileid if link is to a folder)
The code could be obtained from:
URL
https://api.pcloud.com/getpubthumb
Required
Required
| Parameter | Description |
| code | string either 'code' or 'shortcode' |
| fileid | int id of the file for thumb, if the link is to folder |
| size | string WIDTHxHEIGHT |
Optional
| Parameter | Description |
| crop | int If set, then the thumb will be cropped |
| type | string If set to png, then the thumb will be in png format |
| Code | Description |
| 1000 | Log in required. |
| 1004 | No fileid or path provided. |
| 1014 | Thumb can not be created from this file type. |
| 1015 | Please provide valid thumb size. Width and height must be divisible either by 4 or 5 and must be between 16 and 2048 (1024 for height). |
| 1028 | Please provide link 'code'. |
| 1029 | Please provide 'fileid'. |
| 2000 | Log in failed. |
| 2002 | A component of parent directory does not exist. |
| 2009 | File not found. |
| 2010 | Invalid path. |
| 3001 | Could not create thumb from the given file. |
| 4000 | Too many login tries from this IP address. |
| 5002 | Internal error, no servers available. Try again later. |
| 7001 | Invalid link 'code'. |
| 7002 | This link is deleted by the owner. |
| 7004 | This link has expired. |
| 7005 | This link has reached its traffic limit. |
| 7006 | This link has reached maximum downloads. |