# Using Matillion API Query component to query Matillion API?

**URL:** <https://matillioncommunity.discourse.group/t/using-matillion-api-query-component-to-query-matillion-api/2380>\
**Category:** Matillion ETL\
**Created:** [October 24, 2023, 4:41pm UTC](https://matillioncommunity.discourse.group/t/using-matillion-api-query-component-to-query-matillion-api/2380 "2023-10-24T16:41:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckeeperman](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@ckeeperman](https://matillioncommunity.discourse.group/u/ckeeperman)\
**Post date:** [October 24, 2023, 4:41pm UTC](https://matillioncommunity.discourse.group/t/using-matillion-api-query-component-to-query-matillion-api/2380/1 "2023-10-24T16:41:19Z")

</div>

I'm trying to export my entire Matillion project in JSON using Matillion API Query component. Documentation states to use HTTP but the connection gets refused when I use HTTP. The URL I'm using seems to work, but I get a 401 error even when using username/password.

&nbsp;

My end goal is to automate export of the project and store the JSON.

&nbsp;

 ![0694G00000UtXrtQAF_0D54G00009hgwu6SAA](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/61ad3507c8b386e6f1eccf4700bfce71365c72fe.png)

---

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://matillioncommunity.discourse.group/u/Michael)\
**Post date:** [December 15, 2023, 11:18am UTC](https://matillioncommunity.discourse.group/t/using-matillion-api-query-component-to-query-matillion-api/2380/2 "2023-12-15T11:18:27Z")

</div>

Hi [@ckeeperman](https://matillioncommunity.discourse.group/u/ckeeperman)​ ,

did you configure the user that you are using for the API authentication with API access permissions? You can do this in the Admin section of Matillion ETL.

Br,

Michael
