API - Push

The Push API allows you to create and manage push notifications for a specific project.

Authentication and Authorization

You project needs to have the API option enabled and you will have to ask your project manager to create a key/secret combination for you.

The authentication is done using HTTP Basic Authentication. You need need to add an Authorization header to every request:

Authorization: Basic <token>

where <token> is a base64 encoded string of key:secret

Headers

Be sure to set Content-Type to application/json

API Endpoints

Push

Base URL: https://manager.greencopper.com/webservice/v2/alert/<project_tag>

EndpointActionDescription
/alerts/POSTCreate a new push notification
/alerts/OPTIONSView the list of options and requirements to create a push
/alerts/<id>/GETGet the details of a push notification, specified by the <id> parameter.