Uploading Files from uploads api

Uploading Files from uploads api

I tried uploading the image from the API call but its giving me unauthorized error even i have given valid token in header.

After uploading i need that id to pass in create ticket api uploads but its not uploading that file.

Please help me out in this.