Skip to main content

Device Subscriptions (1.0.0)

Download OpenAPI specification:Download

This api is used by the Associate App

Device subscriptions

Manages device subscriptions

Create subscription to send notifications based on topics

Creates a subscription for push notifications

Authorizations:
oauth2
Request Body schema: application/json
user_id
required
string

Identifier of the user who wants to subscribe to a new topic.

app_name
required
string

Identifier of the app name where this topic makes sense.

topic_name
required
string

Identifier topic name for this subscription

topic_value
required
string

Identifier topic value for this subscription which can be 'True' or 'False'

Responses

Request samples

Content type
application/json
{
  • "user_id": "string",
  • "app_name": "string",
  • "topic_name": "string",
  • "topic_value": "string"
}

Response samples

Content type
application/json
{
  • "user_id": "string",
  • "app_name": "string",
  • "topic_name": "string",
  • "topic_value": "string"
}

Reads subscription topics by user

Reads subscriptions for push notifications

Authorizations:
oauth2

Responses

Response samples

Content type
application/json
{
  • "subscriptions": [
    ]
}

Delete subscription topic by user

Delete subscriptions for push notifications

Authorizations:
oauth2

Responses

Response samples

Content type
application/problem+json
{
  • "status_code": 500,
  • "error": "Internal server error"
}