# Upload avatar image with API

**URL:** <https://meta.discourse.org/t/upload-avatar-image-with-api/55253>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [6 Gennaio 2017, 1:31am UTC](https://meta.discourse.org/t/upload-avatar-image-with-api/55253 "2017-01-06T01:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [17 Gennaio 2017, 10:20am UTC](https://meta.discourse.org/t/upload-avatar-image-with-api/55253/5 "2017-01-17T10:20:54Z")

</div>

> [@blake](#):
>
> The problem I found is that this just returns { “success”: “OK” } and doesn’t return the upload\_id?

You need to connect to the message-bus and listen on `/uploads` - BEFORE sending the upload - just in case the resize operation takes a long time.

I think you also need to send your message bus client\_id with the upload, too.

---

_[View the full topic](https://meta.discourse.org/t/upload-avatar-image-with-api/55253)._
