# Cannot register ssh key via api for new app

**URL:** <https://discuss.bitrise.io/t/cannot-register-ssh-key-via-api-for-new-app/11355>\
**Category:** Question & Answer\
**Tags:** api\
**Created:** [December 14, 2019, 9:48pm UTC](https://discuss.bitrise.io/t/cannot-register-ssh-key-via-api-for-new-app/11355 "2019-12-14T21:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apppresser](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/apppresser/32/2699_2.png) [@apppresser](https://discuss.bitrise.io/u/apppresser)\
**Post date:** [December 14, 2019, 9:48pm UTC](https://discuss.bitrise.io/t/cannot-register-ssh-key-via-api-for-new-app/11355/1 "2019-12-14T21:48:52Z")

</div>

Hi, I have successfully registered a new app via the api, now I am trying to register an ssh key.

I send a POST request to [https://api.bitrise.io/v0.1/apps/de2d4b42f73c1c40/register-ssh-key](https://api.bitrise.io/v0.1/apps/de2d4b42f73c1c40/register-ssh-key) with the public and private key as per the documentation, and I get the response

`{ "status": "ok" }`

When I try to call the finish endpoint, I get a 500 server error. If I login to the dashboard and go to the visual app setup, I can see that no SSH key has been set: [https://share.getcloudapp.com/DOuvQXBl](https://share.getcloudapp.com/DOuvQXBl)

What am I doing wrong?

The app slug is de2d4b42f73c1c40

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [January 13, 2020, 9:48pm UTC](https://discuss.bitrise.io/t/cannot-register-ssh-key-via-api-for-new-app/11355/2 "2020-01-13T21:48:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
