AlphaAlpha Docs

Push Tokens

Device push token registration API

Register push token

POST
/notifications/push-tokens
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/notifications/push-tokens" \  -H "Content-Type: application/json" \  -d '{    "platform": "IOS",    "token": "string"  }'
{
  "appVersion": "string",
  "created": "2019-08-24T14:15:22Z",
  "deviceName": "string",
  "id": "string",
  "lastUsed": "2019-08-24T14:15:22Z",
  "platform": "IOS",
  "tenantId": "string",
  "token": "string",
  "userId": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Unregister push token

DELETE
/notifications/push-tokens
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

token*string

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/notifications/push-tokens" \  -H "Content-Type: application/json" \  -d '{    "token": "string"  }'
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}