# API access to use on other app

**URL:** <https://forum.manager.io/t/api-access-to-use-on-other-app/59909>\
**Category:** Uncategorized\
**Created:** [January 21, 2025, 1:57pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909 "2025-01-21T13:57:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 21, 2025, 1:57pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/1 "2025-01-21T13:57:55Z")

</div>

Can i access my ledger through the API ? because when i try to access bank and cash accounts i get 401 no authorization message, any idea why ?

---

<div class="post-metadata">

**Author:** ![eko](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/eko/32/64196_2.png) [@eko](https://forum.manager.io/u/eko)\
**Post date:** [January 21, 2025, 3:14pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/2 "2025-01-21T15:14:15Z")

</div>

> [@trial](#):
>
> when i try to access bank and cash accounts i get 401 no authorization message

Welcome, as a new user you are encouraged to familiarize yourself with [FAQ - Manager Forum](https://forum.manager.io/faq) most important related to posting (assuming you searched the forum first and used the guides) is;

> **Be specific.** Do not just tell us a feature does not work. Explain what you have done and why you think there is an issue. If your question relates to an apparent software problem (rather than an accounting topic), tell us your operating system (including the version), Manager edition (desktop, server, or cloud), and exactly what you think is wrong. If possible, post screen shots illustrating the problem.

Also:

> Manager advances very quickly, simplifying and adding features and capabilities. Sometimes, bugs occur with new releases. But these are usually fixed rapidly, often within minutes. So if you encounter a problem with the desktop or server editions, **update Manager** , even if you recently did. (The cloud edition is always up to date.) You can check the latest version at [https://www.manager.io/desktop/download/](https://www.manager.io/download).

---

<div class="post-metadata">

**Author:** ![Mabaega](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/mabaega/32/47471_2.png) [@Mabaega](https://forum.manager.io/u/Mabaega)\
**Post date:** [January 21, 2025, 4:22pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/3 "2025-01-21T16:22:14Z")

</div>

> [@trial](#):
>
> because when i try to access bank and cash accounts i get 401 no authorization message

Could you explain or share the code you are using to access the API, so that we can identify where the issue might be and provide appropriate suggestions?

---

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 22, 2025, 11:26am UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/4 "2025-01-22T11:26:22Z")

</div>

Hello @Mabaega,

i used postman to check it first. i attached the pictures

 ![global](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/2/8/2872a0c6730d8eb8d30b3b95efa1a3fd9a1738b4.png)

here i got response 200

---

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 22, 2025, 11:27am UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/5 "2025-01-22T11:27:27Z")

</div>

but here i got response 401

 ![bank_cash_accounts](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/c/5/c5836b2baea62149a8d6e790a1da687742d43467.png)

did i do something wrong ?

---

<div class="post-metadata">

**Author:** ![Mabaega](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/mabaega/32/47471_2.png) [@Mabaega](https://forum.manager.io/u/Mabaega)\
**Post date:** [January 22, 2025, 12:27pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/6 "2025-01-22T12:27:24Z")

</div>

Try like this

Create Access Token

 ![{4DB0DA25-9046-4977-B586-035103E90737}](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/b/a/ba7e313f1e3aa88c61c261e9e4dc74ba6147c72d.png)

Add X-API-KEY to Header

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/b/5/b53e185d6979b7cb3837210db4ac51f82c94e9a6.png)

---

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 22, 2025, 1:26pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/7 "2025-01-22T13:26:53Z")

</div>

i did like you did but still unauthorized

 ![bank_cash_accounts](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/4/b/4bf33e22691f4757b0726ae2442e85702c44ed63.jpeg)

---

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 22, 2025, 1:27pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/8 "2025-01-22T13:27:24Z")

</div>

with global i get the access

 ![global](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/0/4/04570dc4080911fb4655baa5f12174244ade6c26.jpeg)

---

<div class="post-metadata">

**Author:** ![Mabaega](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/mabaega/32/47471_2.png) [@Mabaega](https://forum.manager.io/u/Mabaega)\
**Post date:** [January 22, 2025, 1:55pm UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/9 "2025-01-22T13:55:46Z")

</div>

I didn’t really understand how to use Postman, I just guessed and it worked.

I don’t see any X-API-KEY variable in your Authorization.

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/6/f/6f04080c2e8d888d9ddea5d84d135b303ea40d2d.png)  
change this Key to `X-API-KEY`

---

<div class="post-metadata">

**Author:** ![ahmadmusair\_3593](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ahmadmusair\_3593](https://forum.manager.io/u/ahmadmusair_3593)\
**Post date:** [January 23, 2025, 2:39am UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/10 "2025-01-23T02:39:42Z")

</div>

Did you add the correct key for the api key, it should be “X-API-KEY”? the resulting query should contain “–header 'X-API-KEY: \*\*\*\*”

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/3/2/324be4ee47bf721ec6882ae83853d06e03d6c10e.png)

---

<div class="post-metadata">

**Author:** ![trial](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/trial/32/54038_2.png) [@trial](https://forum.manager.io/u/trial)\
**Post date:** [January 23, 2025, 3:58am UTC](https://forum.manager.io/t/api-access-to-use-on-other-app/59909/11 "2025-01-23T03:58:18Z")

</div>

Thank you so much Ahmad, @eko and @Mabaega! Your solutions were spot on, and they worked perfectly. You all did an amazing job—I really appreciate your help! 🙌
