# error using /files/v3/files/import-from-url/async API

**URL:** <https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490>\
**Category:** APIs & Integrations\
**Created:** [January 23, 2023, 1:11pm UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490 "2023-01-23T13:11:26Z")\
**Posts on this page:** 5\
**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 23, 2023, 1:11pm UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490/1 "2023-01-23T13:11:26Z")

</div>

Hi,

I’m trying to use the API to updload file form url in Hubspot

Using Zapier or Postman I always get the same résult :

{

```
"id": "AAAAFy1nmLQ",

"links": {

    "status": "https://api-na1.hubspot.com/files/v3/files/import-from-url/async/tasks/AAAAFy1nmLQ/status"

}

```

}

And the status url returns :

`{"status":"error","message":"Csrf token is missing from the request.","correlationId":"82b220b4-1179-4a9e-83a3-d1c51fd23c91","engagement":{"hapikey":"Not engaged, auth is missing","service-to-service":"service-to-service not engaged. Metadata for service-to-service request not found.","oauth-token":"Not engaged, auth is missing","app-cookie":"Engaged","internal-cookie":"internal-cookie not engaged. Cookie not found in the request."}}`

I don’t even know what a Csrf token is and surely not how to send that token in my request 🙂

Help welcomed

---

<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 23, 2023, 11:04pm UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490/2 "2023-01-23T23:04:16Z")

</div>

Hi, @Fredito 👋 One question to help give the community more detail — where is the file hosted? It is in a Google Sheet? Or hosted at a URL on your site?

Thanks! — 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 24, 2023, 5:58am UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490/3 "2023-01-24T05:58:03Z")

</div>

Thx Jaycee,

For the begining I try with differents files available on the web (pdf).

The error is always the same where ever the file is hosted

---

<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 30, 2023, 7:33am UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490/4 "2023-01-30T07:33:49Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

Hi,

I’m still encounting some issues whith files files API

cf : [https://community.hubspot.com/t5/APIs-Integrations/files-v3-files-error-400/td-p/748223](https://community.hubspot.com/t5/APIs-Integrations/files-v3-files-error-400/td-p/748223)

Any help would be appreciate

---

<div class="post-metadata">

**Author:** ![nickdeckerdevs1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickdeckerdevs1/32/5198_2.png) [@nickdeckerdevs1](https://community.hubspot.com/u/nickdeckerdevs1)\
**Post date:** [May 15, 2025, 12:21pm UTC](https://community.hubspot.com/t/error-using-files-v3-files-import-from-url-async-api/73490/5 "2025-05-15T12:21:33Z")

</div>

I was able to solve the issue here. The status url that they are using will not work and is incorrect.  
When the response is sent back to you after the initial post

```lia-code-sample
{
 "id": "AAAALEeDY4c",
 "links": {
 "status": "https://api-na1.hubspot.com/files/v3/files/import-from-url/async/tasks/AAAALEeDY4c/status"
 }
}

```

This url: [https://api-na1.hubspot.com/files/v3/files/import-from-url/async/tasks/AAAALEeDY4c/status](https://api-na1.hubspot.com/files/v3/files/import-from-url/async/tasks/AAAALEeDY4c/status) Is not somethign you can access -- this is a url that seems to be locked by HubSpot Employees (or some sort of access level) or something similar.  
Based upon the documentation, you need to query

`https://api.hubapi.com/files/v3/files/import-from-url/async/tasks/{taskId}/status`

So you would use the ID from the initial response as the taskId, and the Get request shoudl show you an actual status like:

```lia-code-sample
{
 "status": "COMPLETE",
 "result": {
 "id": "190181141614",
 "createdAt": "2025-05-15T12:09:59.063Z",
 "updatedAt": "2025-05-15T12:09:59.063Z",
 "parentFolderId": "190180156072",
 "name": "13.0_sharp-1",
 "path": "/test-curl-upload-async/13.0_sharp-1.svg",
 "size": 7886,
 "height": 858,
 "width": 858,
 "encoding": "svg",
 "type": "IMG",
 "extension": "svg",
 "defaultHostingUrl": "https://21077404.fs1.hubspotusercontent-na1.net/hubfs/21077404/test-curl-upload-async/13.0_sharp-1.svg",
 "url": "https://21077404.fs1.hubspotusercontent-na1.net/hubfs/21077404/test-curl-upload-async/13.0_sharp-1.svg",
 "isUsableInContent": true,
 "access": "PUBLIC_INDEXABLE",
 "fileMd5": "0bc73a48ba08a825ffda5058eef92fd9",
 "sourceGroup": "CONTENT",
 "archived": false
 },
 "startedAt": "2025-05-15T12:09:58.825Z",
 "completedAt": "2025-05-15T12:09:59.063Z",
 "taskId": "AAAALEet7G4"
}

```
