About

Pushetta use a very simple API, there are many example about using it from various languages, here there is documentations about endpoints for implementing custom interfaces. Authentication is token based, token is normally taken from the dashboard but can be obtained by calling auth endpoint.

Authentication : /api/auth/

Get authentication token from user and password.

Request URL

POST - http://api.pushetta.com/api/auth/

Request

                     
                         {
                         "username": "string", (required)
                         "password": "string" (required)
                         }
                     
                  

Response

{
   "token": "string"
}
            
            

Push : /api/pushes/{channel_name}/

Push a message to subscribers of channel

Request URL

POST - http://api.pushetta.com/api/pushes/{channel_name}/

Request

                     
                         {
                         "body": "string", (required)
                         "message_type": "string", (required)
                         "expire": "date ", (optional)
                         "target": "string" (optional)
                         }
                     

                  

Parameters

Response

{
   "success": true|false, 
   "error_code": ""
}
         
         

Response statuses

Targets list : /api/targets/

Get the list of all possible targets

Request URL

GET - http://api.pushetta.com/api/targets/

Response

[
    {
        "target": "wp8"
    },
    {
        "target": "chrome"
    },
    {
        "target": "ios"
    },
    {
        "target": "safari"
    },
    {
        "target": "test"
    },
    {
        "target": "android"
    },
    {
        "target": "iot_device"
    }
]         

Using pushetta

Something Legal