# API for creating a new App?

**URL:** <https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845>\
**Category:** Feature Requests\
**Tags:** sdk\
**Created:** [February 11, 2021, 11:17pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845 "2021-02-11T23:17:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidHVernon](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@DavidHVernon](https://developer.squareup.com/forums/u/DavidHVernon)\
**Post date:** [February 11, 2021, 11:17pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/1 "2021-02-11T23:17:52Z")

</div>

I’m pretty sure I know the answer to this question, but I want to at least ask. Is there a way to create a new App thru the APIs?

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [February 12, 2021, 4:06pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/2 "2021-02-12T16:06:45Z")

</div>

No, that currently does not exist, but I am curious what your use-case is, if you don’t mind sharing?

---

<div class="post-metadata">

**Author:** ![DavidHVernon](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@DavidHVernon](https://developer.squareup.com/forums/u/DavidHVernon)\
**Post date:** [February 12, 2021, 4:29pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/3 "2021-02-12T16:29:50Z")

</div>

No, not at all. We are building an app that integrates with square and two other modern POS systems. Creating the app thru the API would keep the user from having to go into square to configure the app. It’s not a super-big deal, but it would allow us to remove that tiny bit of friction in our onboarding process.

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [February 12, 2021, 5:03pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/4 "2021-02-12T17:03:40Z")

</div>

Got it, I was thinking of that possibility, although if you used [Square’s OAuth API](https://developer.squareup.com/docs/oauth-api/overview), they wouldn’t need to create their own application (unless I’m misunderstanding). The OAuth API would allow the merchant to give your application access to their account based on a set of permissions, then your app can generate a unique access token that you can use to make requests on their behalf.

---

<div class="post-metadata">

**Author:** ![DavidHVernon](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@DavidHVernon](https://developer.squareup.com/forums/u/DavidHVernon)\
**Post date:** [February 16, 2021, 4:48pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/5 "2021-02-16T16:48:57Z")

</div>

I think of OAuth as a web thing. Does it work in Mobile?

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [February 16, 2021, 4:56pm UTC](https://developer.squareup.com/forums/t/api-for-creating-a-new-app/1845/6 "2021-02-16T16:56:51Z")

</div>

The initial authorization would need to be done in a browser, but after that all of it can be handled by backend services (refreshing the OAuth tokens, etc). The first step basically asks if they accept giving your application access to their account. If they say yes, you’ll be able to use the response to generate a unique access token that is only for that particular merchant account moving forward. You would need to be mindful to refresh it before every 30 days, but that can be done via the server-side, nothing needs to be done on the browser again unless they revoke your app and want to re-add it for whatever reason.
