# API for Manager Desktop

**URL:** <https://forum.manager.io/t/api-for-manager-desktop/3390>\
**Category:** Uncategorized\
**Created:** [July 26, 2015, 8:45am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390 "2015-07-26T08:45:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmyg](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jimmyg](https://forum.manager.io/u/jimmyg)\
**Post date:** [July 26, 2015, 8:45am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/1 "2015-07-26T08:45:52Z")

</div>

Does the API currently work Manager Desktop? There is no specific example at [Free Accounting Software | Manager](http://www.manager.io/api) for the desktop version. I tried using the server version example but got an error “Unable to connect to remote server”. I then tried downloading the trial server version and got a different error “The remote server returned an error: (401) Unauthorized”.

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [July 26, 2015, 9:58am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/2 "2015-07-26T09:58:56Z")

</div>

Technically it would be possible to support desktop edition too. But right now desktop edition is not supported. Ask again in about month.

For the time being, you can run free trial of server edition which allows for API access.

---

<div class="post-metadata">

**Author:** ![jimmyg](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jimmyg](https://forum.manager.io/u/jimmyg)\
**Post date:** [July 27, 2015, 2:33am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/3 "2015-07-27T02:33:23Z")

</div>

Thanks for your response. It worked with the server version once I added the api user.  
Do you have any more api code examples? Specifically adding a Sales Invoice.

---

<div class="post-metadata">

**Author:** ![AdamC](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/adamc/32/13405_2.png) [@AdamC](https://forum.manager.io/u/AdamC)\
**Post date:** [February 17, 2018, 6:16pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/4 "2018-02-17T18:16:17Z")

</div>

Hi, is there any update on using the API with the desktop edition? Thanks!

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [February 19, 2018, 10:35pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/5 "2018-02-19T22:35:32Z")

</div>

Currently API authentication is relying on user passwords but desktop edition doesn’t support users. Eventually this will change and Manager will have some concept of API keys instead.

For now, you can use free trial of server edition to use API.

---

<div class="post-metadata">

**Author:** ![busy](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@busy](https://forum.manager.io/u/busy)\
**Post date:** [October 21, 2018, 9:50am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/6 "2018-10-21T09:50:59Z")

</div>

Is the API available on the desktop version?

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [October 21, 2018, 1:16pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/7 "2018-10-21T13:16:59Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![busy](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@busy](https://forum.manager.io/u/busy)\
**Post date:** [October 23, 2018, 9:18pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/8 "2018-10-23T21:18:50Z")

</div>

Thanks for confirming.

---

<div class="post-metadata">

**Author:** ![joris\_manager](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@joris\_manager](https://forum.manager.io/u/joris_manager)\
**Post date:** [June 23, 2021, 11:23am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/9 "2021-06-23T11:23:21Z")

</div>

Previously I was able to use the api on the desktop edition with locahost:56…/api user: administrator pass: empty.

Recently this has changed. Is this correct?

---

<div class="post-metadata">

**Author:** ![Bob\_Hunt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/bob_hunt/32/21639_2.png) [@Bob\_Hunt](https://forum.manager.io/u/Bob_Hunt)\
**Post date:** [June 23, 2021, 9:04pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/10 "2021-06-23T21:04:03Z")

</div>

As per Lubos’ post here [Unable to login to API after update - #13 by lubos](https://forum.manager.io/t/unable-to-login-to-api-after-update/35259/13), the API still works fine with the free desktop edition but without a way to set administrator password.

To set a password, use the workaround suggested by Lubos:

- Get the trial server appimage from here  
[Releases · Manager-io/Manager.AppImage · GitHub](https://github.com/Manager-io/Manager.AppImage/releases)
- Run the appimage,which starts the server
- Open a Manager instance on the server at localhost:8080
- Set an administrator password
- Desktop edition API should then work using the same password (password file was created in your database folder)

---

<div class="post-metadata">

**Author:** ![joris\_manager](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@joris\_manager](https://forum.manager.io/u/joris_manager)\
**Post date:** [June 23, 2021, 9:17pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/11 "2021-06-23T21:17:07Z")

</div>

Ah ok… that works. You need to copy the password file. Thanks.

As a side note, I had to allow the unsigned dlls etc from the ManagerServer before being able to run it `xattr -dr com.apple.quarantine *`

Everything’s working thank you

---

<div class="post-metadata">

**Author:** ![CMCDragonkai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/cmcdragonkai/32/15600_2.png) [@CMCDragonkai](https://forum.manager.io/u/CMCDragonkai)\
**Post date:** [April 15, 2022, 4:44am UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/12 "2022-04-15T04:44:33Z")

</div>

What does the password file look like? Is it an htpasswd file?

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 3:08pm UTC](https://forum.manager.io/t/api-for-manager-desktop/3390/13 "2023-01-18T15:08:13Z")

</div>

Closed on January 18, 2023, 3:08pm UTC


