Skip to main content
cURL

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

multipart/form-data
bottom
integer

Distance in pixels from the top edge of the uploaded image to the bottom edge of the area to keep. left, top, right and bottom must be provided together.

Example:

200

left
integer

Distance in pixels from the left edge of the uploaded image to the left edge of the area to keep. left, top, right and bottom must be provided together.

Required range: x >= 0
Example:

0

photo
file

The image to use, sent as multipart form data.

right
integer

Distance in pixels from the left edge of the uploaded image to the right edge of the area to keep. left, top, right and bottom must be provided together.

Example:

400

top
integer

Distance in pixels from the top edge of the uploaded image to the top edge of the area to keep. left, top, right and bottom must be provided together.

Required range: x >= 0
Example:

0

Response

Returns the identifier of each stored size.

big
string

Identifier of the largest stored size, for where the picture is shown at full size.

medium
string

Identifier of the medium stored size, the one a profile picture is normally shown at.

nano
string

Identifier of the smallest stored size, for the places a face appears at icon scale.

small
string

Identifier of the small stored size.