# 401 Error when Attempting to Access Children Folders

**URL:** <https://forum.frame.io/t/401-error-when-attempting-to-access-children-folders/2235>\
**Category:** Help\
**Tags:** python, api\
**Created:** [January 16, 2025, 6:32pm UTC](https://forum.frame.io/t/401-error-when-attempting-to-access-children-folders/2235 "2025-01-16T18:32:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi1](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@abhi1](https://forum.frame.io/u/abhi1)\
**Post date:** [January 16, 2025, 6:32pm UTC](https://forum.frame.io/t/401-error-when-attempting-to-access-children-folders/2235/1 "2025-01-16T18:32:49Z")

</div>

Hello,

I am trying to download videos from my project using the Python SDK.

First, I am trying to find the asset\_ids of each video I would like to download. So, I started by

I started by getting my account\_id from this command:

```auto
requests.get("https://api.frame.io/v2/accounts", headers=headers)

```

Then I used that to get the team id using:

```auto
requests.get(f"https://api.frame.io/v2/accounts/{account_id}/teams", headers=headers)

```

From there, I was able to get my projects using this command:

```auto
requests.get(f"https://api.frame.io/v2/teams/{team_id}/projects", headers=headers)

```

And from this, I was able to extract the ‘root\_asset\_id’ for the project I want to download videos from.

Now I want to explore the folders/files within this project so I can find the asset\_ids of the videos I want to download. But, when I try this command:

```auto
response = requests.get(
    f"https://api.frame.io/v2/assets/131bd915-0a13-43cc-943e-1f80d8ce0f0f/children?type=folder",
    headers=headers
)

```

I get this error:

```auto
Failed. Status code: 401, Response: {"code":401,"errors":[{"code":401,"detail":"You are not allowed to access that resource","status":401,"title":"Not Authorized"}],"message":"Not Authorized"}

```

I am wondering why I am not able to make this API call despite being able to make the other API calls? Is there an issue with the API token I am using? 401 Error when Attempting to Access Children Folders

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/fed5c199295a116ce1db9ce1bb8e577a3f7b21c0.png) [@system](https://forum.frame.io/u/system)\
**Post date:** [January 16, 2025, 6:33pm UTC](https://forum.frame.io/t/401-error-when-attempting-to-access-children-folders/2235/2 "2025-01-16T18:33:01Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/frame1/original/1X/fed5c199295a116ce1db9ce1bb8e577a3f7b21c0.png) [@system](https://forum.frame.io/u/system)\
**Post date:** [January 16, 2025, 6:35pm UTC](https://forum.frame.io/t/401-error-when-attempting-to-access-children-folders/2235/3 "2025-01-16T18:35:58Z")

</div>


