As far as I know there is no API for that in both v1 and upcoming v2 of Dropbox Core API. Is there any workaround? E.g. can I manually make an URL for getting a user's photo (given I have an access token)?
Unfortunately, no, it's not currently possible to get the profile picture via the API, but I'll be sure to pass this along as a request.
We need this too. Would like to push profile pictures from AD to Dropbox via Okta automatically. Making it available in the API is the first step.
I need this too. We'd very much like to make a beautiful experience for the users of the planned Ubuntu Scope for Dropbox, and showing the user their current profile photo (in addition to have an HTTP API to modify it) would be really nice.
curl -X POST https://api.dropboxapi.com/2/users/get_current_account--header 'Authorization: Bearer <TOKEN>'--header 'Content-Type: application/json'--data 'null'REPLY[....] "account_id": "ID-OF-USER",[....]https://dl-web.dropbox.com/account_photo/get/ID-OF-USER?vers=1469058358325&size=64x64vers is the current timestamp, to grab the last photosize, I think this is square, and I don't know the sizes, like 128x128, 32x32, etc
Thanks for posting this Luiz! That's correct, it's now possible to get the profile picture in API v2 via profile_photo_url returned by /users/get_current_account.
It's also now possible to set the profile picture using /2/account/set_profile_photo.