useNotification
useNotification brings push notifications into third-party apps: a person subscribes to your app, and you send them what they need to know. What is opened up here is the company side — your apps, their subscribers, sending to them. What the app does for its users (account, sign-in, subscribing) stays in the app and deliberately has no endpoint here. A token is valid for exactly one publisher: the account that owns the apps. How people become subscribers is described in Gaining subscribers — that needs no API, just a link.
APIs
| API | Host | Contents | Requests |
|---|---|---|---|
| App API | apps.api.usenotification.artim-industries.com/v1 | Your own apps: create, update, webhook and API key. | 11 |
| Subscriber API | subscribers.api.usenotification.artim-industries.com/v1 | Who has subscribed to an app — counts, timestamps, reachability. | 5 |
| Message API | messages.api.usenotification.artim-industries.com/v1 | Sending to individual subscribers, broadcasts and the history. | 6 |
Shared rules
- One subdomain per API. A token for the App API does not get past the Subscriber API, not even through the path.
- One publisher per token. When authorizing, the user approves exactly one publisher.
- Scopes as fine as the feature. Whatever needs special protection hangs on a scope of its own — not on the scope of the whole section.
- Read and write. Creating, editing and deleting follow the same pattern in every section; see Writing endpoints.
First steps
- Read Product APIs & OAuth — the route to a token.
- Enable an API in the console and link the account.
- Create a client, authorize, get a token, start asking.