# Adding an attachment via the API

**URL:** <https://community.servicem8.com/t/adding-an-attachment-via-the-api/1024>\
**Category:** API & SDK\
**Created:** [July 24, 2017, 9:59am UTC](https://community.servicem8.com/t/adding-an-attachment-via-the-api/1024 "2017-07-24T09:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [July 24, 2017, 9:59am UTC](https://community.servicem8.com/t/adding-an-attachment-via-the-api/1024/1 "2017-07-24T09:59:33Z")

</div>

**Originally posted by Martin Gibson**

Hi there,

I am following the instructions here: [Attaching files to a Job Diary](https://developer.servicem8.com/v1.0/docs/attaching-files-to-a-job-diary) to attach an image file to a job.

I am up to step 3 and I am even getting a 200 response code on this call and in ServiceM8 in the job file I can see the image is being attached/created which is great but the image itself is blank?

In the file parameter of the POST request in step 3 I am just using a standard public URL like this one for example:

 ![safety-training_jobsite](https://us1.discourse-cdn.com/flex002/uploads/servicem8/original/1X/4ee8168ed4e91fd5d4ca92d9c9b32ac0f194d0ef.jpeg)

Is there something I am missing? Thanks,
