# Custom Push Notifications: allowed user api push urls

**URL:** https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644
**Category:** Development
**Created:** [2016年十二月22日 11:13 UTC](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644 "2016-12-22T11:13:10Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年十二月23日 01:03 UTC](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644/5 "2016-12-23T01:03:17Z")

</div>

> [@skoota](#):
>
> Am I correct that users cannot create their own API keys?

No that is 100% incorrect.

`api keys` and `user api keys` are two completely different things, see (which may need a bit of updating):

> [@User API keys specification](https://meta.discourse.org/t/user-api-keys-specification/48536):
>
> Discourse contains a system for generating API keys per user if a very specific protocol is followed. This feature facilitates “application” access to Discourse instances without needing to involve moderators. High level description At a high level: Client (desktop app, browser plugin, mobile app) generates a private/public key pair and return url Client redirects to a route on discourse giving discourse its public key Discourse gets approval from user to use app Discourse generat…

> [@skoota](#):
>
> What is the sequence of events for creating the user API key and approving the app?

see: [DiscourseMobile/js/site\_manager.js at main · discourse/DiscourseMobile · GitHub](https://github.com/discourse/DiscourseMobile/blob/master/js/site_manager.js#L426) read to end of file.

> [@skoota](#):
>
> Is the allowed user api push urls setting the only place I need to specify the URL to which notifications should be pushed, or is that somehow worked into the user API key?

No, it needs to be hardcoded here as well: [DiscourseMobile/js/site\_manager.js at main · discourse/DiscourseMobile · GitHub](https://github.com/discourse/DiscourseMobile/blob/master/js/site_manager.js#L471)

---

_[View the full topic](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644)._
