Gets all currently active pushers for the authenticated user.
{- "pushers": [
- {
- "pushkey": "Xp/MzCt8/9DcSNE9cuiaoT5Ac55job3TdLSSmtmYl4A=",
- "kind": "http",
- "app_id": "face.mcapp.appy.prod",
- "app_display_name": "Appy McAppface",
- "device_display_name": "Alice's Phone",
- "profile_tag": "xyz",
- "lang": "en-US",
}
]
}
This endpoint allows the creation, modification and deletion of pushers for this user ID. The behaviour of this endpoint varies depending on the values in the JSON body.
If kind
is not null
, the pusher with this app_id
and pushkey
for this user is updated, or it is created if it doesn't exist. If
kind
is null
, the pusher with this app_id
and pushkey
for this
user is deleted.
The pusher information.
pushkey required | string This is a unique identifier for this pusher. The value you should use for this is the routing or destination address information for the notification, for example, the APNS token for APNS or the Registration ID for GCM. If your notification client has no such concept, use any unique identifier. Max length, 512 bytes. If the |
required | string or null The kind of pusher to configure. |
app_id required | string This is a reverse-DNS style identifier for the application. It is recommended that this end with the platform, such that different platform versions get different app identifiers. Max length, 64 chars. If the |
app_display_name | string Required if |
device_display_name | string Required if |
profile_tag | string This string determines which set of device specific rules this pusher executes. |
lang | string Required if |
object (PusherData) Required if If | |
object This object contains information on how to encrypt the notifications for the pusher. This property may be | |
append | boolean If true, the homeserver should add another pusher with the
given pushkey and App ID in addition to any others with
different user IDs. Otherwise, the homeserver must remove any
other pushers with the same App ID and pushkey for different
users. The default is |
{- "lang": "en",
- "kind": "http",
- "app_display_name": "Mat Rix",
- "device_display_name": "iPhone 9",
- "app_id": "com.example.app.ios",
- "pushkey": "<APNS/GCM TOKEN>",
- "append": false
}
{ }
Gets all channels and there configuration state of the users device identified by the
pushtoken
.
pushtoken required | string Example: 1234567890 The pushtoken of the device. |
Array of objects (channels) An array containing channels |
{- "channels": [
- {
- "id": "channel1",
- "status": "enabled"
}, - {
- "id": "channel2",
- "status": "disabled"
}
]
}
{ }
This endpoint allows the creation, modification and deletion of channel subscriptions
for a specific device identified by pushtoken
. If a channel is not present in the POST
request, the state of the channel on the server is not changed.
An unset channel is treated as disabled and thus no pushes will be triggerd that correspond
to the channel.
pushtoken required | string Example: 1234567890 The pushtoken of the device. |
The channel information.
Array of objects (channels) An array containing channels |
{- "channels": [
- {
- "name": "channel1",
- "value": "enabled"
}, - {
- "name": "channel2",
- "value": "disabled"
}
]
}
{ }
Gets all all active channels for the authenticated user.
Array of objects (channels) An array containing channels |
{- "channels": [
- {
- "id": "channel1",
- "status": "enabled"
}, - {
- "id": "channel2",
- "status": "disabled"
}
]
}
{ }