Applications
PushExpress -- applications API reference
Version date: 27 July 2024
To authorize, you need to add the header "Authorization: Bearer ..."
(get the key by requesting support, it is not yet available in the dashboard).
Creating new application
Request [FireBase]:
Request [OneSignal]
Request [APNS]
Body params:
push_provider
, required. Lowecase, must be one offirebase
,onesignal
,apns
.framework
, required. Application type, same as on the website, can only be one ofdroid
,web
,swift
,flutter
,unity
.name
, required. Application name, any printable characters.push_provider_creds
, required. If transport isfirebase
- you need to insertFirebase Admin SDK IAM key
, same as on the website, it must be a valid JSON. If transport isonesignal
- you need to provide the key and app ID for OneSignal. If transport isapns
- provide the APNS credentials including the topic, team ID and one or both of authentication key, authentication key ID and one or both of production certificate, and development certificate.group_id
, optional. Group ID, can be found here https://app.push.express/app/group/ by clicking on the group, the ID will be in the URL. If passed to the request body, the new application will appear in this group and will be added to all schedules where this group is mentioned.link
, optional. Link to the Play Market / App Store / etc.
Response:
201: New application created
app_id
, int. ID of newly created application.app_data
, object. Payload data provided by user in request.
Deleting or archiving application
Deleting means application will be completely deleted from the databases. Archiving means the application will be suspended, it will be removed from any schedule it was mention in, any group or any webmaster, but the appication will still be in the databases, you can always un-archive application using dashboard at https://app.push.express/app/remove/
Request:
Body params:
forever
, optional. If you want to completely delete your application - passtrue
, if you only want to archive application - pass false or nothing at all. By default, if you access endpoint without payload at all - the application will be archived.
Response: 200: Application deleted or archived
app_id
, int. ID of deleted application.status
, string. Could bearchived
ordeleted
depending on your request.
Error handling
All HTTP response codes above 400 MUST be considered as error. Most responses with errors will contain information about why it happened. In general, errors do not require attention and do not need to be handled in any way.
Last updated