Mailboxes

Upload a profile photo for an order

POST
/v1/mailbox-pictures

Stores a PNG, JPEG, WebP or GIF (at most 4 MB) and returns its address, to send as profilePictureUrl with a mailbox when ordering it. Google sets it as the mailbox's photo once the mailbox is set up.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
dataUrl*string

A data: URL, such as FileReader.readAsDataURL() produces in a browser. The declared mime type in it is ignored - the real type is read from the file’s own bytes

Response Body

Success

application/json
  1. response

Success

url*string

Send as profilePictureUrl

Formaturi
curl -X POST "https://example.com/v1/mailbox-pictures" \  -H "Content-Type: application/json" \  -d '{    "dataUrl": "string"  }'
{  "url": "http://example.com"}