# files folder bad request error 400

**URL:** <https://community.hubspot.com/t/files-folder-bad-request-error-400/73972>\
**Category:** APIs & Integrations\
**Created:** [January 28, 2023, 11:30am UTC](https://community.hubspot.com/t/files-folder-bad-request-error-400/73972 "2023-01-28T11:30:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredito](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Fredito](https://community.hubspot.com/u/Fredito)\
**Post date:** [January 28, 2023, 11:30am UTC](https://community.hubspot.com/t/files-folder-bad-request-error-400/73972/1 "2023-01-28T11:30:06Z")

</div>

Hi,

I trying to use differents files API.  
I always have the same issue trying to upload files using /files/v3/files (bad request 400) so I got back to basics with

files/v3/folders/{folderPaht}

This last try works well from the hubspot test API tools but when I run it from postman, 400 again. It is a really simple call and I’ve got exatcly the sames parameters.

turning cray, any help would be great 🙂

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 30, 2023, 9:47pm UTC](https://community.hubspot.com/t/files-folder-bad-request-error-400/73972/2 "2023-01-30T21:47:17Z")

</div>

Hi, @Fredito 👋 Can you share any additional details? Sharing how your requests are set up is one easy way to give the community more to work with.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Fredito](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Fredito](https://community.hubspot.com/u/Fredito)\
**Post date:** [January 31, 2023, 2:32pm UTC](https://community.hubspot.com/t/files-folder-bad-request-error-400/73972/3 "2023-01-31T14:32:09Z")

</div>

thx [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
so here are some details :  
**this**  
curl --request GET \  
--url [https://api.hubapi.com/files/v3/folders/uploadedfiles](https://api.hubapi.com/files/v3/folders/uploadedfiles) \  
--header ‘authorization: Bearer YOUR\_ACCESS\_TOKEN’  
**works fine in the api developpement documenation tool and send this response :**

HTTP 200

{  
“id”: “60289114066”,  
“createdAt”: “2023-01-23T14:26:00.493Z”,  
“updatedAt”: “2023-01-23T14:26:00.616Z”,  
“archived”: false,  
“name”: “uploadedfiles”,  
“path”: “/uploadedfiles”  
}

**When I try to make exactly the same in Postman**

curl --location --request GET ‘[https://api.hubapi.com/files/v3/folders/uploadedfiles](https://api.hubapi.com/files/v3/folders/uploadedfiles)’ \

--header ‘authorization: Bearer YOUR\_ACCESS\_TOKEN’

**the response is**

\<html\>

\<head\>

```
\<title>400 Bad Request\</title>

```

\</head\>

\<body\>

```
\<center>

    \<h1>400 Bad Request\</h1>

\</center>

\<hr>

\<center>cloudflare\</center>

```

\</body\>

\</html\>
